Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Made By WeAreDevs_L042
- ================================================================
- local GunsGuiByWeAreDevs_L042 = Instance.new("ScreenGui")
- local OpenFrame = Instance.new("Frame")
- local Open = Instance.new("TextButton")
- local StyleMain = Instance.new("Frame")
- local StyleUp = Instance.new("Frame")
- local Write1 = Instance.new("TextBox")
- local StyleDown = Instance.new("Frame")
- local Write2 = Instance.new("TextBox")
- local RightFrame = Instance.new("Frame")
- local LeftFrame = Instance.new("Frame")
- local BStyle1 = Instance.new("TextButton")
- local BStyle2 = Instance.new("TextButton")
- local BStyle3 = Instance.new("TextButton")
- local BStyle4 = Instance.new("TextButton")
- local BStyle5 = Instance.new("TextButton")
- local BStyle6 = Instance.new("TextButton")
- local BStyle7 = Instance.new("TextButton")
- local BStyle8 = Instance.new("TextButton")
- local TextButton = Instance.new("TextButton")
- --Properties:
- GunsGuiByWeAreDevs_L042.Name = "Guns Gui By WeAreDevs_L042"
- GunsGuiByWeAreDevs_L042.Parent = game.Workspace
- GunsGuiByWeAreDevs_L042.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- OpenFrame.Name = "OpenFrame"
- OpenFrame.Parent = GunsGuiByWeAreDevs_L042
- OpenFrame.BackgroundColor3 = Color3.new(0, 0, 0)
- OpenFrame.Position = UDim2.new(0, 0, 0.805168927, 0)
- OpenFrame.Size = UDim2.new(0, 127, 0, 33)
- Open.Name = "Open"
- Open.Parent = OpenFrame
- Open.BackgroundColor3 = Color3.new(1, 1, 0)
- Open.BorderColor3 = Color3.new(0, 0, 0)
- Open.Position = UDim2.new(-0.00599457137, 0, -0.0122338496, 0)
- Open.Size = UDim2.new(0, 127, 0, 33)
- Open.Font = Enum.Font.SourceSans
- Open.Text = "Open Guns Gui"
- Open.TextColor3 = Color3.new(1, 0, 0)
- Open.TextSize = 20
- Open.TextWrapped = true
- Open.MouseButton1Down:connect(function()
- Style Main.Visible = true
- OpenFrame.Visible = false
- end)
- StyleMain.Name = "Style Main"
- StyleMain.Parent = GunsGuiByWeAreDevs_L042
- StyleMain.BackgroundColor3 = Color3.new(0, 0, 0)
- StyleMain.BackgroundTransparency = 1
- StyleMain.Position = UDim2.new(0.21786198, 0, 0.135188878, 0)
- StyleMain.Size = UDim2.new(0, 460, 0, 336)
- StyleUp.Name = "Style Up"
- StyleUp.Parent = StyleMain
- StyleUp.BackgroundColor3 = Color3.new(1, 1, 0)
- StyleUp.Position = UDim2.new(0.0130434781, 0, 0, 0)
- StyleUp.Size = UDim2.new(0, 460, 0, 34)
- Write1.Name = "Write 1"
- Write1.Parent = StyleUp
- Write1.BackgroundColor3 = Color3.new(1, 1, 1)
- Write1.BackgroundTransparency = 1
- Write1.Size = UDim2.new(0, 460, 0, 34)
- Write1.Font = Enum.Font.SourceSans
- Write1.Text = "Guns Gui"
- Write1.TextColor3 = Color3.new(0, 0, 0)
- Write1.TextSize = 40
- StyleDown.Name = "Style Down"
- StyleDown.Parent = StyleMain
- StyleDown.BackgroundColor3 = Color3.new(0.333333, 1, 1)
- StyleDown.Position = UDim2.new(0, 0, 0.898809552, 0)
- StyleDown.Size = UDim2.new(0, 460, 0, 34)
- Write2.Name = "Write 2"
- Write2.Parent = StyleDown
- Write2.BackgroundColor3 = Color3.new(1, 1, 1)
- Write2.BackgroundTransparency = 1
- Write2.Size = UDim2.new(0, 460, 0, 34)
- Write2.Font = Enum.Font.SourceSans
- Write2.Text = "Made By WeAreDevs_L042"
- Write2.TextColor3 = Color3.new(1, 0.333333, 0)
- Write2.TextSize = 30
- RightFrame.Name = "Right Frame"
- RightFrame.Parent = StyleMain
- RightFrame.BackgroundColor3 = Color3.new(0, 1, 1)
- RightFrame.Position = UDim2.new(0.923913062, 0, 0.101190478, 0)
- RightFrame.Size = UDim2.new(0, 35, 0, 268)
- LeftFrame.Name = "Left Frame"
- LeftFrame.Parent = StyleMain
- LeftFrame.BackgroundColor3 = Color3.new(1, 1, 0)
- LeftFrame.Position = UDim2.new(0, 0, 0.101190478, 0)
- LeftFrame.Size = UDim2.new(0, 35, 0, 268)
- BStyle1.Name = "B Style 1"
- BStyle1.Parent = StyleMain
- BStyle1.BackgroundColor3 = Color3.new(1, 0, 1)
- BStyle1.Position = UDim2.new(0.104347825, 0, 0.127976194, 0)
- BStyle1.Size = UDim2.new(0, 130, 0, 44)
- BStyle1.Font = Enum.Font.SourceSans
- BStyle1.Text = "AWP Sniper"
- BStyle1.TextColor3 = Color3.new(1, 0.333333, 0)
- BStyle1.TextSize = 18
- BStyle1.MouseButton:connect(function()
- local animations = {
- requip = {
- CFrame.new(0, .5, 0) * CFrame.Angles(math.rad(90), 0, math.rad(-10)) * CFrame.new(1.5, -.5, 0);
- CFrame.new(0, .5, 0) * CFrame.Angles(math.rad(180), 0, math.rad(-15)) * CFrame.new(1.5, -.5, 0);
- CFrame.new(0, .5, 0) * CFrame.Angles(math.rad(210), 0, math.rad(-40)) * CFrame.new(1.5, -.5, 0);
- CFrame.new(0, .5, 0) * CFrame.Angles(math.rad(180), 0, math.rad(-10)) * CFrame.new(1.5, -.5, 0);
- CFrame.new(0, .5, 0) * CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(1.5, -.5, 0);
- };
- lequip = {
- CFrame.new(0, .5, 0) * CFrame.Angles(math.rad(90), 0, math.rad(60)) * CFrame.new(-1, -.75, 0);
- };
- runequip = {
- CFrame.new(0, .5, 0) * CFrame.Angles(math.rad(90), 0, math.rad(-10)) * CFrame.new(1.5, -.5, 0);
- CFrame.new(0, .5, 0) * CFrame.Angles(math.rad(180), 0, math.rad(-15)) * CFrame.new(1.5, -.5, 0);
- CFrame.new(0, .5, 0) * CFrame.Angles(math.rad(210), 0, math.rad(-40)) * CFrame.new(1.5, -.5, 0);
- CFrame.new(0, .5, 0) * CFrame.Angles(math.rad(180), 0, math.rad(-10)) * CFrame.new(1.5, -.5, 0);
- CFrame.new(0, .5, 0) * CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(1.5, -.5, 0);
- CFrame.new(1.5, 0, 0);
- };
- rshoot = {
- CFrame.new(0, .5, 0) * CFrame.Angles(math.rad(170), 0, 0) * CFrame.new(1.5, -.5, 0);
- CFrame.new(0, .5, 0) * CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(1.5, -.5, 0);
- };
- lshoot = {
- CFrame.new(0, .5, 0) * CFrame.Angles(math.rad(170), 0, math.rad(60)) * CFrame.new(-1, -.75, 0);
- CFrame.new(0, .5, 0) * CFrame.Angles(math.rad(90), 0, math.rad(60)) * CFrame.new(-1, -.75, 0);
- CFrame.new(0, .5, 0) * CFrame.Angles(math.rad(90), 0, math.rad(80)) * CFrame.new(-.5, -.35, 0);
- CFrame.new(0, .5, 0) * CFrame.Angles(math.rad(90), 0, math.rad(60)) * CFrame.new(-1, -.75, 0);
- };
- }
- local player = game:GetService("Players").LocalPlayer
- local pmouse = player:GetMouse()
- local char = player.Character
- local bin = Instance.new("HopperBin", player.Backpack)
- local barrelsize = .3
- local handleweld = nil
- local temp = true
- local etemp = true
- bin.Name = "L96A1 Magnum"
- function weld(part0, part1, c0, c1, parent)
- local w = Instance.new("Weld", parent)
- w.Part0 = part0
- w.Part1 = part1
- w.C0 = c0
- w.C1 = c1
- w.Name = "NewWeld"
- return w
- end
- function interpolateCFrame(cf1, cf2)
- local t1 = {cf1:components()}
- local t2 = {cf2:components()}
- local newcf = {}
- for i, v in pairs(t1) do
- local dif = t2[i] - v
- if i < 4 then
- local newValue = nil
- if math.abs(dif) < .1 then
- newValue = t2[i]
- else
- newValue = v + ((dif/math.abs(dif)) * .1)
- end
- newcf[i] = newValue
- else
- local newValue = nil
- if math.abs(dif) < .1 then
- newValue = t2[i]
- else
- newValue = v + ((dif/math.abs(dif)) * .1)
- end
- newcf[i] = newValue
- end
- end
- return CFrame.new(unpack(newcf))
- end
- function prop(name, sx, sy, sz, px, py, pz, anc, canc, col, par, mesh, meshtype, scalex, scaley, scalez, meshid, textureid)
- local part = Instance.new("Part", par)
- part.Name = name
- part.TopSurface = 0
- part.BottomSurface = 0
- part.formFactor = 3
- part.Size = Vector3.new(sx, sy, sz)
- part.Position = Vector3.new(px, py, pz)
- part.Anchored = anc
- part.CanCollide = canc
- part.BrickColor = BrickColor.new(col)
- if mesh then
- local m = Instance.new("SpecialMesh", part)
- m.MeshType = meshtype
- m.MeshId = meshid
- m.Scale = Vector3.new(scalex, scaley, scalez)
- m.TextureId = textureid
- end
- return part
- end
- function fade(part, speed)
- for i = part.Transparency, 1, speed do
- part.Transparency = i
- wait()
- end
- part:Destroy()
- end
- function clearWelds(par)
- for i, v in pairs(par:GetChildren()) do
- if v.Name == "NewWeld" and v:IsA("Weld") then
- v:Destroy()
- end
- end
- end
- function sound(pitch, id, par)
- local s = Instance.new("Sound", par)
- s.Pitch = pitch
- s.SoundId = id
- return s
- end
- function traceRay(pos, pos2, col, trans)
- local distance = (pos - pos2).magnitude
- local trace = Instance.new("Part", char)
- trace.Anchored = true
- trace.CanCollide = false
- trace.TopSurface = 0
- trace.BottomSurface = 0
- trace.formFactor = 3
- trace.Size = Vector3.new(.2, .2, distance)
- trace.BrickColor = BrickColor.new(col)
- trace.Transparency = trans
- trace.CFrame = CFrame.new(pos2, pos) * CFrame.new(0, 0, -distance/2)
- return trace
- end
- clearWelds(char.Torso)
- local back1 = prop("Part1", .1, .7, .5, 0, 0, 0, false, false, "Black", char, false)
- local back1weld = weld(char.Torso, back1, CFrame.new(1, -2, .6) * CFrame.Angles(math.rad(90), math.rad(20), math.rad(90)), CFrame.new(), char.Torso)
- local back2 = prop("Part2", .1, .2, .1, 0, 0, 0, false, false, "Grime", char, false)
- local back2weld = weld(back1, back2, CFrame.new(0, -.25, -.35), CFrame.new(), char.Torso)
- local back3 = prop("Part3", .1, .5, 1, 0, 0, 0, false, false, "Grime", char, false)
- local back3weld = weld(back1, back3, CFrame.new(0, .1, -.75), CFrame.new(), char.Torso)
- local back4 = prop("Part4", .1, .1, 1, 0, 0, 0, false, false, "Grime", char, false)
- local back4weld = weld(back3, back4, CFrame.new(0, .3, 0), CFrame.new(), char.Torso)
- local back5 = prop("Part5", .1, .1, .7, 0, 0, 0, false, false, "Grime", char, false)
- local back5weld = weld(back1, back5, CFrame.new(0, .4, -1.6), CFrame.new(), char.Torso)
- local trigger1 = prop("Part6", .1, .1, .6, 0, 0, 0, false, false, "Grime", char, false)
- local trigger1weld = weld(back4, trigger1, CFrame.new(0, -.6, -.4) * CFrame.Angles(-math.rad(30), 0, 0), CFrame.new(), char.Torso)
- local trigger2 = prop("Part7", .1, .1, .5, 0, 0, 0, false, false, "Grime", char, false)
- local trigger2weld = weld(back4, trigger2, CFrame.new(0, -.675, -.8) * CFrame.Angles(math.rad(15), 0, 0), CFrame.new(), char.Torso)
- local trigger3 = prop("Part8", .1, .1, .7, 0, 0, 0, false, false, "Grime", char, false)
- local trigger3weld = weld(back4, trigger3, CFrame.new(0, -.4, -.95) * CFrame.Angles(math.rad(90), 0, 0), CFrame.new(), char.Torso)
- local middle1 = prop("Part9", .1, .1, 1, 0, 0, 0, false, false, "Black", char, true, "Brick", .1, .0, .1, "", "") -- dis
- local middle1weld = weld(back5, middle1, CFrame.new(0, .05, -.8), CFrame.new(), char.Torso)
- local trigframe = prop("Part10", .1, .3, .3, 0, 0, 0, false, false, "Grime", char, true, "FileMesh", .3, .3, .3, "http://www.roblox.com/asset/?id=3270017", "")
- local trigframeweld = weld(back5, trigframe, CFrame.new(0, -.2, -.3) * CFrame.Angles(0, math.rad(90), 0), CFrame.new(), char.Torso)
- local middle2 = prop("Part11", .1, .3, 2, 0, 0, 0, false, false, "Grime", char, false)
- local middle2weld = weld(middle1, middle2, CFrame.new(0, -.1, -.4), CFrame.new(), char.Torso)
- local barrel = prop("Part12", .1, .1, 4, 0, 0, 0, false, false, "Black", char, true, "Brick", .5, .5, 1, "", "")
- local barrelweld = weld(middle1, barrel, CFrame.new(0, -.05, -2), CFrame.new(), char.Torso)
- local barrel2 = prop("Part13", barrelsize, 2, barrelsize, 0, 0, 0, false, false, "Black", char, false) Instance.new("CylinderMesh", barrel2)
- local barrel2weld = weld(barrel, barrel2, CFrame.new(0, 0, -2.5) * CFrame.Angles(math.rad(90), 0, 0), CFrame.new(), char.Torso)
- local scope1 = prop("Part14", .1, .2, .1, 0, 0, 0, false, false, "Black", char, true, "Brick", .5, .5, .5, "", "")
- local scope1weld = weld(middle1, scope1, CFrame.new(0, .1, .25), CFrame.new(), char.Torso)
- local scope2 = prop("Part14", .1, .2, .1, 0, 0, 0, false, false, "Black", char, true, "Brick", .5, .5, .5, "", "")
- local scope2weld = weld(middle1, scope2, CFrame.new(0, .1, -.25), CFrame.new(), char.Torso)
- local scope3 = prop("Part15", .1, 1.5, .1, 0, 0, 0, false, false, "Black", char, false) Instance.new("CylinderMesh", scope3)
- local scope3weld = weld(middle1, scope3, CFrame.new(0, .2, 0) * CFrame.Angles(math.rad(90), 0, 0), CFrame.new(), char.Torso)
- local scope4 = prop("Part16", .2, .3, .2, 0, 0, 0, false, false, "Black", char, true, "FileMesh", .2, .3, .2, "http://www.roblox.com/asset/?id=1033714", "")
- local scope4weld = weld(middle1, scope4, CFrame.new(0, .2, .7) * CFrame.Angles(math.rad(270), 0, 0), CFrame.new(), char.Torso)
- local scope5 = prop("Part17", .3, .35, .3, 0, 0, 0, false, false, "Black", char, true, "FileMesh", .3, .35, .3, "http://www.roblox.com/asset/?id=1033714", "")
- local scope5weld = weld(middle1, scope5, CFrame.new(0, .2, -.7) * CFrame.Angles(math.rad(-270), 0, 0), CFrame.new(), char.Torso)
- local rarmweld = weld(char.Torso, nil, CFrame.new(1.5, 0, 0), CFrame.new(), char.Torso)
- local larmweld = weld(char.Torso, nil, CFrame.new(-1.5, 0, 0), CFrame.new(), char.Torso)
- local gyro = Instance.new("BodyGyro", char.Torso)
- gyro.P = 10000
- gyro.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
- pmouse.Move:connect(function()
- gyro.cframe = CFrame.new(char.Torso.Position, Vector3.new(pmouse.Hit.p.X, char.Torso.Position.Y, pmouse.Hit.p.Z))
- end)
- function onEquip(mouse)
- repeat wait() until etemp and temp
- etemp = false
- rarmweld.Part1 = char["Right Arm"]
- local frame = 1
- coroutine.wrap(function()
- while rarmweld and animations.requip[frame] do
- rarmweld.C0 = interpolateCFrame(rarmweld.C0, animations.requip[frame])
- if rarmweld.C0 == animations.requip[frame] then
- frame = frame + 1
- else
- wait()
- end
- end
- end)()
- repeat wait() until frame == 3
- back1weld.Part0 = nil
- handleweld = weld(char["Right Arm"], back1, CFrame.new(-.5, 1, -.3) * CFrame.Angles(math.rad(270), 0, 0), CFrame.new(), char.Torso)
- repeat wait() until frame == 5
- larmweld.Part1 = char["Left Arm"]
- local frame2 = 1
- coroutine.wrap(function()
- while larmweld and animations.lequip[frame2] do
- larmweld.C0 = interpolateCFrame(larmweld.C0, animations.lequip[frame2])
- if larmweld.C0 == animations.lequip[frame2] then
- frame2 = frame2 + 1
- else
- wait()
- end
- end
- etemp = true
- end)()
- repeat wait() until frame == 6
- mouse.Button1Down:connect(function()
- if not temp then return end
- temp = false
- local frame3 = 1
- coroutine.wrap(function()
- while rarmweld and animations.rshoot[frame3] do
- rarmweld.C0 = interpolateCFrame(rarmweld.C0, animations.rshoot[frame3])
- if rarmweld.C0 == animations.rshoot[frame3] then
- frame3 = frame3 + 1
- else
- wait()
- end
- end
- end)()
- local frame4 = 1
- coroutine.wrap(function()
- while larmweld and animations.lshoot[frame4] do
- larmweld.C0 = interpolateCFrame(larmweld.C0, animations.lshoot[frame4])
- if larmweld.C0 == animations.lshoot[frame4] then
- frame4 = frame4 + 1
- else
- wait()
- end
- end
- wait(.1)
- temp = true
- end)()
- local ray = Ray.new(barrel2.Position, (mouse.Hit.p - barrel2.Position).unit * 500)
- sound(2, "http://www.roblox.com/Asset/?id=16211041", barrel2):play()
- local hit, pos = workspace:FindPartOnRay(ray, char)
- if hit and hit.Parent:FindFirstChild("Humanoid") then
- local dmg = math.random(70, 100)
- if hit.Name ~= "Head" then
- hit.Parent.Humanoid:TakeDamage(dmg)
- hit.Parent.Humanoid.Sit = true
- else
- hit.Parent:BreakJoints()
- sound(1, "http://www.roblox.com/asset/?id=1876552", workspace):play()
- end
- if game:GetService("Players"):GetPlayerFromCharacter(hit.Parent) == nil then return end
- local bl = Instance.new("Part", workspace)
- bl.Name = "Blood"
- bl.BrickColor = BrickColor.new("Really red")
- bl.FormFactor = 3
- bl.TopSurface = 0
- bl.BottomSurface = 0
- bl.Size = Vector3.new(1, .1, 1)
- bl.Position = hit.Parent.Head.Position + Vector3.new(0, 3, 0)
- local bbg = Instance.new("BillboardGui", bl)
- bbg.Adornee = bl
- bbg.Size = UDim2.new(1, 0, 1, 0)
- bbg.StudsOffset = Vector3.new(0, 1, 0)
- local txt = Instance.new("TextLabel", bbg)
- txt.Position = UDim2.new(0.5, 0, 0.5, 0)
- txt.FontSize = "Size14"
- txt.TextColor3 = Color3.new(1, 1, 1)
- txt.Text = hit.Name ~= "Head" and dmg or "HEADSHOT"
- coroutine.wrap(fade)(bl, 0.005)
- end
- if hit and hit.Parent:IsA("Hat") then
- hit:BreakJoints()
- end
- Spawn(function()
- local tr = traceRay(barrel2.Position, pos, "White", .5)
- fade(tr, .01)
- end)
- repeat wait() until frame4 == 3
- sound(1, "http://roblox.com/asset/?id=10209881", middle2):play()
- end)
- end
- function onUnequip()
- repeat wait() until etemp and temp
- etemp = false
- local frame = 1
- coroutine.wrap(function()
- while rarmweld and animations.runequip[frame] do
- rarmweld.C0 = interpolateCFrame(rarmweld.C0, animations.runequip[frame])
- if rarmweld.C0 == animations.runequip[frame] then
- frame = frame + 1
- else
- wait()
- end
- end
- etemp = true
- end)()
- coroutine.wrap(function()
- while larmweld do
- larmweld.C0 = interpolateCFrame(larmweld.C0, CFrame.new(-1.5, 0, 0))
- if larmweld.C0 == CFrame.new(-1.5, 0, 0) then
- break
- else
- wait()
- end
- end
- end)()
- repeat wait() until frame == 4
- handleweld:Remove()
- back1weld:Remove()
- back1weld = weld(char.Torso, back1, CFrame.new(1, -2, .6) * CFrame.Angles(math.rad(90), math.rad(20), math.rad(90)), CFrame.new(), char.Torso)
- repeat wait() until frame == 7
- rarmweld.Part1 = nil
- larmweld.Part1 = nil
- end
- bin.Selected:connect(onEquip)
- bin.Deselected:connect(onUnequip)
- end)
- BStyle2.Name = "B Style 2"
- BStyle2.Parent = StyleMain
- BStyle2.BackgroundColor3 = Color3.new(1, 0, 1)
- BStyle2.Position = UDim2.new(0.104347825, 0, 0.318452388, 0)
- BStyle2.Size = UDim2.new(0, 130, 0, 44)
- BStyle2.Font = Enum.Font.SourceSans
- BStyle2.Text = "Kar Sniper"
- BStyle2.TextColor3 = Color3.new(1, 0.333333, 0)
- BStyle2.TextSize = 18
- BStyle2.MouseButton:connect(function()
- local p = game.Players.LocalPlayer
- Player = game:GetService("Players").LocalPlayer
- Cha = Player.Character
- mouse = game.Players.LocalPlayer:GetMouse()
- name = Player.Name
- me = game.Players[name]
- laydown = false
- shoot = false
- camo = false
- prop = false
- Cha.Head.Transparency = 1
- local new = Instance.new("Part", Player.Character)
- new.Name = "hed"
- new.formFactor = "Symmetric"
- new.TopSurface = "Smooth"
- new.BottomSurface = "Smooth"
- new.Transparency = 0
- new.FormFactor = "Custom"
- new.Size = Cha.Head.Size
- new.CFrame = Player.Character.Head.CFrame
- new.BrickColor = Player.Character.Head.BrickColor
- newmeshhh = Instance.new("SpecialMesh",new)
- newmeshhh.MeshType = "Head"
- newmeshhh.Scale = Vector3.new(1.2,1.2,1.2)
- weldT = Instance.new("Weld", Player.Character.Torso)
- weldT.Part0 = Player.Character.Head
- weldT.Part1 = new
- weldT.C1 = CFrame.new(0, 0, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
- function rand(a)return (math.random()-.5)*2*a end
- function q(f,arg)return coroutine.resume(coroutine.create(f),unpack(arg or {}))end
- function fade(p,s,inc)q(function(part,start,increment)increment = increment or .05 for i=start,1,increment do part.Transparency = part.Transparency+increment wait(1/30)end end,{p,s,inc})end
- function appear(p,s,inc)q(function(part,start,increment)increment = increment or .05 for i=start,0,-increment do part.Transparency = part.Transparency-increment wait(1/30)end end,{p,s,inc})end
- function Part(Name,Parent,Size,CFrame,Color,Trans,Anch,Can,Mat,Ref)
- local p = Instance.new("Part",Parent)p.Name = Name
- p.FormFactor = "Custom"p.Size = Size
- p.Anchored = Anch p.CFrame = CFrame
- p.BrickColor = BrickColor.new(Color)p.Transparency = Trans
- p.TopSurface = 0 p.CanCollide = Can
- p.BottomSurface = 0 p.Material = Mat
- p.Reflectance = Ref or 0;p:BreakJoints()
- p.Locked = true;return p
- end
- function WedgePart(Name,Parent,Size,CFrame,Color,Trans,Anch,Can,Mat,Ref)
- local p = Instance.new("WedgePart",Parent)p.Name = Name
- p.FormFactor = "Custom"p.Size = Size
- p.Anchored = Anch p.CFrame = CFrame
- p.BrickColor = BrickColor.new(Color)p.Transparency = Trans
- p.TopSurface = 0 p.CanCollide = Can
- p.BottomSurface = 0 p.Material = Mat
- p.Reflectance = Ref or 0;p:BreakJoints()
- p.Locked = true;return p
- end
- function CornerWedgePart(Name,Parent,Size,CFrame,Color,Trans,Anch,Can,Mat,Ref)
- local p = Instance.new("CornerWedgePart",Parent)p.Name = Name;p.Size = Size
- p.Anchored = Anch p.CFrame = CFrame
- p.BrickColor = BrickColor.new(Color)p.Transparency = Trans
- p.TopSurface = 0 p.CanCollide = Can
- p.BottomSurface = 0 p.Material = Mat
- p.Reflectance = Ref or 0;p:BreakJoints()
- p.Locked = true;return p
- end
- function Mesh(Parent,Type,Scale,ID,TID)
- local m = Instance.new("SpecialMesh",Parent)m.MeshType = Type
- m.Scale = Scale or Vector3.new(1,1,1)
- if ID then m.MeshId = ID end if TID then m.TextureId = TID end
- return m
- end
- function Weld(p1,p2,c0,c1)
- local w = Instance.new("Weld",p1)w.Part0 = p1;w.Part1 = p2
- w.C0,w.C1 = c0 or CFrame.new(),c1 or CFrame.new()
- return w
- end
- function cslerp(start,destination,increment)
- local function s(a,b,c)return (1-c)*a+(c*b)end
- local c1 = {start.X,start.Y,start.Z,start:toEulerAnglesXYZ()}
- local c2 = {destination.X,destination.Y,destination.Z,destination:toEulerAnglesXYZ()}
- for i,v in pairs(c1)do c1[i] = s(v,c2[i],increment)end
- return CFrame.new(c1[1],c1[2],c1[3])*CFrame.Angles(c1[4],c1[5],c1[6])
- end
- local char
- function rayCast(pos,dir,collidedlist,startpos,endpos,distleft)
- collidedlist = collidedlist
- startpos = startpos or pos
- distleft = distleft or dir.unit * dir.magnitude
- endpos = endpos or pos + distleft
- local ray = Ray.new(pos,distleft)
- local hitz,enz = workspace:FindPartOnRayWithIgnoreList(ray,collidedlist)
- if hitz~=nil then
- if hitz.CanCollide==false then
- table.insert(collidedlist,hitz)
- local newpos = enz
- local newdistleft = distleft-(dir.unit*(pos-newpos).magnitude)
- if newdistleft~=Vector3.new()then
- return rayCast(newpos-(dir*0.01),dir,collidedlist,startpos,endpos,newdistleft+(dir*0.01))
- end
- end
- end
- return hitz,enz,ray
- end
- function findSurface(part,position)
- local obj = part.CFrame:pointToObjectSpace(position)
- local siz = part.Size/2
- for i,v in pairs(Enum.NormalId:GetEnumItems()) do
- local vec = Vector3.FromNormalId(v)
- local wvec = part.CFrame:vectorToWorldSpace(vec)
- local vz = (obj)/(siz*vec)
- if (math.abs(vz.X-1)<0.01 or math.abs(vz.Y-1)<0.01 or math.abs(vz.Z-1)<0.01) then
- return wvec,vec
- end
- end
- end
- ----------------
- Player=game:GetService("Players").LocalPlayer
- Character=Player.Character
- Cha=Character
- PlayerGui=Player.PlayerGui
- Backpack=Player.Backpack
- Torso=Character.Torso
- Head=Character.Head
- Humanoid=Character.Humanoid
- m=Instance.new('Model',Character)
- LeftArm=Character["Left Arm"]
- LeftLeg=Character["Left Leg"]
- RightArm=Character["Right Arm"]
- RightLeg=Character["Right Leg"]
- LS=Torso["Left Shoulder"]
- LH=Torso["Left Hip"]
- RS=Torso["Right Shoulder"]
- RH=Torso["Right Hip"]
- Face = Head.face
- Neck=Torso.Neck
- it=Instance.new
- attacktype=1
- vt=Vector3.new
- cf=CFrame.new
- euler=CFrame.fromEulerAnglesXYZ
- angles=CFrame.Angles
- cloaked=false
- necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
- LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
- RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
- RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
- RootPart=Character.HumanoidRootPart
- RootJoint=RootPart.RootJoint
- RootCF=euler(-1.57,0,3.14)
- attack = false
- attackdebounce = false
- deb=false
- equipped=true
- hand=false
- MMouse=nil
- combo=0
- mana=0
- trispeed=.2
- attackmode='none'
- local idle=0
- local Anim="Idle"
- local Effects={}
- local gun=false
- local shoot=false
- player=nil
- mana=0
- Attacking=false
- asset = "http://www.roblox.com/asset/?id="
- meshes = {["blast"] = 20329976,["ring"] = 3270017,["spike"] = 1033714,["cone"] = 1082802,["crown"] = 20329976,["cloud"] = 1095708,["diamond"] = 9756362}
- mouse=Player:GetMouse()
- --save shoulders
- RSH, LSH=nil, nil
- --welds
- RW, LW=Instance.new("Weld"), Instance.new("Weld")
- RW.Name="Right Shoulder" LW.Name="Left Shoulder"
- LH=Torso["Left Hip"]
- RH=Torso["Right Hip"]
- TorsoColor=Torso.BrickColor
- function NoOutline(Part)
- Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
- end
- player=Player
- ch=Character
- RSH=ch.Torso["Right Shoulder"]
- LSH=ch.Torso["Left Shoulder"]
- --
- --RSH.Parent=nil
- --LSH.Parent=nil
- --
- RW.Name="Right Shoulder"
- RW.Part0=ch.Torso
- RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
- RW.C1=cf(0, 0.5, 0)
- RW.Part1=ch["Right Arm"]
- RW.Parent=ch.Torso
- --
- LW.Name="Left Shoulder"
- LW.Part0=ch.Torso
- LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
- LW.C1=cf(0, 0.5, 0)
- LW.Part1=ch["Left Arm"]
- LW.Parent=ch.Torso
- Player=game:GetService('Players').LocalPlayer
- Character=Player.Character
- Mouse=Player:GetMouse()
- m=Instance.new('Model',Character)
- local function weldBetween(a, b)
- local weldd = Instance.new("ManualWeld")
- weldd.Part0 = a
- weldd.Part1 = b
- weldd.C0 = CFrame.new()
- weldd.C1 = b.CFrame:inverse() * a.CFrame
- weldd.Parent = a
- return weldd
- end
- it=Instance.new
- function nooutline(part)
- part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
- end
- function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
- local fp=it("Part")
- fp.formFactor=formfactor
- fp.Parent=parent
- fp.Reflectance=reflectance
- fp.Transparency=transparency
- fp.CanCollide=false
- fp.Locked=true
- fp.BrickColor=BrickColor.new(tostring(brickcolor))
- fp.Name=name
- fp.Size=size
- fp.Position=Character.Torso.Position
- nooutline(fp)
- fp.Material=material
- fp:BreakJoints()
- return fp
- end
- function mesh(Mesh,part,meshtype,meshid,offset,scale)
- local mesh=it(Mesh)
- mesh.Parent=part
- if Mesh=="SpecialMesh" then
- mesh.MeshType=meshtype
- mesh.MeshId=meshid
- end
- mesh.Offset=offset
- mesh.Scale=scale
- return mesh
- end
- function weld(parent,part0,part1,c0,c1)
- local weld=it("Weld")
- weld.Parent=parent
- weld.Part0=part0
- weld.Part1=part1
- weld.C0=c0
- weld.C1=c1
- return weld
- end
- Player=game:GetService('Players').LocalPlayer
- Character=Player.Character
- Mouse=Player:GetMouse()
- m=Instance.new('Model',Character)
- local function weldBetween(a, b)
- local weldd = Instance.new("ManualWeld")
- weldd.Part0 = a
- weldd.Part1 = b
- weldd.C0 = CFrame.new()
- weldd.C1 = b.CFrame:inverse() * a.CFrame
- weldd.Parent = a
- return weldd
- end
- it=Instance.new
- function nooutline(part)
- part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
- end
- function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
- local fp=it("Part")
- fp.formFactor=formfactor
- fp.Parent=parent
- fp.Reflectance=reflectance
- fp.Transparency=transparency
- fp.CanCollide=false
- fp.Locked=true
- fp.BrickColor=BrickColor.new(tostring(brickcolor))
- fp.Name=name
- fp.Size=size
- fp.Position=Character.Torso.Position
- nooutline(fp)
- fp.Material=material
- fp:BreakJoints()
- return fp
- end
- function swait(num)
- if num==0 or num==nil then
- game:service'RunService'.Stepped:wait(0)
- else
- for i=0,num do
- game:service'RunService'.Stepped:wait(0)
- end
- end
- end
- function mesh(Mesh,part,meshtype,meshid,offset,scale)
- local mesh=it(Mesh)
- mesh.Parent=part
- if Mesh=="SpecialMesh" then
- mesh.MeshType=meshtype
- mesh.MeshId=meshid
- end
- mesh.Offset=offset
- mesh.Scale=scale
- return mesh
- end
- function weld(parent,part0,part1,c0,c1)
- local weld=it("Weld")
- weld.Parent=parent
- weld.Part0=part0
- weld.Part1=part1
- weld.C0=c0
- weld.C1=c1
- return weld
- end
- local function CFrameFromTopBack(at, top, back)
- local right = top:Cross(back)
- return CFrame.new(at.x, at.y, at.z,
- right.x, top.x, back.x,
- right.y, top.y, back.y,
- right.z, top.z, back.z)
- end
- function Triangle(a, b, c)
- local edg1 = (c-a):Dot((b-a).unit)
- local edg2 = (a-b):Dot((c-b).unit)
- local edg3 = (b-c):Dot((a-c).unit)
- if edg1 <= (b-a).magnitude and edg1 >= 0 then
- a, b, c = a, b, c
- elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
- a, b, c = b, c, a
- elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
- a, b, c = c, a, b
- else
- assert(false, "unreachable")
- end
- local len1 = (c-a):Dot((b-a).unit)
- local len2 = (b-a).magnitude - len1
- local width = (a + (b-a).unit*len1 - c).magnitude
- local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
- local list = {}
- local Color = BrickColor.new("Really black")
- if len1 > 0.01 then
- local w1 = Instance.new('WedgePart', m)
- game:GetService("Debris"):AddItem(w1,5)
- w1.Material = "SmoothPlastic"
- w1.FormFactor = 'Custom'
- w1.BrickColor = Color
- w1.Transparency = 0
- w1.Reflectance = 0
- w1.Material = "SmoothPlastic"
- w1.CanCollide = false
- NoOutline(w1)
- local sz = Vector3.new(0.2, width, len1)
- w1.Size = sz
- local sp = Instance.new("SpecialMesh",w1)
- sp.MeshType = "Wedge"
- sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
- w1:BreakJoints()
- w1.Anchored = false
- w1.Parent = workspace
- w1.Transparency = 0.7
- table.insert(Effects,{w1,"Disappear",.01})
- w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
- table.insert(list,w1)
- end
- if len2 > 0.01 then
- local w2 = Instance.new('WedgePart', m)
- game:GetService("Debris"):AddItem(w2,5)
- w2.Material = "SmoothPlastic"
- w2.FormFactor = 'Custom'
- w2.BrickColor = Color
- w2.Transparency = 0
- w2.Reflectance = 0
- w2.Material = "SmoothPlastic"
- w2.CanCollide = false
- NoOutline(w2)
- local sz = Vector3.new(0.2, width, len2)
- w2.Size = sz
- local sp = Instance.new("SpecialMesh",w2)
- sp.MeshType = "Wedge"
- sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
- w2:BreakJoints()
- w2.Anchored = false
- w2.Parent = workspace
- w2.Transparency = 0.7
- table.insert(Effects,{w2,"Disappear",.01})
- w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
- table.insert(list,w2)
- end
- return unpack(list)
- end
- so = function(id,par,vol,pit)
- coroutine.resume(coroutine.create(function()
- local sou = Instance.new("Sound",par or workspace)
- sou.Volume=vol
- sou.Pitch=pit or 1
- sou.SoundId=id
- swait()
- sou:play()
- game:GetService("Debris"):AddItem(sou,6)
- end))
- end
- function clerp(a,b,t)
- local qa = {QuaternionFromCFrame(a)}
- local qb = {QuaternionFromCFrame(b)}
- local ax, ay, az = a.x, a.y, a.z
- local bx, by, bz = b.x, b.y, b.z
- local _t = 1-t
- return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
- end
- function QuaternionFromCFrame(cf)
- local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
- local trace = m00 + m11 + m22
- if trace > 0 then
- local s = math.sqrt(1 + trace)
- local recip = 0.5/s
- return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
- else
- local i = 0
- if m11 > m00 then
- i = 1
- end
- if m22 > (i == 0 and m00 or m11) then
- i = 2
- end
- if i == 0 then
- local s = math.sqrt(m00-m11-m22+1)
- local recip = 0.5/s
- return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
- elseif i == 1 then
- local s = math.sqrt(m11-m22-m00+1)
- local recip = 0.5/s
- return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
- elseif i == 2 then
- local s = math.sqrt(m22-m00-m11+1)
- local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
- end
- end
- end
- function QuaternionToCFrame(px, py, pz, x, y, z, w)
- local xs, ys, zs = x + x, y + y, z + z
- local wx, wy, wz = w*xs, w*ys, w*zs
- local xx = x*xs
- local xy = x*ys
- local xz = x*zs
- local yy = y*ys
- local yz = y*zs
- local zz = z*zs
- return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
- end
- function QuaternionSlerp(a, b, t)
- local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
- local startInterp, finishInterp;
- if cosTheta >= 0.0001 then
- if (1 - cosTheta) > 0.0001 then
- local theta = math.acos(cosTheta)
- local invSinTheta = 1/math.sin(theta)
- startInterp = math.sin((1-t)*theta)*invSinTheta
- finishInterp = math.sin(t*theta)*invSinTheta
- else
- startInterp = 1-t
- finishInterp = t
- end
- else
- if (1+cosTheta) > 0.0001 then
- local theta = math.acos(-cosTheta)
- local invSinTheta = 1/math.sin(theta)
- startInterp = math.sin((t-1)*theta)*invSinTheta
- finishInterp = math.sin(t*theta)*invSinTheta
- else
- startInterp = t-1
- finishInterp = t
- end
- end
- return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
- end
- function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
- return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
- end
- local function CFrameFromTopBack(at, top, back)
- local right = top:Cross(back)
- return CFrame.new(at.x, at.y, at.z,
- right.x, top.x, back.x,
- right.y, top.y, back.y,
- right.z, top.z, back.z)
- end
- function Triangle(a, b, c)
- local edg1 = (c-a):Dot((b-a).unit)
- local edg2 = (a-b):Dot((c-b).unit)
- local edg3 = (b-c):Dot((a-c).unit)
- if edg1 <= (b-a).magnitude and edg1 >= 0 then
- a, b, c = a, b, c
- elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
- a, b, c = b, c, a
- elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
- a, b, c = c, a, b
- else
- assert(false, "unreachable")
- end
- local len1 = (c-a):Dot((b-a).unit)
- local len2 = (b-a).magnitude - len1
- local width = (a + (b-a).unit*len1 - c).magnitude
- local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
- local list = {}
- if len1 > 0.01 then
- local w1 = Instance.new('WedgePart', m)
- game:GetService("Debris"):AddItem(w1,5)
- w1.Material = "SmoothPlastic"
- w1.FormFactor = 'Custom'
- w1.BrickColor = BrickColor.new("Really black")
- w1.Transparency = 0
- w1.Reflectance = 0
- w1.Material = "SmoothPlastic"
- w1.CanCollide = false
- NoOutline(w1)
- local sz = Vector3.new(0.2, width, len1)
- w1.Size = sz
- local sp = Instance.new("SpecialMesh",w1)
- sp.MeshType = "Wedge"
- sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
- w1:BreakJoints()
- w1.Anchored = false
- w1.Parent = workspace
- w1.Transparency = 0.7
- table.insert(Effects,{w1,"Disappear",.01})
- w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
- table.insert(list,w1)
- end
- if len2 > 0.01 then
- local w2 = Instance.new('WedgePart', m)
- game:GetService("Debris"):AddItem(w2,5)
- w2.Material = "SmoothPlastic"
- w2.FormFactor = 'Custom'
- w2.BrickColor = BrickColor.new("Really black")
- w2.Transparency = 0
- w2.Reflectance = 0
- w2.Material = "SmoothPlastic"
- w2.CanCollide = false
- NoOutline(w2)
- local sz = Vector3.new(0.2, width, len2)
- w2.Size = sz
- local sp = Instance.new("SpecialMesh",w2)
- sp.MeshType = "Wedge"
- sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
- w2:BreakJoints()
- w2.Anchored = false
- w2.Parent = workspace
- w2.Transparency = 0.7
- table.insert(Effects,{w2,"Disappear",.01})
- w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
- table.insert(list,w2)
- end
- return unpack(list)
- end
- Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
- if hit.Parent==nil then
- return
- end
- h=hit.Parent:FindFirstChild("Humanoid")
- for _,v in pairs(hit.Parent:children()) do
- if v:IsA("Humanoid") then
- h=v
- end
- end
- if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
- h=hit.Parent.Parent:FindFirstChild("Humanoid")
- end
- if hit.Parent.className=="Hat" then
- hit=hit.Parent.Parent:findFirstChild("Head")
- end
- if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
- if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
- --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
- return
- end]]
- -- hs(hit,1.2)
- c=Instance.new("ObjectValue")
- c.Name="creator"
- c.Value=game:service("Players").LocalPlayer
- c.Parent=h
- game:GetService("Debris"):AddItem(c,.5)
- Damage=math.random(minim,maxim)
- -- h:TakeDamage(Damage)
- blocked=false
- block=hit.Parent:findFirstChild("Block")
- if block~=nil then
- print(block.className)
- if block.className=="NumberValue" then
- if block.Value>0 then
- blocked=true
- if decreaseblock==nil then
- block.Value=block.Value-1
- end
- end
- end
- if block.className=="IntValue" then
- if block.Value>0 then
- blocked=true
- if decreaseblock~=nil then
- block.Value=block.Value-1
- end
- end
- end
- end
- if blocked==false then
- -- h:TakeDamage(Damage)
- h.Health=h.Health-Damage
- showDamage(hit.Parent,Damage,.5,BrickColor.new("Dark stone grey"))
- else
- h.Health=h.Health-(Damage/2)
- showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
- end
- if Type=="Knockdown" then
- hum=hit.Parent.Humanoid
- hum.PlatformStand=true
- coroutine.resume(coroutine.create(function(HHumanoid)
- swait(1)
- HHumanoid.PlatformStand=false
- end),hum)
- local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
- --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
- local bodvol=Instance.new("BodyVelocity")
- bodvol.velocity=angle*knockback
- bodvol.P=5000
- bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
- bodvol.Parent=hit
- rl=Instance.new("BodyAngularVelocity")
- rl.P=3000
- rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
- rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
- rl.Parent=hit
- game:GetService("Debris"):AddItem(bodvol,.5)
- game:GetService("Debris"):AddItem(rl,.5)
- elseif Type=="Normal" then
- vp=Instance.new("BodyVelocity")
- vp.P=500
- vp.maxForce=Vector3.new(math.huge,0,math.huge)
- -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
- if KnockbackType==1 then
- vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
- elseif KnockbackType==2 then
- vp.velocity=Property.CFrame.lookVector*knockback
- end
- if knockback>0 then
- vp.Parent=hit.Parent.Torso
- end
- game:GetService("Debris"):AddItem(vp,.5)
- elseif Type=="Up" then
- local bodyVelocity=Instance.new("BodyVelocity")
- bodyVelocity.velocity=vt(0,60,0)
- bodyVelocity.P=5000
- bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
- bodyVelocity.Parent=hit
- game:GetService("Debris"):AddItem(bodyVelocity,1)
- rl=Instance.new("BodyAngularVelocity")
- rl.P=3000
- rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
- rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
- rl.Parent=hit
- game:GetService("Debris"):AddItem(rl,.5)
- elseif Type=="Snare" then
- bp=Instance.new("BodyPosition")
- bp.P=2000
- bp.D=100
- bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
- bp.position=hit.Parent.Torso.Position
- bp.Parent=hit.Parent.Torso
- game:GetService("Debris"):AddItem(bp,1)
- elseif Type=="Target" then
- if Targetting==false then
- ZTarget=hit.Parent.Torso
- coroutine.resume(coroutine.create(function(Part)
- so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
- swait(5)
- so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
- end),ZTarget)
- TargHum=ZTarget.Parent:findFirstChild("Humanoid")
- targetgui=Instance.new("BillboardGui")
- targetgui.Parent=ZTarget
- targetgui.Size=UDim2.new(10,100,10,100)
- targ=Instance.new("ImageLabel")
- targ.Parent=targetgui
- targ.BackgroundTransparency=1
- targ.Image="rbxassetid://4834067"
- targ.Size=UDim2.new(1,0,1,0)
- cam.CameraType="Scriptable"
- cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
- dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
- workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
- Targetting=true
- RocketTarget=ZTarget
- for i=1,Property do
- --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
- if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
- swait()
- end
- --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
- cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
- dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
- cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
- end
- Targetting=false
- RocketTarget=nil
- targetgui.Parent=nil
- cam.CameraType="Custom"
- end
- end
- debounce=Instance.new("BoolValue")
- debounce.Name="DebounceHit"
- debounce.Parent=hit.Parent
- debounce.Value=true
- game:GetService("Debris"):AddItem(debounce,Delay)
- c=Instance.new("ObjectValue")
- c.Name="creator"
- c.Value=Player
- c.Parent=h
- game:GetService("Debris"):AddItem(c,.5)
- CRIT=false
- hitDeb=true
- AttackPos=6
- end
- end
- showDamage=function(Char,Dealt,du,Color)
- m=Instance.new("Model")
- m.Name=tostring(Dealt)
- h=Instance.new("Humanoid")
- h.Health=0
- h.MaxHealth=0
- h.Parent=m
- c=Instance.new("Part")
- c.Transparency=0
- c.BrickColor=Color
- c.Name="Head"
- c.TopSurface=0
- c.BottomSurface=0
- c.formFactor="Plate"
- c.Size=Vector3.new(1,.4,1)
- ms=Instance.new("CylinderMesh")
- ms.Scale=Vector3.new(.8,.8,.8)
- if CRIT==true then
- ms.Scale=Vector3.new(1,1.25,1)
- end
- ms.Parent=c
- c.Reflectance=0
- Instance.new("BodyGyro").Parent=c
- c.Parent=m
- if Char:findFirstChild("Head")~=nil then
- c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
- elseif Char.Parent:findFirstChild("Head")~=nil then
- c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
- end
- f=Instance.new("BodyPosition")
- f.P=2000
- f.D=100
- f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
- f.position=c.Position+Vector3.new(0,3,0)
- f.Parent=c
- game:GetService("Debris"):AddItem(m,.5+du)
- c.CanCollide=false
- m.Parent=workspace
- c.CanCollide=false
- end
- function Smoke(origin,color)
- local p = Part("Effect",workspace,Vector3.new(2,2,2),origin*CFrame.new(rand(5),-1,rand(5)),color or "Black",.1,false,false,"SmoothPlastic")
- local m = Mesh(p,"Sphere",Vector3.new(1.25,1.25,1.25))
- local bp = Instance.new("BodyPosition",p)bp.D = 100 bp.P = 100 bp.position = p.Position+Vector3.new(0,7,0)
- q(function(pa,me)
- fade(pa,.1)
- for i=25,100 do
- me.Scale = me.Scale+Vector3.new(0.15,0.1,0.15)
- wait(1/30)
- end
- pa:Destroy()
- end,{p,m})
- end
- function brickMagic(origin,color,size)
- local p = Part("Effect",workspace,Vector3.new(size,size,size),origin*CFrame.Angles(rand(5),rand(5),rand(5)),color,.2,true,false,"SmoothPlastic")
- local m = Mesh(p,"Brick")
- q(function(pa,me)
- fade(pa,.2)
- for i=20,100 do
- me.Scale = me.Scale-Vector3.new(0.05,0.05,0.05)
- wait(1/30)
- end
- pa:Destroy()
- end,{p,m})
- end
- function spikeMagic(origin,size,color)
- local p = Part("Effect",workspace,Vector3.new(1,1,1),origin*CFrame.new(0,-size,0),color,1,true,false,"SmoothPlastic")
- local m = Mesh(p,"FileMesh",Vector3.new(size/2,size*2,size/2),asset..meshes["spike"])
- q(function(pa,me)
- appear(pa,1)
- for i=1,size,.5 do
- wait(1/30)
- pa.CFrame = pa.CFrame*CFrame.new(0,.5,0)
- end
- wait(math.random(2,3))fade(pa,0)
- Delay(3,function()pa:Destroy()end)
- end,{p,m})
- end
- function placePart(origin,size,color,material)
- local p = Part("Effect",workspace,Vector3.new(size,size,size),origin*CFrame.Angles(rand(5),rand(5),rand(5)),color,0,true,true,material)
- local m = Mesh(p,"Brick")
- q(function(pa,me)
- wait(5)
- fade(pa,0)
- Delay(1.25,function()pa:Destroy()end)
- end,{p,m})
- end
- function placePartRandSize(origin,min,max,color,material)
- local p = Part("Effect",workspace,Vector3.new(math.random(min,max),math.random(min,max),math.random(min,max)),origin*CFrame.Angles(rand(5),rand(5),rand(5)),color,0,true,true,material)
- local m = Mesh(p,"Brick")
- q(function(pa,me)
- wait(5)
- fade(pa,0)
- Delay(1.25,function()pa:Destroy()end)
- end,{p,m})
- end
- function crater(origin,dist)
- local b = workspace.Base
- local bc = b and tostring(b.BrickColor) or "Bright green"
- local m = b and b.Material or "Grass"
- for i=0,360,30 do
- local cf = origin*CFrame.Angles(0,math.rad(i),0)*CFrame.new(0,0,dist)*CFrame.Angles(math.rad(i/30),0,rand(5))
- placePartRandSize(cf,5,15,bc,m)
- end
- end
- function cylinderExplode(origin,color,size,ysize)
- local p = Part("Effect",workspace,Vector3.new(size,ysize or size,size),origin,color,.2,true,false,"SmoothPlastic")
- local m = Instance.new("CylinderMesh",p)
- q(function(pa,me)
- for i=.2,1,.0075 do
- me.Scale = me.Scale+Vector3.new(.1,0,.1)
- pa.Transparency = i
- wait(1/30)
- end
- pa:Destroy()
- end,{p,m})
- end
- function ringExplode(origin,color,size)
- local p = Part("Effect",workspace,Vector3.new(1,1,1),origin,color,.2,true,false,"SmoothPlastic")
- local m = Mesh(p,"FileMesh",Vector3.new(size,size,1),asset..meshes["ring"])
- q(function(pa,me)
- for i=.2,1,.0075 do
- me.Scale = me.Scale+Vector3.new(0.25,0.25,0)
- pa.Transparency = i
- wait(1/30)
- end
- pa:Destroy()
- end,{p,m})
- end
- function crownExplode(origin,color,size)
- local p = Part("Effect",workspace,Vector3.new(size,size,size),origin,color,.2,true,false,"SmoothPlastic")
- local m = Mesh(p,"FileMesh",Vector3.new(size/2,size/2,size/2),asset..meshes["crown"])
- q(function(pa,me)
- for i=.2,1,.025 do
- me.Scale = me.Scale+Vector3.new(0.75,0.75,0.75)
- pa.Transparency = i
- wait(1/30)
- end
- pa:Destroy()
- end,{p,m})
- end
- function glitter(origin,color)
- local p = Part("Effect",workspace,Vector3.new(0.75,0.75,0.75),origin*CFrame.new(rand(5),rand(5),rand(5))*CFrame.Angles(rand(5),rand(5),rand(5)),color,0,true,false,"SmoothPlastic")
- local m = Mesh(p,"Brick",Vector3.new(1,1,1))
- q(function(pa,me)
- fade(pa,0)
- for i=0,1,.05 do
- me.Scale = me.Scale-Vector3.new(0.05,0.05,0.05)
- wait(1/30)
- end
- pa:Destroy()
- end,{p,m})
- end
- function sphereExtend(origin,color,size)
- local p = Part("Effect",workspace,Vector3.new(size,size,size),origin,color,0,true,false,"SmoothPlastic")
- local m = Mesh(p,"Sphere")
- q(function(pa,me)
- for i=0,1,0.05 do
- me.Scale = me.Scale+Vector3.new(0,i*10,0)
- pa.Transparency = i
- wait(1/30)
- end
- pa:Destroy()
- end,{p,m})
- end
- function quickSound(id,v)
- local s = Instance.new("Sound",workspace)
- s.SoundId = id
- s.PlayOnRemove = true
- s.Volume = v or 1
- delay(0.025,function()s:remove()end)
- end
- function checkDmgArea(origin,dmg,d)
- for i,v in pairs(workspace:children())do
- if v~=char and v:FindFirstChild("Torso") then
- local h;
- for _,k in pairs(v:children())do if k:IsA("Humanoid") then h = k end end
- local dist = (origin.p - v:FindFirstChild("Torso").CFrame.p).magnitude
- if dist < d and h~=nil then
- h.Health = h.Health - dmg
- end
- end
- end
- end
- p1 = Instance.new("Part", Cha)
- p1.BrickColor = BrickColor.new("Really black")
- p1.FormFactor = Enum.FormFactor.Custom
- p1.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- p1.CFrame = CFrame.new(-0.0500000007, 10.3249998, 8.20000172, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- p1.Anchored = false
- p1.CanCollide = false
- p1.BottomSurface = Enum.SurfaceType.Smooth
- p1.TopSurface = Enum.SurfaceType.Smooth
- b1 = Instance.new("SpecialMesh", p1)
- b1.MeshType = Enum.MeshType.Brick
- b1.Name = "Mesh"
- b1.Scale = Vector3.new(0.50000006, 0.75, 0.50000006)
- p2 = Instance.new("Part", Cha)
- p2.BrickColor = BrickColor.new("Really black")
- p2.FormFactor = Enum.FormFactor.Custom
- p2.Size = Vector3.new(0.200000003, 0.200000003, 2)
- p2.CFrame = CFrame.new(-0.0500000007, 10.3249998, 12.4000015, -1, -1.50995803e-007, 0, -1.50995803e-007, 1, -1.50995803e-007, 2.27997332e-014, -1.50995803e-007, -1)
- p2.Anchored = false
- p2.CanCollide = false
- p2.BottomSurface = Enum.SurfaceType.Smooth
- p2.TopSurface = Enum.SurfaceType.Smooth
- b2 = Instance.new("SpecialMesh", p2)
- b2.MeshType = Enum.MeshType.Brick
- b2.Name = "Mesh"
- b2.Scale = Vector3.new(0.99999994, 0.750000238, 1)
- p3 = Instance.new("Part", Cha)
- p3.BrickColor = BrickColor.new("Really black")
- p3.FormFactor = Enum.FormFactor.Custom
- p3.Size = Vector3.new(0.200000003, 0.200000003, 0.50000006)
- p3.CFrame = CFrame.new(-0.0500000007, 10.4749994, 11.8000002, -1, -1.50995803e-007, 0, -1.50995803e-007, 1, -1.50995803e-007, 2.27997332e-014, -1.50995803e-007, -1)
- p3.Anchored = false
- p3.CanCollide = false
- p3.BottomSurface = Enum.SurfaceType.Smooth
- p3.TopSurface = Enum.SurfaceType.Smooth
- b3 = Instance.new("SpecialMesh", p3)
- b3.MeshType = Enum.MeshType.Brick
- b3.Name = "Mesh"
- b3.Scale = Vector3.new(0.99999994, 0.750000298, 1)
- p4 = Instance.new("Part", Cha)
- p4.BrickColor = BrickColor.new("Really black")
- p4.FormFactor = Enum.FormFactor.Custom
- p4.Size = Vector3.new(0.200000003, 0.200000003, 3.40000033)
- p4.CFrame = CFrame.new(-0.0500000007, 10.1999998, 12.0000019, -1, -1.50995803e-007, 0, -1.50995803e-007, 1, -1.50995803e-007, 2.27997332e-014, -1.50995803e-007, -1)
- p4.Anchored = false
- p4.CanCollide = false
- p4.BottomSurface = Enum.SurfaceType.Smooth
- p4.TopSurface = Enum.SurfaceType.Smooth
- b4 = Instance.new("SpecialMesh", p4)
- b4.MeshType = Enum.MeshType.Brick
- b4.Name = "Mesh"
- b4.Scale = Vector3.new(0.99999994, 0.500000179, 1)
- p5 = Instance.new("Part", Cha)
- p5.BrickColor = BrickColor.new("Really black")
- p5.FormFactor = Enum.FormFactor.Custom
- p5.Size = Vector3.new(0.25, 0.200000003, 0.200000003)
- p5.CFrame = CFrame.new(-0.0500000007, 10.5249987, 11.9500017, 1, 1.50995803e-007, 0, -1.50995803e-007, 1, -6.60023616e-015, 0, 6.60023616e-015, 1)
- p5.Anchored = false
- p5.CanCollide = false
- p5.BottomSurface = Enum.SurfaceType.Smooth
- p5.TopSurface = Enum.SurfaceType.Smooth
- b5 = Instance.new("SpecialMesh", p5)
- b5.MeshType = Enum.MeshType.Cylinder
- b5.Name = "Mesh"
- b5.Scale = Vector3.new(1, 0.875, 0.875)
- p6 = Instance.new("Part", Cha)
- p6.BrickColor = BrickColor.new("Really black")
- p6.FormFactor = Enum.FormFactor.Custom
- p6.Size = Vector3.new(1.45000005, 0.200000003, 0.200000003)
- p6.CFrame = CFrame.new(-0.0500000231, 10.2249994, 7.57500076, -4.37113883e-008, 0, 1, -1.50995803e-007, 1, -6.60023616e-015, -1, -1.50995803e-007, -4.37113883e-008)
- p6.Anchored = false
- p6.CanCollide = false
- p6.BottomSurface = Enum.SurfaceType.Smooth
- p6.TopSurface = Enum.SurfaceType.Smooth
- b6 = Instance.new("SpecialMesh", p6)
- b6.MeshType = Enum.MeshType.Cylinder
- b6.Name = "Mesh"
- b6.Scale = Vector3.new(1, 0.5, 0.5)
- p7 = Instance.new("Part", Cha)
- p7.BrickColor = BrickColor.new("Pastel brown")
- p7.Transparency = 1
- p7.FormFactor = Enum.FormFactor.Custom
- p7.Size = Vector3.new(0.5, 0.5, 1)
- p7.CFrame = CFrame.new(-0.0500000007, 9.75, 12.8249979, -1, 0, 0, 0, 1, 0, 0, 0, -1)
- p7.Anchored = false
- p7.CanCollide = false
- p7.BottomSurface = Enum.SurfaceType.Smooth
- p7.TopSurface = Enum.SurfaceType.Smooth
- b7 = Instance.new("SpecialMesh", p7)
- b7.MeshType = Enum.MeshType.Brick
- b7.Name = "Mesh"
- p8 = Instance.new("Part", Cha)
- p8.BrickColor = BrickColor.new("Really black")
- p8.FormFactor = Enum.FormFactor.Custom
- p8.Size = Vector3.new(0.200000003, 0.25000003, 3.5)
- p8.CFrame = CFrame.new(-0.0500000007, 10.0749998, 12.0500021, -1, -1.50995803e-007, 0, -1.50995803e-007, 1, -1.50995803e-007, 2.27997332e-014, -1.50995803e-007, -1)
- p8.Anchored = false
- p8.CanCollide = false
- p8.BottomSurface = Enum.SurfaceType.Smooth
- p8.TopSurface = Enum.SurfaceType.Smooth
- b8 = Instance.new("SpecialMesh", p8)
- b8.MeshType = Enum.MeshType.Brick
- b8.Name = "Mesh"
- b8.Scale = Vector3.new(0.99999994, 1, 1)
- p9 = Instance.new("Part", Cha)
- p9.BrickColor = BrickColor.new("Really black")
- p9.FormFactor = Enum.FormFactor.Custom
- p9.Size = Vector3.new(0.200000003, 0.200000003, 0.300000131)
- p9.CFrame = CFrame.new(-0.0500000007, 10.0999994, 14.7750015, -4.37113883e-008, 0, -1, -1.50995803e-007, 1, 6.60023616e-015, 1, 1.50995803e-007, -4.37113883e-008)
- p9.Anchored = false
- p9.CanCollide = false
- p9.BottomSurface = Enum.SurfaceType.Smooth
- p9.TopSurface = Enum.SurfaceType.Smooth
- b9 = Instance.new("SpecialMesh", p9)
- b9.MeshType = Enum.MeshType.Cylinder
- b9.Name = "Mesh"
- b9.Scale = Vector3.new(0.5, 0.99999994, 1)
- p10 = Instance.new("Part", Cha)
- p10.BrickColor = BrickColor.new("Really black")
- p10.FormFactor = Enum.FormFactor.Custom
- p10.Size = Vector3.new(0.200000003, 0.5, 0.800000012)
- p10.CFrame = CFrame.new(-0.0500000007, 9.82392216, 12.5223665, -1, -1.50995803e-007, 0, -1.49526329e-007, 0.990268111, -0.139172941, 2.10145306e-008, -0.139172941, -0.990268111)
- p10.Anchored = false
- p10.CanCollide = false
- p10.BottomSurface = Enum.SurfaceType.Smooth
- p10.TopSurface = Enum.SurfaceType.Smooth
- b10 = Instance.new("SpecialMesh", p10)
- b10.MeshType = Enum.MeshType.Brick
- b10.Name = "Mesh"
- b10.Scale = Vector3.new(0.99999994, 1, 1)
- p11 = Instance.new("Part", Cha)
- p11.BrickColor = BrickColor.new("Really black")
- p11.FormFactor = Enum.FormFactor.Custom
- p11.Size = Vector3.new(0.200000003, 0.200000003, 0.300000012)
- p11.CFrame = CFrame.new(-0.0500000007, 9.6954546, 13.0453367, -1, -1.50995803e-007, 0, -1.49526329e-007, 0.990268111, -0.139172941, 2.10145306e-008, -0.139172941, -0.990268111)
- p11.Anchored = false
- p11.CanCollide = false
- p11.BottomSurface = Enum.SurfaceType.Smooth
- p11.TopSurface = Enum.SurfaceType.Smooth
- b11 = Instance.new("SpecialMesh", p11)
- b11.MeshType = Enum.MeshType.Brick
- b11.Name = "Mesh"
- b11.Scale = Vector3.new(0.99999994, 0.500000119, 1)
- p12 = Instance.new("Part", Cha)
- p12.BrickColor = BrickColor.new("Really black")
- p12.FormFactor = Enum.FormFactor.Custom
- p12.Size = Vector3.new(0.200000003, 0.450000048, 0.200000003)
- p12.CFrame = CFrame.new(-0.0500000007, 9.8826685, 13.1200056, -1, -1.50995803e-007, 0, -1.49526329e-007, 0.990268111, -0.139172941, 2.10145306e-008, -0.139172941, -0.990268111)
- p12.Anchored = false
- p12.CanCollide = false
- p12.BottomSurface = Enum.SurfaceType.Smooth
- p12.TopSurface = Enum.SurfaceType.Smooth
- b12 = Instance.new("SpecialMesh", p12)
- b12.MeshType = Enum.MeshType.Brick
- b12.Name = "Mesh"
- b12.Scale = Vector3.new(0.99999994, 1, 0.50000006)
- p13 = Instance.new("Part", Cha)
- p13.BrickColor = BrickColor.new("Really black")
- p13.FormFactor = Enum.FormFactor.Custom
- p13.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- p13.CFrame = CFrame.new(-0.0500000007, 9.86914063, 12.0564413, -4.37113883e-008, 0, 1, -0.139172822, 0.990268111, -6.08343731e-009, -0.990268111, -0.139172822, -4.32859935e-008)
- p13.Anchored = false
- p13.CanCollide = false
- p13.BottomSurface = Enum.SurfaceType.Smooth
- p13.TopSurface = Enum.SurfaceType.Smooth
- b13 = Instance.new("SpecialMesh", p13)
- b13.MeshId = "http://www.roblox.com/asset/?id=3270017"
- b13.TextureId = ""
- b13.MeshType = Enum.MeshType.FileMesh
- b13.Name = "Mesh"
- b13.Scale = Vector3.new(0.5, 0.5, 0.349999994)
- p14 = Instance.new("Part", Cha)
- p14.BrickColor = BrickColor.new("Really black")
- p14.FormFactor = Enum.FormFactor.Custom
- p14.Size = Vector3.new(0.600000024, 0.200000003, 0.249999896)
- p14.CFrame = CFrame.new(-0.0500000007, 10.0249996, 14.1000032, -4.37113883e-008, 0, 1, -1.50995803e-007, 1, -6.60023616e-015, -1, -1.50995803e-007, -4.37113883e-008)
- p14.Anchored = false
- p14.CanCollide = false
- p14.BottomSurface = Enum.SurfaceType.Smooth
- p14.TopSurface = Enum.SurfaceType.Smooth
- b14 = Instance.new("SpecialMesh", p14)
- b14.MeshType = Enum.MeshType.Cylinder
- b14.Name = "Mesh"
- b14.Scale = Vector3.new(1, 0.750000179, 1)
- p15 = Instance.new("Part", Cha)
- p15.BrickColor = BrickColor.new("Really black")
- p15.FormFactor = Enum.FormFactor.Custom
- p15.Size = Vector3.new(0.200000003, 0.200000003, 0.44999975)
- p15.CFrame = CFrame.new(-0.0500000007, 10.0250006, 14.5500021, -1, -1.50995803e-007, 0, -1.50995803e-007, 1, -1.50995803e-007, 2.27997332e-014, -1.50995803e-007, -1)
- p15.Anchored = false
- p15.CanCollide = false
- p15.BottomSurface = Enum.SurfaceType.Smooth
- p15.TopSurface = Enum.SurfaceType.Smooth
- b15 = Instance.new("SpecialMesh", p15)
- b15.MeshType = Enum.MeshType.Brick
- b15.Name = "Mesh"
- b15.Scale = Vector3.new(0.99999994, 0.750000179, 1)
- p16 = Instance.new("Part", Cha)
- p16.BrickColor = BrickColor.new("Really black")
- p16.FormFactor = Enum.FormFactor.Custom
- p16.Size = Vector3.new(1.20000005, 0.200000003, 0.200000003)
- p16.CFrame = CFrame.new(-0.0500000007, 10.7749996, 10.8750019, -4.37113883e-008, 0, 1, -1.50995803e-007, 1, -6.60023616e-015, -1, -1.50995803e-007, -4.37113883e-008)
- p16.Anchored = false
- p16.CanCollide = false
- p16.BottomSurface = Enum.SurfaceType.Smooth
- p16.TopSurface = Enum.SurfaceType.Smooth
- b16 = Instance.new("SpecialMesh", p16)
- b16.MeshType = Enum.MeshType.Cylinder
- b16.Name = "Mesh"
- p17 = Instance.new("Part", Cha)
- p17.BrickColor = BrickColor.new("Really black")
- p17.FormFactor = Enum.FormFactor.Custom
- p17.Size = Vector3.new(0.200000003, 0.75, 0.200000003)
- p17.CFrame = CFrame.new(-0.0500000007, 9.72500038, 14.7750015, -1, -1.50995803e-007, 0, -1.50995803e-007, 1, -1.50995803e-007, 2.27997332e-014, -1.50995803e-007, -1)
- p17.Anchored = false
- p17.CanCollide = false
- p17.BottomSurface = Enum.SurfaceType.Smooth
- p17.TopSurface = Enum.SurfaceType.Smooth
- b17 = Instance.new("SpecialMesh", p17)
- b17.MeshType = Enum.MeshType.Brick
- b17.Name = "Mesh"
- b17.Scale = Vector3.new(0.99999994, 1, 0.500000715)
- p18 = Instance.new("Part", Cha)
- p18.BrickColor = BrickColor.new("Really black")
- p18.FormFactor = Enum.FormFactor.Custom
- p18.Size = Vector3.new(0.200000003, 0.200000003, 0.650000095)
- p18.CFrame = CFrame.new(-0.0500000007, 10.5499992, 11.5250006, -1, -1.50995803e-007, 0, -1.50995803e-007, 1, -1.50995803e-007, 2.27997332e-014, -1.50995803e-007, -1)
- p18.Anchored = false
- p18.CanCollide = false
- p18.BottomSurface = Enum.SurfaceType.Smooth
- p18.TopSurface = Enum.SurfaceType.Smooth
- b18 = Instance.new("SpecialMesh", p18)
- b18.MeshType = Enum.MeshType.Brick
- b18.Name = "Mesh"
- b18.Scale = Vector3.new(0.99999994, 0.500000358, 1)
- p19 = Instance.new("Part", Cha)
- p19.BrickColor = BrickColor.new("Really black")
- p19.FormFactor = Enum.FormFactor.Custom
- p19.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- p19.CFrame = CFrame.new(-0.0500000007, 10.6750002, 11.3250027, -1, 0, 0, 0, 1, 0, 0, 0, -1)
- p19.Anchored = false
- p19.CanCollide = false
- p19.BottomSurface = Enum.SurfaceType.Smooth
- p19.TopSurface = Enum.SurfaceType.Smooth
- b19 = Instance.new("SpecialMesh", p19)
- b19.MeshId = "http://www.roblox.com/asset/?id=3270017"
- b19.TextureId = ""
- b19.MeshType = Enum.MeshType.FileMesh
- b19.Name = "Mesh"
- b19.Scale = Vector3.new(0.25, 0.25, 0.349999994)
- p20 = Instance.new("Part", Cha)
- p20.BrickColor = BrickColor.new("Really black")
- p20.FormFactor = Enum.FormFactor.Custom
- p20.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- p20.CFrame = CFrame.new(-0.0500000007, 10.874999, 10.8750019, -1.07284414e-007, 1, -5.21080397e-015, 1, 1.07284414e-007, 3.17865059e-008, 3.17865059e-008, -1.80060697e-015, -1)
- p20.Anchored = false
- p20.CanCollide = false
- p20.BottomSurface = Enum.SurfaceType.Smooth
- p20.TopSurface = Enum.SurfaceType.Smooth
- b20 = Instance.new("SpecialMesh", p20)
- b20.MeshType = Enum.MeshType.Cylinder
- b20.Name = "Mesh"
- b20.Scale = Vector3.new(0.500000358, 1, 1)
- p21 = Instance.new("Part", Cha)
- p21.BrickColor = BrickColor.new("Really black")
- p21.FormFactor = Enum.FormFactor.Custom
- p21.Size = Vector3.new(0.300000072, 0.200000003, 0.200000003)
- p21.CFrame = CFrame.new(-0.0500000007, 10.7749996, 10.8750019, -1, -1.50995803e-007, -3.17865059e-008, -1.50995803e-007, 1, -6.60023616e-015, 3.17865059e-008, -1.80060697e-015, -1)
- p21.Anchored = false
- p21.CanCollide = false
- p21.BottomSurface = Enum.SurfaceType.Smooth
- p21.TopSurface = Enum.SurfaceType.Smooth
- b21 = Instance.new("SpecialMesh", p21)
- b21.MeshType = Enum.MeshType.Cylinder
- b21.Name = "Mesh"
- p22 = Instance.new("Part", Cha)
- p22.BrickColor = BrickColor.new("Really black")
- p22.FormFactor = Enum.FormFactor.Custom
- p22.Size = Vector3.new(0.5, 0.200000003, 0.5)
- p22.CFrame = CFrame.new(-0.0500000007, 10.7749996, 11.3499994, -1, 8.74227766e-008, 0, 0, 0, -1, -8.74227766e-008, -1, 0)
- p22.Anchored = false
- p22.CanCollide = false
- p22.BottomSurface = Enum.SurfaceType.Smooth
- p22.TopSurface = Enum.SurfaceType.Smooth
- b22 = Instance.new("SpecialMesh", p22)
- b22.MeshId = "http://www.roblox.com/asset/?id=1033714"
- b22.TextureId = ""
- b22.MeshType = Enum.MeshType.FileMesh
- b22.Name = "Mesh"
- b22.VertexColor = Vector3.new(3.00000003e+015, 2.99999995e+031, 3.00000003e+015)
- b22.Scale = Vector3.new(0.100000001, 1, 0.100000001)
- p23 = Instance.new("Part", Cha)
- p23.BrickColor = BrickColor.new("Really black")
- p23.FormFactor = Enum.FormFactor.Custom
- p23.Size = Vector3.new(0.5, 0.5, 0.5)
- p23.CFrame = CFrame.new(-0.0499995016, 10.7749996, 10.0999994, 1, 0, 0, 0, 0, -1, 0, 1, 0)
- p23.Anchored = false
- p23.CanCollide = false
- p23.BottomSurface = Enum.SurfaceType.Smooth
- p23.TopSurface = Enum.SurfaceType.Smooth
- b23 = Instance.new("SpecialMesh", p23)
- b23.MeshId = "http://www.roblox.com/asset/?id=1033714"
- b23.TextureId = ""
- b23.MeshType = Enum.MeshType.FileMesh
- b23.Name = "Mesh"
- b23.VertexColor = Vector3.new(3.00000003e+015, 2.99999995e+031, 3.00000003e+015)
- b23.Scale = Vector3.new(0.200000003, 1, 0.200000003)
- p24 = Instance.new("Part", Cha)
- p24.BrickColor = BrickColor.new("Really black")
- p24.FormFactor = Enum.FormFactor.Custom
- p24.Size = Vector3.new(0.200000003, 0.224999994, 0.224999994)
- p24.CFrame = CFrame.new(-0.0500000007, 10.7749996, 10.2750015, -4.37113883e-008, 0, 1, -1.50995803e-007, 1, -6.60023616e-015, -1, -1.50995803e-007, -4.37113883e-008)
- p24.Anchored = false
- p24.CanCollide = false
- p24.BottomSurface = Enum.SurfaceType.Smooth
- p24.TopSurface = Enum.SurfaceType.Smooth
- b24 = Instance.new("SpecialMesh", p24)
- b24.MeshType = Enum.MeshType.Cylinder
- b24.Name = "Mesh"
- b24.Scale = Vector3.new(0.500000119, 1, 1)
- p25 = Instance.new("Part", Cha)
- p25.BrickColor = BrickColor.new("Really black")
- p25.FormFactor = Enum.FormFactor.Custom
- p25.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- p25.CFrame = CFrame.new(-0.0500000007, 10.5249996, 10.3000031, -1, 0, 0, 0, 1, 0, 0, 0, -1)
- p25.Anchored = false
- p25.CanCollide = false
- p25.BottomSurface = Enum.SurfaceType.Smooth
- p25.TopSurface = Enum.SurfaceType.Smooth
- b25 = Instance.new("SpecialMesh", p25)
- b25.MeshId = "http://www.roblox.com/asset/?id=3270017"
- b25.TextureId = ""
- b25.MeshType = Enum.MeshType.FileMesh
- b25.Name = "Mesh"
- b25.Scale = Vector3.new(0.25, 0.5, 0.349999994)
- p26 = Instance.new("Part", Cha)
- p26.BrickColor = BrickColor.new("Really black")
- p26.FormFactor = Enum.FormFactor.Custom
- p26.Size = Vector3.new(0.200000003, 1.20000005, 0.5)
- p26.CFrame = CFrame.new(-0.0500000007, 9.51616573, 10.9198675, -1, -1.50995803e-007, 0, -1.40000864e-007, 0.927183807, 0.374606699, -5.65640406e-008, 0.374606699, -0.927183807)
- p26.Anchored = false
- p26.CanCollide = false
- p26.BottomSurface = Enum.SurfaceType.Smooth
- p26.TopSurface = Enum.SurfaceType.Smooth
- b26 = Instance.new("SpecialMesh", p26)
- b26.MeshType = Enum.MeshType.Brick
- b26.Name = "Mesh"
- b26.Scale = Vector3.new(0.99999994, 1, 1)
- p27 = Instance.new("Part", Cha)
- p27.BrickColor = BrickColor.new("Really black")
- p27.FormFactor = Enum.FormFactor.Custom
- p27.Size = Vector3.new(0.200000003, 1, 0.200000003)
- p27.CFrame = CFrame.new(-0.275000006, 9.72679424, 9.47500324, -0.866025388, 0.50000006, 0, 0.50000006, 0.866025388, -1.50995803e-007, -7.54979084e-008, -1.30766196e-007, -1)
- p27.Anchored = false
- p27.CanCollide = false
- p27.BottomSurface = Enum.SurfaceType.Smooth
- p27.TopSurface = Enum.SurfaceType.Smooth
- b27 = Instance.new("SpecialMesh", p27)
- b27.MeshType = Enum.MeshType.Brick
- b27.Name = "Mesh"
- b27.Scale = Vector3.new(0.5, 1, 0.750000119)
- p28 = Instance.new("Part", Cha)
- p28.BrickColor = BrickColor.new("Really black")
- p28.FormFactor = Enum.FormFactor.Custom
- p28.Size = Vector3.new(0.200000003, 0.200000003, 0.550000012)
- p28.CFrame = CFrame.new(-0.0500000007, 9.92500019, 9.52500153, -1, -1.50995803e-007, 0, -1.50995803e-007, 1, -1.50995803e-007, 2.27997332e-014, -1.50995803e-007, -1)
- p28.Anchored = false
- p28.CanCollide = false
- p28.BottomSurface = Enum.SurfaceType.Smooth
- p28.TopSurface = Enum.SurfaceType.Smooth
- b28 = Instance.new("SpecialMesh", p28)
- b28.MeshType = Enum.MeshType.Brick
- b28.Name = "Mesh"
- b28.Scale = Vector3.new(0.99999994, 0.750000417, 1)
- p29 = Instance.new("Part", Cha)
- p29.BrickColor = BrickColor.new("Really black")
- p29.FormFactor = Enum.FormFactor.Custom
- p29.Size = Vector3.new(0.200000003, 0.50000006, 1.25)
- p29.CFrame = CFrame.new(-0.0500000007, 10.1999998, 9.72500229, -1, -1.50995803e-007, 0, -1.50995803e-007, 1, -1.50995803e-007, 2.27997332e-014, -1.50995803e-007, -1)
- p29.Anchored = false
- p29.CanCollide = false
- p29.BottomSurface = Enum.SurfaceType.Smooth
- p29.TopSurface = Enum.SurfaceType.Smooth
- b29 = Instance.new("SpecialMesh", p29)
- b29.MeshType = Enum.MeshType.Brick
- b29.Name = "Mesh"
- b29.Scale = Vector3.new(0.99999994, 1, 1)
- p30 = Instance.new("Part", Cha)
- p30.BrickColor = BrickColor.new("Really black")
- p30.FormFactor = Enum.FormFactor.Custom
- p30.Size = Vector3.new(0.200000003, 0.450000018, 0.200000003)
- p30.CFrame = CFrame.new(-0.562499523, 9.22882938, 9.47500324, -0.866025388, 0.50000006, 0, 0.50000006, 0.866025388, -1.50995803e-007, -7.54979084e-008, -1.30766196e-007, -1)
- p30.Anchored = false
- p30.CanCollide = false
- p30.BottomSurface = Enum.SurfaceType.Smooth
- p30.TopSurface = Enum.SurfaceType.Smooth
- b30 = Instance.new("SpecialMesh", p30)
- b30.MeshType = Enum.MeshType.Brick
- b30.Name = "Mesh"
- b30.Scale = Vector3.new(0.625, 1, 0.875)
- p31 = Instance.new("Part", Cha)
- p31.BrickColor = BrickColor.new("Really black")
- p31.FormFactor = Enum.FormFactor.Custom
- p31.Size = Vector3.new(0.200000003, 0.899999976, 0.5)
- p31.CFrame = CFrame.new(-0.0500000007, 9.20888424, 12.4573278, -1, -1.50995803e-007, 0, -1.49526329e-007, 0.990268111, -0.139172941, 2.10145306e-008, -0.139172941, -0.990268111)
- p31.Anchored = false
- p31.CanCollide = false
- p31.BottomSurface = Enum.SurfaceType.Smooth
- p31.TopSurface = Enum.SurfaceType.Smooth
- b31 = Instance.new("SpecialMesh", p31)
- b31.MeshType = Enum.MeshType.Brick
- b31.Name = "Mesh"
- b31.Scale = Vector3.new(0.99999994, 1, 1)
- p32 = Instance.new("Part", Cha)
- p32.BrickColor = BrickColor.new("Really black")
- p32.FormFactor = Enum.FormFactor.Custom
- p32.Size = Vector3.new(0.425000012, 0.200000003, 0.275000006)
- p32.CFrame = CFrame.new(-0.637500525, 9.00382996, 9.47500324, -1, -5.96046448e-008, -7.54979013e-008, -5.96046448e-008, 1, -1.30766196e-007, 7.54979084e-008, -1.30766196e-007, -1)
- p32.Anchored = false
- p32.CanCollide = false
- p32.BottomSurface = Enum.SurfaceType.Smooth
- p32.TopSurface = Enum.SurfaceType.Smooth
- b32 = Instance.new("SpecialMesh", p32)
- b32.MeshType = Enum.MeshType.Brick
- b32.Name = "Mesh"
- b32.Scale = Vector3.new(1, 0.500000119, 1)
- p33 = Instance.new("Part", Cha)
- p33.BrickColor = BrickColor.new("Black")
- p33.FormFactor = Enum.FormFactor.Custom
- p33.Size = Vector3.new(0.899999976, 0.200000003, 0.200000003)
- p33.CFrame = CFrame.new(-0.0500000007, 10.2249985, 7.10000086, -4.37113883e-008, 0, 1, -1.50995803e-007, 1, -6.60023616e-015, -1, -1.50995803e-007, -4.37113883e-008)
- p33.Anchored = false
- p33.CanCollide = false
- p33.BottomSurface = Enum.SurfaceType.Smooth
- p33.TopSurface = Enum.SurfaceType.Smooth
- b33 = Instance.new("SpecialMesh", p33)
- b33.MeshType = Enum.MeshType.Cylinder
- b33.Name = "Mesh"
- b33.Scale = Vector3.new(1, 0.875, 0.875)
- p34 = Instance.new("Part", Cha)
- p34.BrickColor = BrickColor.new("Really black")
- p34.FormFactor = Enum.FormFactor.Custom
- p34.Size = Vector3.new(0.200000003, 1, 0.200000003)
- p34.CFrame = CFrame.new(0.174999997, 9.72679424, 9.47500324, -0.866025388, -0.50000006, 0, -0.50000006, 0.866025388, -1.50995803e-007, 7.54979084e-008, -1.30766196e-007, -1)
- p34.Anchored = false
- p34.CanCollide = false
- p34.BottomSurface = Enum.SurfaceType.Smooth
- p34.TopSurface = Enum.SurfaceType.Smooth
- b34 = Instance.new("SpecialMesh", p34)
- b34.MeshType = Enum.MeshType.Brick
- b34.Name = "Mesh"
- b34.Scale = Vector3.new(0.5, 1, 0.750000119)
- p35 = Instance.new("Part", Cha)
- p35.BrickColor = BrickColor.new("Really black")
- p35.FormFactor = Enum.FormFactor.Custom
- p35.Size = Vector3.new(0.200000003, 0.450000018, 0.200000003)
- p35.CFrame = CFrame.new(0.462500006, 9.22882938, 9.47500324, -0.866025388, -0.50000006, 0, -0.50000006, 0.866025388, -1.50995803e-007, 7.54979084e-008, -1.30766196e-007, -1)
- p35.Anchored = false
- p35.CanCollide = false
- p35.BottomSurface = Enum.SurfaceType.Smooth
- p35.TopSurface = Enum.SurfaceType.Smooth
- b35 = Instance.new("SpecialMesh", p35)
- b35.MeshType = Enum.MeshType.Brick
- b35.Name = "Mesh"
- b35.Scale = Vector3.new(0.625, 1, 0.875)
- p36 = Instance.new("Part", Cha)
- p36.BrickColor = BrickColor.new("Really black")
- p36.FormFactor = Enum.FormFactor.Custom
- p36.Size = Vector3.new(0.299999982, 0.200000003, 0.700000048)
- p36.CFrame = CFrame.new(-0.0500000007, 8.7949791, 12.5659933, -1, -1.50995803e-007, 0, -1.49526329e-007, 0.990268111, -0.139172941, 2.10145306e-008, -0.139172941, -0.990268111)
- p36.Anchored = false
- p36.CanCollide = false
- p36.BottomSurface = Enum.SurfaceType.Smooth
- p36.TopSurface = Enum.SurfaceType.Smooth
- b36 = Instance.new("SpecialMesh", p36)
- b36.MeshType = Enum.MeshType.Brick
- b36.Name = "Mesh"
- b36.Scale = Vector3.new(1, 0.749999881, 1)
- p37 = Instance.new("Part", Cha)
- p37.BrickColor = BrickColor.new("Really black")
- p37.FormFactor = Enum.FormFactor.Custom
- p37.Size = Vector3.new(0.425000012, 0.200000003, 0.275000006)
- p37.CFrame = CFrame.new(0.562499523, 9.00382996, 9.47500324, -1, -5.96046448e-008, -7.54979013e-008, -5.96046448e-008, 1, -1.30766196e-007, 7.54979084e-008, -1.30766196e-007, -1)
- p37.Anchored = false
- p37.CanCollide = false
- p37.BottomSurface = Enum.SurfaceType.Smooth
- p37.TopSurface = Enum.SurfaceType.Smooth
- b37 = Instance.new("SpecialMesh", p37)
- b37.MeshType = Enum.MeshType.Brick
- b37.Name = "Mesh"
- b37.Scale = Vector3.new(1, 0.500000119, 1)
- p38 = Instance.new("Part", Cha)
- p38.BrickColor = BrickColor.new("Really black")
- p38.FormFactor = Enum.FormFactor.Custom
- p38.Size = Vector3.new(1.35000002, 0.200000003, 0.200000003)
- p38.CFrame = CFrame.new(-0.0500000231, 10.0749989, 7.85000134, -4.37113883e-008, 0, 1, -1.50995803e-007, 1, -6.60023616e-015, -1, -1.50995803e-007, -4.37113883e-008)
- p38.Anchored = false
- p38.CanCollide = false
- p38.BottomSurface = Enum.SurfaceType.Smooth
- p38.TopSurface = Enum.SurfaceType.Smooth
- b38 = Instance.new("SpecialMesh", p38)
- b38.MeshType = Enum.MeshType.Cylinder
- b38.Name = "Mesh"
- b38.Scale = Vector3.new(1, 0.5, 0.5)
- p39 = Instance.new("Part", Cha)
- p39.BrickColor = BrickColor.new("Really black")
- p39.FormFactor = Enum.FormFactor.Custom
- p39.Size = Vector3.new(0.75, 0.200000003, 0.200000003)
- p39.CFrame = CFrame.new(-0.0500000007, 10.0749989, 8.75000191, -4.37113883e-008, 0, 1, -1.50995803e-007, 1, -6.60023616e-015, -1, -1.50995803e-007, -4.37113883e-008)
- p39.Anchored = false
- p39.CanCollide = false
- p39.BottomSurface = Enum.SurfaceType.Smooth
- p39.TopSurface = Enum.SurfaceType.Smooth
- b39 = Instance.new("SpecialMesh", p39)
- b39.MeshType = Enum.MeshType.Cylinder
- b39.Name = "Mesh"
- b39.Scale = Vector3.new(1, 0.75, 0.75)
- p40 = Instance.new("Part", Cha)
- p40.BrickColor = BrickColor.new("Really black")
- p40.FormFactor = Enum.FormFactor.Custom
- p40.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- p40.CFrame = CFrame.new(-0.0500000007, 10.0749989, 8.5500021, -4.37113883e-008, 0, 1, -1.50995803e-007, 1, -6.60023616e-015, -1, -1.50995803e-007, -4.37113883e-008)
- p40.Anchored = false
- p40.CanCollide = false
- p40.BottomSurface = Enum.SurfaceType.Smooth
- p40.TopSurface = Enum.SurfaceType.Smooth
- b40 = Instance.new("SpecialMesh", p40)
- b40.MeshType = Enum.MeshType.Cylinder
- b40.Name = "Mesh"
- b40.Scale = Vector3.new(0.5, 0.875, 0.875)
- p41 = Instance.new("Part", Cha)
- p41.BrickColor = BrickColor.new("Really black")
- p41.FormFactor = Enum.FormFactor.Custom
- p41.Size = Vector3.new(0.899999976, 0.200000003, 0.200000003)
- p41.CFrame = CFrame.new(-0.0500000007, 10.2249994, 8.70000172, -4.37113883e-008, 0, 1, -1.50995803e-007, 1, -6.60023616e-015, -1, -1.50995803e-007, -4.37113883e-008)
- p41.Anchored = false
- p41.CanCollide = false
- p41.BottomSurface = Enum.SurfaceType.Smooth
- p41.TopSurface = Enum.SurfaceType.Smooth
- b41 = Instance.new("SpecialMesh", p41)
- b41.MeshType = Enum.MeshType.Cylinder
- b41.Name = "Mesh"
- b41.Scale = Vector3.new(1, 0.875, 0.875)
- p42 = Instance.new("Part", Cha)
- p42.BrickColor = BrickColor.new("Really black")
- p42.FormFactor = Enum.FormFactor.Custom
- p42.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- p42.CFrame = CFrame.new(-0.0500000007, 10.2249994, 8.5500021, -4.37113883e-008, 0, 1, -1.50995803e-007, 1, -6.60023616e-015, -1, -1.50995803e-007, -4.37113883e-008)
- p42.Anchored = false
- p42.CanCollide = false
- p42.BottomSurface = Enum.SurfaceType.Smooth
- p42.TopSurface = Enum.SurfaceType.Smooth
- b42 = Instance.new("SpecialMesh", p42)
- b42.MeshType = Enum.MeshType.Cylinder
- b42.Name = "Mesh"
- b42.Scale = Vector3.new(0.500000119, 1, 1)
- p43 = Instance.new("Part", Cha)
- p43.BrickColor = BrickColor.new("Really black")
- p43.FormFactor = Enum.FormFactor.Custom
- p43.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- p43.CFrame = CFrame.new(-0.0500000007, 10.2249994, 8.22500134, -4.37113883e-008, 0, 1, -1.50995803e-007, 1, -6.60023616e-015, -1, -1.50995803e-007, -4.37113883e-008)
- p43.Anchored = false
- p43.CanCollide = false
- p43.BottomSurface = Enum.SurfaceType.Smooth
- p43.TopSurface = Enum.SurfaceType.Smooth
- b43 = Instance.new("SpecialMesh", p43)
- b43.MeshType = Enum.MeshType.Cylinder
- b43.Name = "Mesh"
- b43.Scale = Vector3.new(0.749999881, 0.75, 0.75)
- w1 = Instance.new("Weld", p7)
- w1.Name = "BTWeld"
- w1.Part0 = p7
- w1.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w1.Part1 = p1
- w1.C1 = CFrame.new(-4.62499619, -0.574999809, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- w2 = Instance.new("Weld", p7)
- w2.Name = "BTWeld"
- w2.Part0 = p7
- w2.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w2.Part1 = p2
- w2.C1 = CFrame.new(8.56816769e-008, -0.574999809, -0.424996376, 1, -1.50995803e-007, -2.27997332e-014, 1.50995803e-007, 1, 1.50995803e-007, -0, -1.50995803e-007, 1)
- w3 = Instance.new("Weld", p7)
- w3.Name = "BTWeld"
- w3.Part0 = p7
- w3.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w3.Part1 = p3
- w3.C1 = CFrame.new(1.11758709e-007, -0.724999428, -1.02499771, 1, -1.50995803e-007, -2.27997332e-014, 1.50995803e-007, 1, 1.50995803e-007, -0, -1.50995803e-007, 1)
- w4 = Instance.new("Weld", p7)
- w4.Name = "BTWeld"
- w4.Part0 = p7
- w4.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w4.Part1 = p4
- w4.C1 = CFrame.new(6.70552254e-008, -0.449999809, -0.824995995, 1, -1.50995803e-007, -2.27997332e-014, 1.50995803e-007, 1, 1.50995803e-007, -0, -1.50995803e-007, 1)
- w5 = Instance.new("Weld", p7)
- w5.Name = "BTWeld"
- w5.Part0 = p7
- w5.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w5.Part1 = p5
- w5.C1 = CFrame.new(1.1920929e-007, -0.774998665, 0.874996185, -1, -1.50995803e-007, 0, -1.50995803e-007, 1, -6.60023616e-015, 0, -6.60023616e-015, -1)
- w6 = Instance.new("Weld", p7)
- w6.Name = "BTWeld"
- w6.Part0 = p7
- w6.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w6.Part1 = p6
- w6.C1 = CFrame.new(-5.24999762, -0.475000381, -2.04890966e-007, 4.37113883e-008, -1.50995803e-007, 1, 0, 1, 1.50995803e-007, -1, -6.60023616e-015, 4.37113883e-008)
- w7 = Instance.new("Weld", p7)
- w7.Name = "BTWeld"
- w7.Part0 = p7
- w7.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w7.Part1 = p8
- w7.C1 = CFrame.new(4.84287739e-008, -0.324999809, -0.774995804, 1, -1.50995803e-007, -2.27997332e-014, 1.50995803e-007, 1, 1.50995803e-007, -0, -1.50995803e-007, 1)
- w8 = Instance.new("Weld", p7)
- w8.Name = "BTWeld"
- w8.Part0 = p7
- w8.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w8.Part1 = p9
- w8.C1 = CFrame.new(-1.95000362, -0.349999428, 8.56816769e-008, 4.37113883e-008, -1.50995803e-007, -1, 0, 1, -1.50995803e-007, 1, 6.60023616e-015, 4.37113883e-008)
- w9 = Instance.new("Weld", p7)
- w9.Name = "BTWeld"
- w9.Part0 = p7
- w9.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w9.Part1 = p10
- w9.C1 = CFrame.new(1.49011612e-008, -0.115321159, -0.289399147, 1, -1.49526329e-007, -2.10145306e-008, 1.50995803e-007, 0.990268111, 0.139172941, -0, -0.139172941, 0.990268111)
- w10 = Instance.new("Weld", p7)
- w10.Name = "BTWeld"
- w10.Part0 = p7
- w10.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w10.Part1 = p11
- w10.C1 = CFrame.new(-1.49011612e-008, 0.0846796036, 0.21060276, 1, -1.49526329e-007, -2.10145306e-008, 1.50995803e-007, 0.990268111, 0.139172941, -0, -0.139172941, 0.990268111)
- w11 = Instance.new("Weld", p7)
- w11.Name = "BTWeld"
- w11.Part0 = p7
- w11.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w11.Part1 = p12
- w11.C1 = CFrame.new(1.49011612e-008, -0.0903201103, 0.310600281, 1, -1.49526329e-007, -2.10145306e-008, 1.50995803e-007, 0.990268111, 0.139172941, -0, -0.139172941, 0.990268111)
- w12 = Instance.new("Weld", p7)
- w12.Name = "BTWeld"
- w12.Part0 = p7
- w12.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w12.Part1 = p13
- w12.C1 = CFrame.new(-0.744495392, -0.224943161, -3.35276127e-008, 4.37113883e-008, -0.139172822, 0.990268111, 0, 0.990268111, 0.139172822, -1, -6.08343731e-009, 4.32859935e-008)
- w13 = Instance.new("Weld", p7)
- w13.Name = "BTWeld"
- w13.Part0 = p7
- w13.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w13.Part1 = p14
- w13.C1 = CFrame.new(1.27500534, -0.274999619, 5.58793545e-008, 4.37113883e-008, -1.50995803e-007, 1, 0, 1, 1.50995803e-007, -1, -6.60023616e-015, 4.37113883e-008)
- w14 = Instance.new("Weld", p7)
- w14.Name = "BTWeld"
- w14.Part0 = p7
- w14.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w14.Part1 = p15
- w14.C1 = CFrame.new(4.09781933e-008, -0.275000572, 1.7250042, 1, -1.50995803e-007, -2.27997332e-014, 1.50995803e-007, 1, 1.50995803e-007, -0, -1.50995803e-007, 1)
- w15 = Instance.new("Weld", p7)
- w15.Name = "BTWeld"
- w15.Part0 = p7
- w15.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w15.Part1 = p16
- w15.C1 = CFrame.new(-1.94999599, -1.02499962, -8.19563866e-008, 4.37113883e-008, -1.50995803e-007, 1, 0, 1, 1.50995803e-007, -1, -6.60023616e-015, 4.37113883e-008)
- w16 = Instance.new("Weld", p7)
- w16.Name = "BTWeld"
- w16.Part0 = p7
- w16.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w16.Part1 = p17
- w16.C1 = CFrame.new(-3.7252903e-009, 0.0249996185, 1.95000362, 1, -1.50995803e-007, -2.27997332e-014, 1.50995803e-007, 1, 1.50995803e-007, -0, -1.50995803e-007, 1)
- w17 = Instance.new("Weld", p7)
- w17.Name = "BTWeld"
- w17.Part0 = p7
- w17.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w17.Part1 = p18
- w17.C1 = CFrame.new(1.2293458e-007, -0.799999237, -1.29999733, 1, -1.50995803e-007, -2.27997332e-014, 1.50995803e-007, 1, 1.50995803e-007, -0, -1.50995803e-007, 1)
- w18 = Instance.new("Weld", p7)
- w18.Name = "BTWeld"
- w18.Part0 = p7
- w18.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w18.Part1 = p19
- w18.C1 = CFrame.new(0, -0.925000191, -1.49999523, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w19 = Instance.new("Weld", p7)
- w19.Name = "BTWeld"
- w19.Part0 = p7
- w19.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w19.Part1 = p20
- w19.C1 = CFrame.new(-1.12499905, -1.1920929e-007, -1.94999599, 1.07284414e-007, 1, -3.17865059e-008, -1, 1.07284414e-007, 1.80060697e-015, 5.21080397e-015, 3.17865059e-008, 1)
- w20 = Instance.new("Weld", p7)
- w20.Name = "BTWeld"
- w20.Part0 = p7
- w20.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w20.Part1 = p21
- w20.C1 = CFrame.new(2.16066837e-007, -1.02499962, -1.94999599, 1, -1.50995803e-007, -3.17865059e-008, 1.50995803e-007, 1, 1.80060697e-015, 3.17865059e-008, -6.60023616e-015, 1)
- w21 = Instance.new("Weld", p7)
- w21.Name = "BTWeld"
- w21.Part0 = p7
- w21.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w21.Part1 = p22
- w21.C1 = CFrame.new(-1.3038516e-007, -1.47499847, 1.02499962, 1, 0, 8.74227766e-008, -8.74227766e-008, 0, 1, 0, -1, 0)
- w22 = Instance.new("Weld", p7)
- w22.Name = "BTWeld"
- w22.Part0 = p7
- w22.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w22.Part1 = p23
- w22.C1 = CFrame.new(-4.991889e-007, 2.72499847, 1.02499962, -1, 0, 0, 0, 0, -1, 0, -1, 0)
- w23 = Instance.new("Weld", p7)
- w23.Name = "BTWeld"
- w23.Part0 = p7
- w23.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w23.Part1 = p24
- w23.C1 = CFrame.new(-2.54999638, -1.02499962, -1.08033419e-007, 4.37113883e-008, -1.50995803e-007, 1, 0, 1, 1.50995803e-007, -1, -6.60023616e-015, 4.37113883e-008)
- w24 = Instance.new("Weld", p7)
- w24.Name = "BTWeld"
- w24.Part0 = p7
- w24.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w24.Part1 = p25
- w24.C1 = CFrame.new(0, -0.774999619, -2.52499485, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w25 = Instance.new("Weld", p7)
- w25.Name = "BTWeld"
- w25.Part0 = p7
- w25.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w25.Part1 = p26
- w25.C1 = CFrame.new(-1.37835741e-007, 0.930481911, -1.67881012, 1, -1.40000864e-007, 5.65640406e-008, 1.50995803e-007, 0.927183807, -0.374606699, 0, 0.374606699, 0.927183807)
- w26 = Instance.new("Weld", p7)
- w26.Name = "BTWeld"
- w26.Part0 = p7
- w26.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w26.Part1 = p27
- w26.C1 = CFrame.new(-0.183252811, 0.132596016, -3.34999466, 0.866025388, 0.50000006, 7.54979084e-008, -0.50000006, 0.866025388, 1.30766196e-007, -0, -1.50995803e-007, 1)
- w27 = Instance.new("Weld", p7)
- w27.Name = "BTWeld"
- w27.Part0 = p7
- w27.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w27.Part1 = p28
- w27.C1 = CFrame.new(2.60770321e-008, -0.175000191, -3.29999638, 1, -1.50995803e-007, -2.27997332e-014, 1.50995803e-007, 1, 1.50995803e-007, -0, -1.50995803e-007, 1)
- w28 = Instance.new("Weld", p7)
- w28.Name = "BTWeld"
- w28.Part0 = p7
- w28.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w28.Part1 = p29
- w28.C1 = CFrame.new(6.70552254e-008, -0.449999809, -3.09999561, 1, -1.50995803e-007, -2.27997332e-014, 1.50995803e-007, 1, 1.50995803e-007, -0, -1.50995803e-007, 1)
- w29 = Instance.new("Weld", p7)
- w29.Name = "BTWeld"
- w29.Part0 = p7
- w29.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w29.Part1 = p30
- w29.C1 = CFrame.new(-0.183252335, 0.707596779, -3.34999561, 0.866025388, 0.50000006, 7.54979084e-008, -0.50000006, 0.866025388, 1.30766196e-007, -0, -1.50995803e-007, 1)
- w30 = Instance.new("Weld", p7)
- w30.Name = "BTWeld"
- w30.Part0 = p7
- w30.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w30.Part1 = p31
- w30.C1 = CFrame.new(-7.07805157e-008, 0.484679699, -0.439400673, 1, -1.49526329e-007, -2.10145306e-008, 1.50995803e-007, 0.990268111, 0.139172941, -0, -0.139172941, 0.990268111)
- w31 = Instance.new("Weld", p7)
- w31.Name = "BTWeld"
- w31.Part0 = p7
- w31.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w31.Part1 = p32
- w31.C1 = CFrame.new(-0.587500334, 0.74616909, -3.34999466, 1, -5.96046448e-008, -7.54979084e-008, 5.96046448e-008, 1, 1.30766196e-007, 7.54979013e-008, -1.30766196e-007, 1)
- w32 = Instance.new("Weld", p7)
- w32.Name = "BTWeld"
- w32.Part0 = p7
- w32.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w32.Part1 = p33
- w32.C1 = CFrame.new(-5.72499752, -0.474999428, -2.4959445e-007, 4.37113883e-008, -1.50995803e-007, 1, 0, 1, 1.50995803e-007, -1, -6.60023616e-015, 4.37113883e-008)
- w33 = Instance.new("Weld", p7)
- w33.Name = "BTWeld"
- w33.Part0 = p7
- w33.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w33.Part1 = p34
- w33.C1 = CFrame.new(0.183252811, 0.132595062, -3.34999466, 0.866025388, -0.50000006, -7.54979084e-008, 0.50000006, 0.866025388, 1.30766196e-007, -0, -1.50995803e-007, 1)
- w34 = Instance.new("Weld", p7)
- w34.Name = "BTWeld"
- w34.Part0 = p7
- w34.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w34.Part1 = p35
- w34.C1 = CFrame.new(0.183252335, 0.707595825, -3.34999561, 0.866025388, -0.50000006, -7.54979084e-008, 0.50000006, 0.866025388, 1.30766196e-007, -0, -1.50995803e-007, 1)
- w35 = Instance.new("Weld", p7)
- w35.Name = "BTWeld"
- w35.Part0 = p7
- w35.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w35.Part1 = p36
- w35.C1 = CFrame.new(-1.37835741e-007, 0.90967989, -0.389397621, 1, -1.49526329e-007, -2.10145306e-008, 1.50995803e-007, 0.990268111, 0.139172941, -0, -0.139172941, 0.990268111)
- w36 = Instance.new("Weld", p7)
- w36.Name = "BTWeld"
- w36.Part0 = p7
- w36.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w36.Part1 = p37
- w36.C1 = CFrame.new(0.612499714, 0.74616909, -3.34999466, 1, -5.96046448e-008, -7.54979084e-008, 5.96046448e-008, 1, 1.30766196e-007, 7.54979013e-008, -1.30766196e-007, 1)
- w37 = Instance.new("Weld", p7)
- w37.Name = "BTWeld"
- w37.Part0 = p7
- w37.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w37.Part1 = p38
- w37.C1 = CFrame.new(-4.97499704, -0.324999809, -1.93715096e-007, 4.37113883e-008, -1.50995803e-007, 1, 0, 1, 1.50995803e-007, -1, -6.60023616e-015, 4.37113883e-008)
- w38 = Instance.new("Weld", p7)
- w38.Name = "BTWeld"
- w38.Part0 = p7
- w38.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w38.Part1 = p39
- w38.C1 = CFrame.new(-4.07499599, -0.324999809, -1.75088644e-007, 4.37113883e-008, -1.50995803e-007, 1, 0, 1, 1.50995803e-007, -1, -6.60023616e-015, 4.37113883e-008)
- w39 = Instance.new("Weld", p7)
- w39.Name = "BTWeld"
- w39.Part0 = p7
- w39.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w39.Part1 = p40
- w39.C1 = CFrame.new(-4.2749958, -0.324999809, -1.86264515e-007, 4.37113883e-008, -1.50995803e-007, 1, 0, 1, 1.50995803e-007, -1, -6.60023616e-015, 4.37113883e-008)
- w40 = Instance.new("Weld", p7)
- w40.Name = "BTWeld"
- w40.Part0 = p7
- w40.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w40.Part1 = p41
- w40.C1 = CFrame.new(-4.12499619, -0.475000381, -1.78813934e-007, 4.37113883e-008, -1.50995803e-007, 1, 0, 1, 1.50995803e-007, -1, -6.60023616e-015, 4.37113883e-008)
- w41 = Instance.new("Weld", p7)
- w41.Name = "BTWeld"
- w41.Part0 = p7
- w41.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w41.Part1 = p42
- w41.C1 = CFrame.new(-4.2749958, -0.475000381, -1.86264515e-007, 4.37113883e-008, -1.50995803e-007, 1, 0, 1, 1.50995803e-007, -1, -6.60023616e-015, 4.37113883e-008)
- w42 = Instance.new("Weld", p7)
- w42.Name = "BTWeld"
- w42.Part0 = p7
- w42.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w42.Part1 = p43
- w42.C1 = CFrame.new(-4.59999657, -0.475000381, -1.97440386e-007, 4.37113883e-008, -1.50995803e-007, 1, 0, 1, 1.50995803e-007, -1, -6.60023616e-015, 4.37113883e-008)
- rlwww = Instance.new("Weld", Cha)
- rlwww.Part0 = Cha["Right Arm"]
- rlwww.C0 = CFrame.new(0,-.5,0)*CFrame.fromEulerAnglesXYZ(-1.55,2.7,0)
- rlwww.Part1 = p7
- mouse.KeyDown:connect(function(key)
- key:lower()
- if key == "z" and laydown == false and prop == false then
- laydown = true
- prop = true
- Cha.Humanoid.WalkSpeed = 10
- end
- end)
- mouse.KeyDown:connect(function(key)
- key:lower()
- if key == "x" and laydown == true and prop == true then
- laydown = false
- prop = false
- Cha.Humanoid.WalkSpeed = 16
- end
- end)
- s = Instance.new("Sound")
- s.SoundId = "http://www.roblox.com/asset?id=151112832"
- s.Parent = Cha
- s.Volume = 5
- s2 = Instance.new("Sound")
- s2.SoundId = "http://www.roblox.com/asset?id=200289883"
- s2.Parent = Cha
- s2.Volume = 5
- mouse.Button1Down:connect(function()
- if (not vDebounce) and shoot == false then
- shoot = true
- Bullet1=Instance.new('Part',Workspace)
- Bullet1.BrickColor=BrickColor.new("Medium stone grey")
- Bullet1.CanCollide = True
- Bullet1.TopSurface = "Smooth"
- Bullet1.BottomSurface = "Smooth"
- Bullet1.Transparency = 0.2
- Bullet1.Size = Vector3.new(.2,.2,3)
- Bullet1.CFrame = p33.CFrame *CFrame.new(0, -2, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
- game.Debris:AddItem(Bullet1, 10)
- Bullet1Mesh = Instance.new("SpecialMesh",Bullet1)
- Bullet1Mesh.MeshType = "Sphere"
- Bullet1Mesh.Scale = Vector3.new(.5,1,.5)
- Bullet1shoot = Instance.new('BodyVelocity',Bullet1)
- Bullet1shoot.maxForce = Vector3.new(math.huge, math.huge, math.huge)
- Bullet1shoot.velocity = Cha.Head.CFrame.lookVector*1000
- Bullet1:BreakJoints()
- Bullet1.Touched:connect(function(hit)
- Damagefunc(hit,1,80,math.random(1,3),"Normal",RootPart,.2,1)
- end)
- s:Play()
- Blast=Instance.new('Part',Workspace)
- Blast.BrickColor=BrickColor.new("Medium stone grey")
- Blast.CanCollide = True
- Blast.TopSurface = "Smooth"
- Blast.BottomSurface = "Smooth"
- Blast.Transparency = 0
- Blast.Anchored = false
- Blast.Size = Vector3.new(3,3,3)
- Blast.CFrame = p33.CFrame *CFrame.new(0, 0, 0)*CFrame.fromEulerAnglesXYZ(math.random(), math.random(), math.random())
- game.Debris:AddItem(Blast, 4)
- BlastMesh = Instance.new("SpecialMesh",Blast)
- BlastMesh.MeshType = "Brick"
- BlastMesh.Scale = Vector3.new(.1,.1,.1)
- Ammo=Instance.new('Part',Workspace)
- Ammo.BrickColor=BrickColor.new("Medium stone grey")
- Ammo.CanCollide = true
- Ammo.TopSurface = "Smooth"
- Ammo.BottomSurface = "Smooth"
- Ammo.Transparency = 0.3
- Ammo.Size = Vector3.new(.2,.2,.2)
- Ammo.CFrame = p21.CFrame *CFrame.new(0, -1, 0)
- game.Debris:AddItem(Ammo, 10)
- AmmoMesh = Instance.new("SpecialMesh",Ammo)
- AmmoMesh.MeshType = "Sphere"
- AmmoMesh.Scale = Vector3.new(.1,.4,.1)
- for i = 1,10 do
- BlastMesh.Scale = BlastMesh.Scale + Vector3.new(.1,.1,.1)
- Blast.Transparency = Blast.Transparency + 0.1
- swait(0.1)
- end
- s2:Play()
- wait(1)
- shoot = false
- end
- end)
- colours = {"Tr. Red","Black","Tr. Blue","Black","Phosph. White","Royal purple"}
- mouse.KeyDown:connect(function(k)
- if k == " " then
- if hitfloor==nil then
- Cha.Torso.Velocity = Vector3.new(0,100,0)
- ringExplode(Torso.CFrame*CFrame.Angles(math.pi/2,0,0),colours[4],5)
- end
- end
- end)
- mouse.KeyDown:connect(function(key)
- key:lower()
- if key == "e" and camo == false and prop == true then
- camo = true
- Camoflauge=Instance.new('Part',Cha)
- Camoflauge.BrickColor=game.Workspace.Base.BrickColor
- Camoflauge.CanCollide = true
- Camoflauge.TopSurface = "Smooth"
- Camoflauge.BottomSurface = "Smooth"
- Camoflauge.Material = "Grass"
- Camoflauge.Transparency = 0
- Camoflauge.Size = Vector3.new(1,1,1)
- CamoflaugeMesh = Instance.new("SpecialMesh",Camoflauge)
- CamoflaugeMesh.MeshType = "Brick"
- CamoflaugeMesh.Scale = Vector3.new(4,13,6)
- CaWeld = Instance.new("Weld",Cha)
- CaWeld.Part0 = Cha.Torso
- CaWeld.Part1 = Camoflauge
- CaWeld.C1 = CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(.35, 0, 0)
- end
- end)
- mouse.KeyDown:connect(function(key)
- key:lower()
- if key == "e" and camo == false and prop == false then
- camo = true
- ac = math.random(1,6)
- if ac == 1 then
- Camoflauge=Instance.new('Part',Cha)
- Camoflauge.BrickColor=game.Workspace.Base.BrickColor
- Camoflauge.CanCollide = true
- Camoflauge.TopSurface = "Smooth"
- Camoflauge.BottomSurface = "Smooth"
- Camoflauge.Material = "Grass"
- Camoflauge.Transparency = 0
- Camoflauge.Size = Vector3.new(1,1,1)
- CamoflaugeMesh = Instance.new("SpecialMesh",Camoflauge)
- CamoflaugeMesh.MeshType = "Brick"
- CamoflaugeMesh.Scale = Vector3.new(8,8,10)
- CaWeld = Instance.new("Weld",Cha)
- CaWeld.Part0 = Cha.Torso
- CaWeld.Part1 = Camoflauge
- CaWeld.C1 = CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
- end
- if ac == 2 then
- Camoflauge=Instance.new('Part',Cha)
- Camoflauge.BrickColor=game.Workspace.Base.BrickColor
- Camoflauge.CanCollide = true
- Camoflauge.TopSurface = "Smooth"
- Camoflauge.BottomSurface = "Smooth"
- Camoflauge.Transparency = 0
- Camoflauge.Size = Vector3.new(1,1,1)
- CamoflaugeMesh = Instance.new("SpecialMesh",Camoflauge)
- CamoflaugeMesh.MeshType = "FileMesh"
- CamoflaugeMesh.MeshId = "http://www.roblox.com/asset/?id=19106014"
- CamoflaugeMesh.TextureId = "http://www.roblox.com/asset/?id=142039906"
- CamoflaugeMesh.Scale = Vector3.new(10,10,10)
- CaWeld = Instance.new("Weld",Cha)
- CaWeld.Part0 = Cha.Torso
- CaWeld.Part1 = Camoflauge
- CaWeld.C1 = CFrame.new(0,-2,0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
- end
- if ac == 3 then
- Camoflauge=Instance.new('Part',Cha)
- Camoflauge.BrickColor=game.Workspace.Base.BrickColor
- Camoflauge.CanCollide = true
- Camoflauge.TopSurface = "Smooth"
- Camoflauge.BottomSurface = "Smooth"
- Camoflauge.Transparency = 0
- Camoflauge.Size = Vector3.new(1,1,1)
- CamoflaugeMesh = Instance.new("SpecialMesh",Camoflauge)
- CamoflaugeMesh.MeshType = "FileMesh"
- CamoflaugeMesh.MeshId = "http://www.roblox.com/asset/?id=92598630"
- CamoflaugeMesh.TextureId = "http://www.roblox.com/asset/?id=92599263"
- CamoflaugeMesh.Scale = Vector3.new(10,10,10)
- CaWeld = Instance.new("Weld",Cha)
- CaWeld.Part0 = Cha.Torso
- CaWeld.Part1 = Camoflauge
- CaWeld.C1 = CFrame.new(0,-2,0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
- end
- if ac == 4 then
- Camoflauge=Instance.new('Part',Cha)
- Camoflauge.BrickColor=game.Workspace.Base.BrickColor
- Camoflauge.CanCollide = true
- Camoflauge.TopSurface = "Smooth"
- Camoflauge.BottomSurface = "Smooth"
- Camoflauge.Transparency = 0
- Camoflauge.Size = Vector3.new(1,1,1)
- CamoflaugeMesh = Instance.new("SpecialMesh",Camoflauge)
- CamoflaugeMesh.MeshType = "FileMesh"
- CamoflaugeMesh.MeshId = "http://www.roblox.com/asset/?id=10470609"
- CamoflaugeMesh.TextureId = "http://www.roblox.com/asset/?id=29796694"
- CamoflaugeMesh.Scale = Vector3.new(10,10,10)
- CaWeld = Instance.new("Weld",Cha)
- CaWeld.Part0 = Cha.Torso
- CaWeld.Part1 = Camoflauge
- CaWeld.C1 = CFrame.new(0,-2,0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
- end
- if ac == 5 then
- Camoflauge=Instance.new('Part',Cha)
- Camoflauge.BrickColor=game.Workspace.Base.BrickColor
- Camoflauge.CanCollide = true
- Camoflauge.TopSurface = "Smooth"
- Camoflauge.BottomSurface = "Smooth"
- Camoflauge.Transparency = 0
- Camoflauge.Size = Vector3.new(1,1,1)
- CamoflaugeMesh = Instance.new("SpecialMesh",Camoflauge)
- CamoflaugeMesh.MeshType = "FileMesh"
- CamoflaugeMesh.MeshId = "http://www.roblox.com/asset?id=220616206"
- CamoflaugeMesh.TextureId = "http://www.roblox.com/asset?id=220616251"
- CamoflaugeMesh.Scale = Vector3.new(5,5,5)
- CaWeld = Instance.new("Weld",Cha)
- CaWeld.Part0 = Cha.Torso
- CaWeld.Part1 = Camoflauge
- CaWeld.C1 = CFrame.new(0,1,0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
- end
- if ac == 6 then
- Camoflauge = Instance.new("Model")
- p1 = Instance.new("Part", Camoflauge)
- p1.BrickColor = BrickColor.new("White")
- p1.FormFactor = Enum.FormFactor.Custom
- p1.Size = Vector3.new(0.399999708, 6.30000019, 1.4000001)
- p1.CFrame = CFrame.new(-21.8000011, 1.85000002, -9.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- p1.Anchored = false
- p1.BottomSurface = Enum.SurfaceType.Smooth
- p1.TopSurface = Enum.SurfaceType.Smooth
- p2 = Instance.new("Part", Camoflauge)
- p2.BrickColor = BrickColor.new("Institutional white")
- p2.FormFactor = Enum.FormFactor.Custom
- p2.Size = Vector3.new(5.79999971, 0.399999946, 1.4000001)
- p2.CFrame = CFrame.new(-24.5, 5.0999999, -9.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- p2.Anchored = false
- p2.BottomSurface = Enum.SurfaceType.Smooth
- p2.TopSurface = Enum.SurfaceType.Smooth
- p3 = Instance.new("Part", Camoflauge)
- p3.BrickColor = BrickColor.new("Brown")
- p3.FormFactor = Enum.FormFactor.Custom
- p3.Size = Vector3.new(5.5999999, 0.299999952, 5.5999999)
- p3.CFrame = CFrame.new(-24.5, 5.04999971, -9.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- p3.Anchored = false
- p3.BottomSurface = Enum.SurfaceType.Smooth
- p3.TopSurface = Enum.SurfaceType.Smooth
- p4 = Instance.new("Part", Camoflauge)
- p4.BrickColor = BrickColor.new("Brown")
- p4.FormFactor = Enum.FormFactor.Custom
- p4.Size = Vector3.new(1.20000005, 1.30000007, 0.299999714)
- p4.CFrame = CFrame.new(-26.7000027, 2.54999995, -12.1499996, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- p4.Anchored = false
- p4.BottomSurface = Enum.SurfaceType.Smooth
- p4.TopSurface = Enum.SurfaceType.Smooth
- p5 = Instance.new("Part", Camoflauge)
- p5.BrickColor = BrickColor.new("Brown")
- p5.FormFactor = Enum.FormFactor.Custom
- p5.Size = Vector3.new(1.20000005, 1.30000007, 0.299999714)
- p5.CFrame = CFrame.new(-22.3000011, 2.54999995, -12.1499996, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- p5.Anchored = false
- p5.BottomSurface = Enum.SurfaceType.Smooth
- p5.TopSurface = Enum.SurfaceType.Smooth
- p6 = Instance.new("Part", Camoflauge)
- p6.BrickColor = BrickColor.new("White")
- p6.FormFactor = Enum.FormFactor.Custom
- p6.Size = Vector3.new(0.399999708, 6.30000019, 1.4000001)
- p6.CFrame = CFrame.new(-27.2000027, 1.85000002, -9.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- p6.Anchored = false
- p6.BottomSurface = Enum.SurfaceType.Smooth
- p6.TopSurface = Enum.SurfaceType.Smooth
- p7 = Instance.new("Part", Camoflauge)
- p7.BrickColor = BrickColor.new("Medium stone grey")
- p7.Transparency = 1
- p7.Name = "Handle"
- p7.FormFactor = Enum.FormFactor.Custom
- p7.Size = Vector3.new(5, 5, 5)
- p7.CFrame = CFrame.new(-24.5, 2.5, -9.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- p7.Anchored = false
- p7.BottomSurface = Enum.SurfaceType.Smooth
- p7.TopSurface = Enum.SurfaceType.Smooth
- p8 = Instance.new("Part", Camoflauge)
- p8.BrickColor = BrickColor.new("Brown")
- p8.FormFactor = Enum.FormFactor.Custom
- p8.Size = Vector3.new(5.5999999, 1.79999995, 0.299999714)
- p8.CFrame = CFrame.new(-24.5, 4.0999999, -12.1499996, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- p8.Anchored = false
- p8.BottomSurface = Enum.SurfaceType.Smooth
- p8.TopSurface = Enum.SurfaceType.Smooth
- p9 = Instance.new("Part", Camoflauge)
- p9.BrickColor = BrickColor.new("Brown")
- p9.FormFactor = Enum.FormFactor.Custom
- p9.Size = Vector3.new(0.299999714, 6.30000019, 5)
- p9.CFrame = CFrame.new(-21.8500004, 1.85000002, -9.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- p9.Anchored = false
- p9.BottomSurface = Enum.SurfaceType.Smooth
- p9.TopSurface = Enum.SurfaceType.Smooth
- p10 = Instance.new("Part", Camoflauge)
- p10.BrickColor = BrickColor.new("Brown")
- p10.FormFactor = Enum.FormFactor.Custom
- p10.Size = Vector3.new(5.5999999, 3.20000005, 0.299999714)
- p10.CFrame = CFrame.new(-24.5, 0.300000072, -12.1499996, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- p10.Anchored = false
- p10.BottomSurface = Enum.SurfaceType.Smooth
- p10.TopSurface = Enum.SurfaceType.Smooth
- p11 = Instance.new("Part", Camoflauge)
- p11.BrickColor = BrickColor.new("Brown")
- p11.FormFactor = Enum.FormFactor.Custom
- p11.Size = Vector3.new(5.5999999, 6.30000019, 0.299999714)
- p11.CFrame = CFrame.new(-24.5, 1.85000002, -6.8499999, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- p11.Anchored = false
- p11.BottomSurface = Enum.SurfaceType.Smooth
- p11.TopSurface = Enum.SurfaceType.Smooth
- p12 = Instance.new("Part", Camoflauge)
- p12.BrickColor = BrickColor.new("Brown")
- p12.FormFactor = Enum.FormFactor.Custom
- p12.Size = Vector3.new(0.299999714, 6.30000019, 5)
- p12.CFrame = CFrame.new(-27.1500015, 1.85000002, -9.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- p12.Anchored = false
- p12.BottomSurface = Enum.SurfaceType.Smooth
- p12.TopSurface = Enum.SurfaceType.Smooth
- w1 = Instance.new("Weld", p7)
- w1.Name = "BTWeld"
- w1.Part0 = p7
- w1.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w1.Part1 = p1
- w1.C1 = CFrame.new(-2.69999886, 0.649999976, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w2 = Instance.new("Weld", p7)
- w2.Name = "BTWeld"
- w2.Part0 = p7
- w2.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w2.Part1 = p2
- w2.C1 = CFrame.new(0, -2.5999999, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w3 = Instance.new("Weld", p7)
- w3.Name = "BTWeld"
- w3.Part0 = p7
- w3.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w3.Part1 = p3
- w3.C1 = CFrame.new(0, -2.54999971, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w4 = Instance.new("Weld", p7)
- w4.Name = "BTWeld"
- w4.Part0 = p7
- w4.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w4.Part1 = p4
- w4.C1 = CFrame.new(2.20000267, -0.0499999523, 2.64999962, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w5 = Instance.new("Weld", p7)
- w5.Name = "BTWeld"
- w5.Part0 = p7
- w5.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w5.Part1 = p5
- w5.C1 = CFrame.new(-2.19999886, -0.0499999523, 2.64999962, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w6 = Instance.new("Weld", p7)
- w6.Name = "BTWeld"
- w6.Part0 = p7
- w6.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w6.Part1 = p6
- w6.C1 = CFrame.new(2.70000267, 0.649999976, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w7 = Instance.new("Weld", p7)
- w7.Name = "BTWeld"
- w7.Part0 = p7
- w7.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w7.Part1 = p8
- w7.C1 = CFrame.new(0, -1.5999999, 2.64999962, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w8 = Instance.new("Weld", p7)
- w8.Name = "BTWeld"
- w8.Part0 = p7
- w8.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w8.Part1 = p9
- w8.C1 = CFrame.new(-2.64999962, 0.649999976, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w9 = Instance.new("Weld", p7)
- w9.Name = "BTWeld"
- w9.Part0 = p7
- w9.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w9.Part1 = p10
- w9.C1 = CFrame.new(0, 2.19999981, 2.64999962, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w10 = Instance.new("Weld", p7)
- w10.Name = "BTWeld"
- w10.Part0 = p7
- w10.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w10.Part1 = p11
- w10.C1 = CFrame.new(0, 0.649999976, -2.6500001, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w11 = Instance.new("Weld", p7)
- w11.Name = "BTWeld"
- w11.Part0 = p7
- w11.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- w11.Part1 = p12
- w11.C1 = CFrame.new(2.65000153, 0.649999976, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- rlwwww = Instance.new("Weld", Cha)
- rlwwww.Part0 = Cha.Torso
- rlwwww.C0 = CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(0,0,0)
- rlwwww.Part1 = p7
- Camoflauge.Parent = Cha
- Camoflauge:MakeJoints()
- for i, v in pairs(Camoflauge:GetChildren()) do
- if v:IsA('Part') then
- v.CanCollide = False
- end
- end
- end
- end
- end)
- mouse.KeyDown:connect(function(key)
- key:lower()
- if key == "q" and camo == true then
- camo = false
- Camoflauge:Destroy()
- end
- end)
- mouse.KeyDown:connect(function(key)
- key:lower()
- if key == "c" then
- for i,v in pairs(game.Players:getPlayers()) do
- if v.Name~=Cha.Name then
- for j,k in pairs(v.Character:GetChildren()) do
- if k:IsA("BasePart") and k.Transparency <= 1 then
- D = Instance.new("FloorWire",Cha.Torso)
- D.From = Cha.Torso
- D.To = k
- D.Parent = Workspace.Camera
- D.Transparency = 0.4
- end
- end
- end
- end
- end
- end)
- mouse.KeyDown:connect(function(key)
- key:lower()
- if key:byte() == 48 and laydown == false then
- Humanoid.WalkSpeed=50
- end
- end)
- mouse.KeyUp:connect(function(key)
- key:lower()
- if key:byte() == 48 and laydown == false then
- Humanoid.WalkSpeed=16
- end
- end)
- mouse.KeyDown:connect(function(key)
- key:lower()
- if key:byte() == 48 and laydown == true then
- Humanoid.WalkSpeed=20
- end
- end)
- mouse.KeyUp:connect(function(key)
- key:lower()
- if key:byte() == 48 and laydown == true then
- Humanoid.WalkSpeed=10
- end
- end)
- local sine = 0
- local change = 1
- local val = 0
- coroutine.resume(coroutine.create(function()
- while true do
- swait()
- sine = sine + change
- local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
- local velderp=RootPart.Velocity.y
- hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
- if equipped==true or equipped==false then
- if attack==false then
- idle=idle+1
- else
- idle=0
- end
- if idle>=500 then
- if attack==false then
- --Sheath()
- end
- end
- if RootPart.Velocity.y > 1 and hitfloor==nil and laydown == false then
- Anim="Jump"
- if attack==false then
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(20),math.rad(-10),math.rad(30)),.3)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(20),math.rad(0),math.rad(-30)),.3)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
- end
- elseif RootPart.Velocity.y < -1 and hitfloor==nil and laydown == false then
- Anim="Fall"
- if attack==false then
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(-50),math.rad(-100),math.rad(30)),.3)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(-50),math.rad(100),math.rad(-30)),.3)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
- end
- elseif torvel<1 and hitfloor~=nil and laydown == false then
- Anim="Idle"
- if attack==false then
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(-20),math.rad(0)),.3)
- RW.C0=clerp(RW.C0,cf(1,0.5,0)*euler(math.rad(90),math.rad(0),math.rad(-30)),.3)
- LW.C0=clerp(LW.C0,cf(-1,0.5,0)*euler(math.rad(90),math.rad(0),math.rad(50)),.3)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
- RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
- end
- elseif torvel>2 and torvel<22 and hitfloor~=nil and laydown == false then
- Anim="Walk"
- if attack==false then
- change=3
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(-20),math.rad(-10),math.rad(30)),.3)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(-20),math.rad(10),math.rad(-30)),.3)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
- end
- elseif torvel>=22 and hitfloor~=nil and laydown == false then
- Anim="Run"
- if attack==false then
- change=5
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
- RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(-20),math.rad(-70),math.rad(30)),.3)
- LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(-20),math.rad(70),math.rad(-30)),.3)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
- end
- end
- end
- end
- end))
- coroutine.resume(coroutine.create(function()
- while true do
- swait()
- sine = sine + change
- local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
- local velderp=RootPart.Velocity.y
- hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
- if equipped==true or equipped==false then
- if attack==false then
- idle=idle+1
- else
- idle=0
- end
- if idle>=500 then
- if attack==false then
- --Sheath()
- end
- end
- if RootPart.Velocity.y > 1 and hitfloor==nil and laydown == true then
- Anim="Jump"
- if attack==false then
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-2.5)*angles(math.rad(70),math.rad(0),math.rad(0)),.3)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-70),math.rad(0),math.rad(0)),.3)
- RW.C0=clerp(RW.C0,cf(1,0.5,0)*euler(math.rad(160),math.rad(0),math.rad(-30)),.3)
- LW.C0=clerp(LW.C0,cf(-1,0.5,0)*euler(math.rad(160),math.rad(0),math.rad(50)),.3)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
- RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
- end
- elseif RootPart.Velocity.y < -1 and hitfloor==nil and laydown == true then
- Anim="Fall"
- if attack==false then
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-2.5)*angles(math.rad(70),math.rad(0),math.rad(0)),.3)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-70),math.rad(0),math.rad(0)),.3)
- RW.C0=clerp(RW.C0,cf(1,0.5,0)*euler(math.rad(160),math.rad(0),math.rad(-30)),.3)
- LW.C0=clerp(LW.C0,cf(-1,0.5,0)*euler(math.rad(160),math.rad(0),math.rad(50)),.3)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
- RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
- end
- elseif torvel<1 and hitfloor~=nil and laydown == true then
- Anim="Idle"
- if attack==false then
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-2.5)*angles(math.rad(70),math.rad(0),math.rad(0)),.3)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-70),math.rad(0),math.rad(0)),.3)
- RW.C0=clerp(RW.C0,cf(1,0.5,0)*euler(math.rad(160),math.rad(0),math.rad(-30)),.3)
- LW.C0=clerp(LW.C0,cf(-1,0.5,0)*euler(math.rad(160),math.rad(0),math.rad(50)),.3)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
- RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
- end
- elseif torvel>2 and torvel<22 and hitfloor~=nil and laydown == true then
- Anim="Walk"
- if attack==false then
- change=3
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-2.5)*angles(math.rad(70),math.rad(0),math.rad(0)),.3)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-70),math.rad(0),math.rad(0)),.3)
- RW.C0=clerp(RW.C0,cf(1,0.5,0)*euler(math.rad(160),math.rad(0),math.rad(-30)),.3)
- LW.C0=clerp(LW.C0,cf(-1,0.5,0)*euler(math.rad(160),math.rad(0),math.rad(50)),.3)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
- RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
- end
- elseif torvel>=22 and hitfloor~=nil and laydown == true then
- Anim="Run"
- if attack==false then
- change=5
- RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-2.5)*angles(math.rad(70),math.rad(0),math.rad(0)),.3)
- Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-70),math.rad(0),math.rad(0)),.3)
- RW.C0=clerp(RW.C0,cf(1,0.5,0)*euler(math.rad(160),math.rad(0),math.rad(-30)),.3)
- LW.C0=clerp(LW.C0,cf(-1,0.5,0)*euler(math.rad(160),math.rad(0),math.rad(50)),.3)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
- RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
- end
- end
- end
- end
- end))
- end)
- BStyle3.Name = "B Style 3"
- BStyle3.Parent = StyleMain
- BStyle3.BackgroundColor3 = Color3.new(1, 0, 1)
- BStyle3.Position = UDim2.new(0.104347825, 0, 0.502976179, 0)
- BStyle3.Size = UDim2.new(0, 130, 0, 44)
- BStyle3.Font = Enum.Font.SourceSans
- BStyle3.Text = "M249"
- BStyle3.TextColor3 = Color3.new(1, 0.333333, 0)
- BStyle3.TextSize = 18
- BStyle3.MouseButton:connect(function()
- if script == nil then return end
- Player = script:FindFirstChild("Player") ~= nil and script.Player.Value or game.Players.LocalPlayer
- Name = "M249"
- MC = BrickColor.new("Black")
- DC = BrickColor.new("Black")
- GC = BrickColor.new("Dark stone grey")
- MR = 0
- GR = 0
- Holstered = true
- Spread = 90000
- WSPenalty = 10
- selected = false
- canDual = false
- dual = false
- Button1Down = false
- damage = 999999999
- canFire = true
- canFire2 = false
- readyTime = 0.1
- automatic = true
- burst = false
- burstCount = 0
- burstCountMax = 3
- canSilence = true
- silenced = false
- canZoom = false
- zoom = false
- switchToSingle = true
- switchToBurst = false
- switchToAutomatic = true
- ammoGui = Instance.new("ScreenGui")
- ammoGui.Name = Name
- local frame = Instance.new("Frame")
- frame.Name = "Frame"
- frame.Size = UDim2.new(0, 165, 0, 60)
- frame.Position = UDim2.new(0, 0, 1, -400)
- frame.BackgroundColor3 = Color3.new(1, 1, 1)
- frame.BorderColor3 = Color3.new(0, 0, 0)
- frame.Parent = ammoGui
- local label = Instance.new("TextLabel")
- label.Name = "Weapon"
- label.Text = "Weapon: " ..Name
- label.Size = UDim2.new(1, 0, 0, 20)
- label.Position = UDim2.new(0, 0, 0, 0)
- label.BackgroundColor3 = Color3.new(1, 0, 0)
- label.BorderColor3 = Color3.new(0, 0, 0)
- label.Parent = frame
- local label = Instance.new("TextLabel")
- label.Name = "MagazinePrefix"
- label.Text = " Magazine:"
- label.TextXAlignment = "Left"
- label.Size = UDim2.new(1, 0, 0, 20)
- label.Position = UDim2.new(0, 0, 0, 20)
- label.BackgroundColor3 = Color3.new(1, 1, 1)
- label.BorderColor3 = Color3.new(0, 0, 0)
- label.Parent = frame
- local label = Instance.new("TextLabel")
- label.Name = "Magazine"
- label.Text = "0/0"
- label.TextXAlignment = "Right"
- label.Size = UDim2.new(1, 0, 0, 20)
- label.Position = UDim2.new(0, -10, 0, 20)
- label.BackgroundTransparency = 1
- label.BorderSizePixel = 0
- label.Parent = frame
- local label = Instance.new("TextLabel")
- label.Name = "AmmoPrefix"
- label.Text = " 5.56x45mm NATO:"
- label.TextXAlignment = "Left"
- label.Size = UDim2.new(1, 0, 0, 20)
- label.Position = UDim2.new(0, 0, 0, 40)
- label.BackgroundColor3 = Color3.new(1, 1, 1)
- label.BorderColor3 = Color3.new(0, 0, 0)
- label.Parent = frame
- local label = Instance.new("TextLabel")
- label.Name = "Ammo"
- label.Text = "0/0"
- label.TextXAlignment = "Right"
- label.Size = UDim2.new(1, 0, 0, 20)
- label.Position = UDim2.new(0, -10, 0, 40)
- label.BackgroundTransparency = 1
- label.BorderSizePixel = 0
- label.Parent = frame
- function updateGui()
- if selected == false then return end
- if Player:FindFirstChild("PlayerGui") == nil then Instance.new("PlayerGui").Parent = Player end
- if Player.PlayerGui:FindFirstChild(Name) == nil then
- ammoGui:Clone().Parent = Player.PlayerGui
- end
- Player.PlayerGui[Name].Frame.Magazine.Text = tostring(magazine.Value).. "/" ..tostring(magazineMax.Value)
- Player.PlayerGui[Name].Frame.Ammo.Text = tostring(ammo.Value).. "/" ..tostring(ammoMax.Value)
- end
- function makeParts(format)
- local model = Instance.new("Model")
- model.Name = Name
- local pm = Instance.new("Part")
- pm.Name = "Handle"
- pm.formFactor = "Symmetric"
- pm.Size = Vector3.new(1, 1, 1)
- pm.BrickColor = MC
- pm.Reflectance = MR
- pm.CanCollide = false
- pm.Locked = true
- pm.TopSurface = 0
- pm.BottomSurface = 0
- pm.Parent = model
- local m = Instance.new("BlockMesh")
- m.Scale = Vector3.new(0.35, 1.4, 0.41)
- m.Offset = Vector3.new(0, 0.01, 0.07)
- m.Parent = pm
- if format ~= nil then
- local w = Instance.new("Weld")
- w.Part0 = pm
- if format == "RightHand" then
- w.Part1 = Player.Character:FindFirstChild("Right Arm")
- w.C0 = CFrame.new(0, 1.15, 0.7)
- w.C1 = CFrame.new()
- elseif format == "RightHolster" then
- w.Part1 = Player.Character:FindFirstChild("Torso")
- w.C0 = CFrame.new(-0.65, 0, 0) * CFrame.fromEulerAnglesXYZ(math.rad(-40), math.rad(90), 0)
- w.C1 = CFrame.new()
- model.Name = Name.. " (Holstered)"
- end
- w.Parent = pm
- model.Parent = Player.Character
- end
- --[[
- sniper1 http://www.roblox.com/asset/?id=1868836
- equip http://www.roblox.com/asset/?id=13510737
- fire1 http://www.roblox.com/asset/?id=2760979
- fire2 http://www.roblox.com/asset/?id=13510352
- fire3 http://www.roblox.com/asset/?id=2692806
- fire4 http://www.roblox.com/asset/?id=2691586
- fire5 http://www.roblox.com/asset/?id=2920959
- fire6 http://www.roblox.com/asset/?id=2697431
- fire7 http://www.roblox.com/asset/?id=2920959
- reload1 http://www.roblox.com/asset/?id=2691591
- reload2 http://www.roblox.com/asset/?id=2697432
- reload3 http://www.roblox.com/asset/?id=2920960
- reload4 http://www.roblox.com/asset/?id=2761842
- shotgun1 http://www.roblox.com/asset/?id=2697294
- --]]
- local s = Instance.new("Sound")
- s.Name = "Fire"
- s.SoundId = "http://www.roblox.com/Asset/?id=10209798"
- s.Volume = 1
- s.Pitch = 1.8
- s.Looped = false
- s.Parent = pm
- local s = Instance.new("Sound")
- s.Name = "Fire2"
- s.SoundId = "http://www.roblox.com/Asset/?id=16211041"
- s.Volume = 1
- s.Pitch = 3
- s.Looped = false
- s.Parent = pm
- local s = Instance.new("Sound")
- s.Name = "Lock"
- s.SoundId = "http://www.roblox.com/Asset/?id=10209845"
- s.Volume = 1
- s.Pitch = 3
- s.Looped = false
- s.Parent = pm
- local s = Instance.new("Sound")
- s.Name = "Release"
- s.SoundId = "http://www.roblox.com/Asset/?id=10209813"
- s.Volume = 1
- s.Pitch = 4
- s.Looped = false
- s.Parent = pm
- local s = Instance.new("Sound")
- s.Name = "Reload"
- s.SoundId = "http://www.roblox.com/asset/?id=2761842"
- s.Volume = 1
- s.Pitch = 1.1
- s.Looped = false
- s.Parent = pm
- local s = Instance.new("Sound")
- s.Name = "Empty"
- s.SoundId = "http://www.roblox.com/asset/?id=2697295"
- s.Volume = 1
- s.Pitch = 5
- s.Looped = false
- s.Parent = pm
- local s = Instance.new("Sound")
- s.Name = "Switch"
- s.SoundId = "http://www.roblox.com/asset/?id=2697295"
- s.Volume = 1
- s.Pitch = 10
- s.Looped = false
- s.Parent = pm
- local s = Instance.new("Sound")
- s.Name = "Equip"
- s.SoundId = "http://www.roblox.com/Asset/?id=10209845"
- s.Volume = 1
- s.Pitch = 1.2
- s.Looped = false
- s.Parent = pm
- local p = Instance.new("Part")
- p.Name = "ShellOut"
- p.formFactor = "Symmetric"
- p.Size = Vector3.new(1, 1, 1)
- p.Transparency = 1
- p.Locked = true
- p.CanCollide = false
- p.TopSurface = 0
- p.BottomSurface = 0
- p.Parent = model
- local w = Instance.new("Weld")
- w.Part0 = p
- w.Part1 = pm
- w.C0 = CFrame.new(0, 0.46, 1) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0)
- w.C1 = CFrame.new()
- w.Parent = p
- local p = Instance.new("Part")
- p.Name = "Grip"
- p.formFactor = "Symmetric"
- p.Size = Vector3.new(1, 1, 1)
- p.BrickColor = MC
- p.Reflectance = MR
- p.CanCollide = false
- p.Locked = true
- p.TopSurface = 0
- p.BottomSurface = 0
- p.Parent = model
- local m = Instance.new("BlockMesh")
- m.Scale = Vector3.new(0.29, 0.38, 0.8)
- m.Parent = p
- local w = Instance.new("Weld")
- w.Part0 = p
- w.Part1 = pm
- w.C0 = CFrame.new(0, -0.15, -0.5) * CFrame.fromEulerAnglesXYZ(math.rad(15), 0, 0)
- w.C1 = CFrame.new()
- w.Parent = p
- local p = Instance.new("Part")
- p.Name = "Body"
- p.formFactor = "Symmetric"
- p.Size = Vector3.new(1, 1, 1)
- p.BrickColor = MC
- p.Reflectance = MR
- p.CanCollide = false
- p.Locked = true
- p.TopSurface = 0
- p.BottomSurface = 0
- p.Parent = model
- local m = Instance.new("BlockMesh")
- m.Scale = Vector3.new(0.35, 0.3, 0.44)
- m.Parent = p
- local w = Instance.new("Weld")
- w.Part0 = p
- w.Part1 = pm
- w.C0 = CFrame.new(0, -0.56, -0.06)
- w.C1 = CFrame.new()
- w.Parent = p
- local p = Instance.new("Part")
- p.Name = "Rearsight"
- p.formFactor = "Symmetric"
- p.Size = Vector3.new(1, 1, 1)
- p.BrickColor = MC
- p.Reflectance = MR
- p.CanCollide = false
- p.Locked = true
- p.TopSurface = 0
- p.BottomSurface = 0
- p.Parent = model
- local m = Instance.new("BlockMesh")
- m.Scale = Vector3.new(0.08, 0.2, 0.44)
- m.Offset = Vector3.new(0.12, 0, 0)
- m.Parent = p
- local w = Instance.new("Weld")
- w.Part0 = p
- w.Part1 = pm
- w.C0 = CFrame.new(0, -0.56, 0)
- w.C1 = CFrame.new()
- w.Parent = p
- local p = Instance.new("Part")
- p.Name = "Rearsight"
- p.formFactor = "Symmetric"
- p.Size = Vector3.new(1, 1, 1)
- p.BrickColor = MC
- p.Reflectance = MR
- p.CanCollide = false
- p.Locked = true
- p.TopSurface = 0
- p.BottomSurface = 0
- p.Parent = model
- local m = Instance.new("BlockMesh")
- m.Scale = Vector3.new(0.08, 0.2, 0.44)
- m.Offset = Vector3.new(-0.12, 0, 0)
- m.Parent = p
- local w = Instance.new("Weld")
- w.Part0 = p
- w.Part1 = pm
- w.C0 = CFrame.new(0, -0.56, 0)
- w.C1 = CFrame.new()
- w.Parent = p
- local p = Instance.new("Part")
- p.Name = "Frontsight"
- p.formFactor = "Symmetric"
- p.Size = Vector3.new(1, 1, 1)
- p.BrickColor = MC
- p.Reflectance = MR
- p.CanCollide = false
- p.Locked = true
- p.TopSurface = 0
- p.BottomSurface = 0
- p.Parent = model
- local m = Instance.new("BlockMesh")
- m.Scale = Vector3.new(0.08, 0.1, 0.3)
- m.Parent = p
- local w = Instance.new("Weld")
- w.Part0 = p
- w.Part1 = pm
- w.C0 = CFrame.new(0, 2, 0.07)
- w.C1 = CFrame.new()
- w.Parent = p
- local p = Instance.new("Part")
- p.Name = "Top2C"
- p.formFactor = "Symmetric"
- p.Size = Vector3.new(1, 1, 1)
- p.BrickColor = MC
- p.Reflectance = MR
- p.CanCollide = false
- p.Locked = true
- p.TopSurface = 0
- p.BottomSurface = 0
- p.Parent = model
- local m = Instance.new("BlockMesh")
- m.Scale = Vector3.new(0.42, 0.46, 0.12)
- m.Parent = p
- local w = Instance.new("Weld")
- w.Part0 = p
- w.Part1 = pm
- w.C0 = CFrame.new(0.035, 0.46, 0.1)
- w.C1 = CFrame.new()
- w.Parent = p
- local p = Instance.new("Part")
- p.Name = "Top2O"
- p.formFactor = "Symmetric"
- p.Size = Vector3.new(1, 1, 1)
- p.BrickColor = MC
- p.Reflectance = MR
- p.CanCollide = false
- p.Transparency = 1
- p.Locked = true
- p.TopSurface = 0
- p.BottomSurface = 0
- p.Parent = model
- local m = Instance.new("BlockMesh")
- m.Scale = Vector3.new(0.42, 0.46, 0.12)
- m.Parent = p
- local w = Instance.new("Weld")
- w.Part0 = p
- w.Part1 = pm
- w.C0 = CFrame.new(0.035, 0.4, 0.38) * CFrame.fromEulerAnglesXYZ(math.rad(20), 0, 0)
- w.C1 = CFrame.new()
- w.Parent = p
- local p = Instance.new("Part")
- p.Name = "TopC"
- p.formFactor = "Symmetric"
- p.Size = Vector3.new(1, 1, 1)
- p.BrickColor = MC
- p.Reflectance = MR
- p.CanCollide = false
- p.Locked = true
- p.TopSurface = 0
- p.BottomSurface = 0
- p.Parent = model
- local m = Instance.new("BlockMesh")
- m.Scale = Vector3.new(0.35, 1.1, 0.12)
- m.Parent = p
- local w = Instance.new("Weld")
- w.Part0 = p
- w.Part1 = pm
- w.C0 = CFrame.new(0, 0.14, 0.1)
- w.C1 = CFrame.new()
- w.Parent = p
- local p = Instance.new("Part")
- p.Name = "TopO"
- p.formFactor = "Symmetric"
- p.Size = Vector3.new(1, 1, 1)
- p.BrickColor = MC
- p.Reflectance = MR
- p.CanCollide = false
- p.Transparency = 1
- p.Locked = true
- p.TopSurface = 0
- p.BottomSurface = 0
- p.Parent = model
- local m = Instance.new("BlockMesh")
- m.Scale = Vector3.new(0.35, 1.1, 0.12)
- m.Parent = p
- local w = Instance.new("Weld")
- w.Part0 = p
- w.Part1 = pm
- w.C0 = CFrame.new(0, 0.05, 0.38) * CFrame.fromEulerAnglesXYZ(math.rad(20), 0, 0)
- w.C1 = CFrame.new()
- w.Parent = p
- local p = Instance.new("Part")
- p.Name = "Magazine"
- p.formFactor = "Symmetric"
- p.Size = Vector3.new(1, 1, 1)
- p.BrickColor = BrickColor.new("Sand green")
- p.Locked = true
- p.CanCollide = false
- p.TopSurface = 0
- p.BottomSurface = 0
- p.Parent = model
- local m = Instance.new("BlockMesh")
- m.Scale = Vector3.new(0.8, 0.43, 0.6)
- m.Parent = p
- local w = Instance.new("Weld")
- w.Part0 = p
- w.Part1 = pm
- w.C0 = CFrame.new(0, 0.46, -0.5)
- w.C1 = CFrame.new()
- w.Parent = p
- local p = Instance.new("Part")
- p.Name = "Magazine2"
- p.formFactor = "Symmetric"
- p.Size = Vector3.new(1, 1, 1)
- p.BrickColor = BrickColor.new("Bright yellow")
- p.Locked = true
- p.CanCollide = false
- p.Reflectance = 0.3
- if magazine.Value ~= 0 then
- p.Transparency = 0
- else
- p.Transparency = 1
- end
- p.TopSurface = 0
- p.BottomSurface = 0
- p.Parent = model
- local m = Instance.new("BlockMesh")
- m.Scale = Vector3.new(0.06, 0.36, 0.6)
- m.Parent = p
- local w = Instance.new("Weld")
- w.Part0 = p
- w.Part1 = pm
- w.C0 = CFrame.new(0.18, 0.46, -0.26) * CFrame.fromEulerAnglesXYZ(0, math.rad(20), 0)
- w.C1 = CFrame.new()
- w.Parent = p
- local p = Instance.new("Part")
- p.Name = "TriggerGuard"
- p.formFactor = "Symmetric"
- p.Size = Vector3.new(1, 1, 1)
- p.BrickColor = MC
- p.Reflectance = MR
- p.CanCollide = false
- p.Locked = true
- p.TopSurface = 0
- p.BottomSurface = 0
- p.Parent = model
- local m = Instance.new("SpecialMesh")
- m.MeshType = "FileMesh"
- m.MeshId = "http://www.roblox.com/asset/?id=3270017"
- m.Scale = Vector3.new(0.3, 0.3, 0.8)
- m.Parent = p
- local w = Instance.new("Weld")
- w.Part0 = p
- w.Part1 = pm
- w.C0 = CFrame.new(-0.25, 0, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0)
- w.C1 = CFrame.new()
- w.Parent = p
- local p = Instance.new("Part")
- p.Name = "Trigger"
- p.formFactor = "Symmetric"
- p.Size = Vector3.new(1, 1, 1)
- p.BrickColor = BrickColor.new("Dark stone grey")
- p.Reflectance = MR
- p.CanCollide = false
- p.Locked = true
- p.TopSurface = 0
- p.BottomSurface = 0
- p.Parent = model
- local m = Instance.new("BlockMesh")
- m.Scale = Vector3.new(0.1, 0.4, 0.16)
- m.Parent = p
- local w = Instance.new("Weld")
- w.Part0 = p
- w.Part1 = pm
- w.C0 = CFrame.new(0, -0.14, -0.3)
- w.C1 = CFrame.new()
- w.Parent = p
- local p = Instance.new("Part")
- p.Name = "ForeBarrel"
- p.CanCollide = false
- p.formFactor = "Symmetric"
- p.Size = Vector3.new(1, 1, 1)
- p.BrickColor = GC
- p.Reflectance = GR
- p.Locked = true
- p.TopSurface = 0
- p.BottomSurface = 0
- p.Parent = model
- local m = Instance.new("BlockMesh")
- m.Scale = Vector3.new(0.25, 1, 0.25)
- m.Parent = p
- local w = Instance.new("Weld")
- w.Part0 = p
- w.Part1 = pm
- w.C0 = CFrame.new(0, 1.18, -0.1)
- w.C1 = CFrame.new()
- w.Parent = p
- local p = Instance.new("Part")
- p.Name = "ForeBarrel"
- p.CanCollide = false
- p.formFactor = "Symmetric"
- p.Size = Vector3.new(1, 1, 1)
- p.BrickColor = GC
- p.Reflectance = GR
- p.Locked = true
- p.TopSurface = 0
- p.BottomSurface = 0
- p.Parent = model
- local m = Instance.new("BlockMesh")
- m.Scale = Vector3.new(0.25, 0.8, 0.3)
- m.Parent = p
- local w = Instance.new("Weld")
- w.Part0 = p
- w.Part1 = pm
- w.C0 = CFrame.new(0, 1.09, -0.25)
- w.C1 = CFrame.new()
- w.Parent = p
- local p = Instance.new("Part")
- p.Name = "Shroud"
- p.CanCollide = false
- p.formFactor = "Symmetric"
- p.Size = Vector3.new(1, 1, 1)
- p.BrickColor = MC
- p.Reflectance = MR
- p.Locked = true
- p.TopSurface = 0
- p.BottomSurface = 0
- p.Parent = model
- local m = Instance.new("CylinderMesh")
- m.Scale = Vector3.new(0.26, 0.999, 0.26)
- m.Parent = p
- local w = Instance.new("Weld")
- w.Part0 = p
- w.Part1 = pm
- w.C0 = CFrame.new(0, 1.18, 0)
- w.C1 = CFrame.new()
- w.Parent = p
- local p = Instance.new("Part")
- p.Name = "Rail" --------------
- p.CanCollide = false
- p.formFactor = "Symmetric"
- p.Size = Vector3.new(1, 1, 1)
- p.BrickColor = MC
- p.Reflectance = MR
- p.Locked = true
- p.TopSurface = 0
- p.BottomSurface = 0
- p.Parent = model
- local m = Instance.new("BlockMesh")
- m.Scale = Vector3.new(0.18, 1, 0.18)
- m.Parent = p
- local w = Instance.new("Weld")
- w.Part0 = p
- w.Part1 = pm
- w.C0 = CFrame.new(0, 1.17, -0.04)
- w.C1 = CFrame.new()
- w.Parent = p
- local p = Instance.new("Part")
- p.Name = "Barrel 1"
- p.formFactor = "Symmetric"
- p.Size = Vector3.new(1, 1, 1)
- p.BrickColor = DC
- p.Reflectance = MR
- p.CanCollide = false
- p.Locked = true
- p.TopSurface = 0
- p.BottomSurface = 0
- p.Parent = model
- local m = Instance.new("CylinderMesh")
- m.Scale = Vector3.new(0.15, 0.8, 0.15)
- m.Parent = p
- local w = Instance.new("Weld")
- w.Part0 = p
- w.Part1 = pm
- w.C0 = CFrame.new(0, 1.6, -0.04)
- w.C1 = CFrame.new()
- w.Parent = p
- local p = Instance.new("Part")
- p.Name = "Hole"
- p.formFactor = "Symmetric"
- p.Size = Vector3.new(1, 1, 1)
- p.BrickColor = BrickColor.new("Really black")
- p.CanCollide = false
- p.Locked = true
- p.TopSurface = 0
- p.BottomSurface = 0
- p.Parent = model
- local m = Instance.new("CylinderMesh")
- m.Scale = Vector3.new(0.14, 0.4, 0.14)
- m.Offset = Vector3.new(0, 0.2, 0)
- m.Parent = p
- local w = Instance.new("Weld")
- w.Part0 = p
- w.Part1 = pm
- w.C0 = CFrame.new(0, 2.405, -0.04)
- w.C1 = CFrame.new()
- w.Parent = p
- local p = Instance.new("Part")
- if silenced == false then
- p.Name = "Muzzle"
- else
- p.Name = "Muzzle 2"
- end
- p.formFactor = "Symmetric"
- p.Size = Vector3.new(1, 1, 1)
- p.BrickColor = DC
- p.Reflectance = MR
- p.CanCollide = false
- p.Locked = true
- p.TopSurface = 0
- p.BottomSurface = 0
- p.Parent = model
- local m = Instance.new("CylinderMesh")
- m.Scale = Vector3.new(0.18, 0.4, 0.18)
- m.Offset = Vector3.new(0, 0.2, 0)
- m.Parent = p
- local w = Instance.new("Weld")
- w.Part0 = p
- w.Part1 = pm
- w.C0 = CFrame.new(0, 2.4, -0.04)
- w.C1 = CFrame.new()
- w.Parent = p
- local s = Instance.new("Smoke")
- s.Enabled = false
- s.Name = "Smoke"
- s.RiseVelocity = -5
- s.Opacity = 0.3
- s.Color = Color3.new(75 / 225, 75 / 225, 75 / 225)
- s.Size = 1
- s.Parent = p
- local f = Instance.new("Fire")
- f.Enabled = false
- f.Name = "Fire"
- f.Heat = -35
- f.Size = 1
- f.Parent = p
- local p = Instance.new("Part")
- p.Name = "Silencer"
- p.formFactor = "Symmetric"
- p.Size = Vector3.new(1, 1, 1)
- p.BrickColor = BrickColor.new("Black")
- p.CanCollide = false
- if silenced == false then
- p.Name = "Silencer"
- p.Transparency = 1
- else
- p.Name = "Muzzle"
- p.Transparency = 0
- end
- p.Locked = true
- p.TopSurface = 0
- p.BottomSurface = 0
- p.Parent = model
- local m = Instance.new("CylinderMesh")
- m.Scale = Vector3.new(0.25, 0.8, 0.25)
- m.Parent = p
- local w = Instance.new("Weld")
- w.Part0 = p
- w.Part1 = pm
- w.C0 = CFrame.new(0, 2.5, -0.04)
- w.C1 = CFrame.new()
- w.Parent = p
- if Holstered == true then
- local p = Instance.new("Part")
- p.Name = "StockI"
- p.CanCollide = false
- p.formFactor = "Symmetric"
- p.Size = Vector3.new(1, 1, 1)
- p.BrickColor = MC
- p.Reflectance = MR
- p.Locked = true
- p.TopSurface = 0
- p.BottomSurface = 0
- p.Parent = model
- local m = Instance.new("CylinderMesh")
- m.Scale = Vector3.new(0.36, 0.2, 0.36)
- m.Parent = p
- local w = Instance.new("Weld")
- w.Part0 = p
- w.Part1 = pm
- w.C0 = CFrame.new(0, -0.7, -0.1)
- w.C1 = CFrame.new()
- w.Parent = p
- else
- local p = Instance.new("Part")
- p.Name = "StockO"
- p.CanCollide = false
- p.formFactor = "Symmetric"
- p.Size = Vector3.new(1, 1, 1)
- p.BrickColor = MC
- p.Reflectance = MR
- p.Locked = true
- p.TopSurface = 0
- p.BottomSurface = 0
- p.Parent = model
- local m = Instance.new("CylinderMesh")
- m.Scale = Vector3.new(0.36, 0.2, 0.36)
- m.Parent = p
- local w = Instance.new("Weld")
- w.Part0 = p
- w.Part1 = pm
- w.C0 = CFrame.new(0, -1.4, -0.1)
- w.C1 = CFrame.new()
- w.Parent = p
- local p = Instance.new("Part")
- p.Name = "StockArm"
- p.CanCollide = false
- p.formFactor = "Symmetric"
- p.Size = Vector3.new(1, 1, 1)
- p.BrickColor = MC
- p.Reflectance = MR
- p.Locked = true
- p.TopSurface = 0
- p.BottomSurface = 0
- p.Parent = model
- local m = Instance.new("BlockMesh")
- m.Scale = Vector3.new(0.1, 0.8, 0.1)
- m.Offset = Vector3.new(0, 0, 0.12)
- m.Parent = p
- local w = Instance.new("Weld")
- w.Part0 = p
- w.Part1 = pm
- w.C0 = CFrame.new(0, -0.9, -0.1)
- w.C1 = CFrame.new()
- w.Parent = p
- local p = Instance.new("Part")
- p.Name = "StockArm"
- p.CanCollide = false
- p.formFactor = "Symmetric"
- p.Size = Vector3.new(1, 1, 1)
- p.BrickColor = MC
- p.Reflectance = MR
- p.Locked = true
- p.TopSurface = 0
- p.BottomSurface = 0
- p.Parent = model
- local m = Instance.new("BlockMesh")
- m.Scale = Vector3.new(0.1, 0.8, 0.1)
- m.Offset = Vector3.new(0, 0, -0.12)
- m.Parent = p
- local w = Instance.new("Weld")
- w.Part0 = p
- w.Part1 = pm
- w.C0 = CFrame.new(0, -0.9, -0.1)
- w.C1 = CFrame.new()
- w.Parent = p
- end
- return model
- end
- function removeParts(format)
- if format == "RightHand" then
- pcall(function() Player.Character[Name]:Remove() end)
- elseif format == "LeftHand" then
- pcall(function() Player.Character[Name.. " (Left)"]:Remove() end)
- elseif format == "RightHolster" then
- pcall(function() Player.Character[Name.. " (Holstered)"]:Remove() end)
- elseif format == "LeftHolster" then
- pcall(function() Player.Character[Name.. " (Holstered, Left)"]:Remove() end)
- end
- end
- function SetAngle(Joint, Angle, Character)
- if Character == nil then return false end
- local Joints = {
- Character.Torso:FindFirstChild("Right Shoulder 2"),
- Character.Torso:FindFirstChild("Left Shoulder 2"),
- Character.Torso:FindFirstChild("Right Hip 2"),
- Character.Torso:FindFirstChild("Left Hip 2")
- }
- if Joints[Joint] == nil then return false end
- if Joint == 1 or Joint == 3 then
- Joints[Joint].DesiredAngle = Angle
- end
- if Joint == 2 or Joint == 4 then
- Joints[Joint].DesiredAngle = -Angle
- end
- end
- function ForceAngle(Joint, Angle, Character)
- if Character == nil then return false end
- local Joints = {
- Character.Torso:FindFirstChild("Right Shoulder 2"),
- Character.Torso:FindFirstChild("Left Shoulder 2"),
- Character.Torso:FindFirstChild("Right Hip 2"),
- Character.Torso:FindFirstChild("Left Hip 2")
- }
- if Joints[Joint] == nil then return false end
- if Joint == 1 or Joint == 3 then
- Joints[Joint].DesiredAngle = Angle
- Joints[Joint].CurrentAngle = Angle
- end
- if Joint == 2 or Joint == 4 then
- Joints[Joint].DesiredAngle = -Angle
- Joints[Joint].CurrentAngle = -Angle
- end
- end
- function SetSpeed(Joint, Speed, Character)
- if Character == nil then return false end
- local Joints = {
- Character.Torso:FindFirstChild("Right Shoulder 2"),
- Character.Torso:FindFirstChild("Left Shoulder 2"),
- Character.Torso:FindFirstChild("Right Hip 2"),
- Character.Torso:FindFirstChild("Left Hip 2")
- }
- if Joints[Joint] == nil then return false end
- Joints[Joint].MaxVelocity = Speed
- end
- function DisableLimb(Limb, Character)
- if Character == nil then return false end
- if Character:FindFirstChild("Torso") == nil then return false end
- local Joints = {
- Character.Torso:FindFirstChild("Right Shoulder"),
- Character.Torso:FindFirstChild("Left Shoulder"),
- Character.Torso:FindFirstChild("Right Hip"),
- Character.Torso:FindFirstChild("Left Hip")
- }
- local Limbs = {
- Character:FindFirstChild("Right Arm"),
- Character:FindFirstChild("Left Arm"),
- Character:FindFirstChild("Right Leg"),
- Character:FindFirstChild("Left Leg")
- }
- if Joints[Limb] == nil then return false end
- if Limbs[Limb] == nil then return false end
- local Joint = Instance.new("Motor")
- Joint.Parent = Character.Torso
- Joint.Part0 = Character.Torso
- Joint.Part1 = Limbs[Limb]
- if Limb == 1 then
- Joint.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0)
- Joint.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0)
- Joint.Name = "Right Shoulder 2"
- elseif Limb == 2 then
- Joint.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0)
- Joint.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0)
- Joint.Name = "Left Shoulder 2"
- elseif Limb == 3 then
- Joint.C0 = CFrame.new(0.5, -1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0)
- Joint.C1 = CFrame.new(0, 1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0)
- Joint.Name = "Right Hip 2"
- elseif Limb == 4 then
- Joint.C0 = CFrame.new(-0.5, -1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0)
- Joint.C1 = CFrame.new(0, 1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0)
- Joint.Name = "Left Hip 2"
- end
- Joint.MaxVelocity = Joints[Limb].MaxVelocity
- Joint.CurrentAngle = Joints[Limb].CurrentAngle
- Joint.DesiredAngle = Joints[Limb].DesiredAngle
- Joints[Limb]:Remove()
- end
- function ResetLimbCFrame(Limb, Character)
- if Character == nil then return false end
- if Character.Parent == nil then return false end
- if Character:FindFirstChild("Torso") == nil then return false end
- local Joints = {
- Character.Torso:FindFirstChild("Right Shoulder 2"),
- Character.Torso:FindFirstChild("Left Shoulder 2"),
- Character.Torso:FindFirstChild("Right Hip 2"),
- Character.Torso:FindFirstChild("Left Hip 2")
- }
- local Limbs = {
- Character:FindFirstChild("Right Arm"),
- Character:FindFirstChild("Left Arm"),
- Character:FindFirstChild("Right Leg"),
- Character:FindFirstChild("Left Leg")
- }
- if Joints[Limb] == nil then return false end
- if Limbs[Limb] == nil then return false end
- if Limb == 1 then
- Joints[Limb].C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0)
- Joints[Limb].C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0)
- elseif Limb == 2 then
- Joints[Limb].C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0)
- Joints[Limb].C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0)
- elseif Limb == 3 then
- Joints[Limb].C0 = CFrame.new(0.5, -1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0)
- Joints[Limb].C1 = CFrame.new(0, 1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0)
- elseif Limb == 4 then
- Joints[Limb].C0 = CFrame.new(-0.5, -1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0)
- Joints[Limb].C1 = CFrame.new(0, 1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0)
- end
- end
- function EnableLimb(Limb, Character)
- if Character == nil then return false end
- if Character:FindFirstChild("Torso") == nil then return false end
- local Joints = {
- Character.Torso:FindFirstChild("Right Shoulder 2"),
- Character.Torso:FindFirstChild("Left Shoulder 2"),
- Character.Torso:FindFirstChild("Right Hip 2"),
- Character.Torso:FindFirstChild("Left Hip 2")
- }
- local Limbs = {
- Character:FindFirstChild("Right Arm"),
- Character:FindFirstChild("Left Arm"),
- Character:FindFirstChild("Right Leg"),
- Character:FindFirstChild("Left Leg")
- }
- if Joints[Limb] == nil then return false end
- if Limbs[Limb] == nil then return false end
- if Limb == 1 then
- Joints[Limb].Name = "Right Shoulder"
- elseif Limb == 2 then
- Joints[Limb].Name = "Left Shoulder"
- elseif Limb == 3 then
- Joints[Limb].Name = "Right Hip"
- elseif Limb == 4 then
- Joints[Limb].Name = "Left Hip"
- end
- Animate = Character:FindFirstChild("Animate")
- if Animate == nil then return false end
- Animate = Animate:Clone()
- Character.Animate:Remove()
- Animate.Parent = Character
- end
- function playAnimation(format, mouse)
- if format == "equip" then
- Player.Character.Humanoid.WalkSpeed = WSPenalty
- coroutine.resume(coroutine.create(function()
- for i = 0, 1, 0.025 do
- if Player.Character:FindFirstChild("Torso") ~= nil then
- if Player.Character.Torso:FindFirstChild("Left Shoulder 2") ~= nil and Player.Character.Torso:FindFirstChild("Right Shoulder 2") ~= nil then
- Player.Character.Torso["Left Shoulder 2"].C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(math.rad(90) * i, 0, math.rad(67.5) * i)
- Player.Character.Torso["Left Shoulder 2"].C1 = CFrame.new(0, 0.5 * (1 - i), 0) * CFrame.new(0, 1.85 * i, 0)
- else return false end
- else return false end
- wait()
- end
- end))
- for i = 0, 1, 0.05 do
- if Player.Character:FindFirstChild("Torso") ~= nil then
- if Player.Character.Torso:FindFirstChild("Left Shoulder 2") ~= nil and Player.Character.Torso:FindFirstChild("Right Shoulder 2") ~= nil then
- Player.Character.Torso["Right Shoulder 2"].C0 = CFrame.new(1.5, 0.5, -0.25 * i) * CFrame.fromEulerAnglesXYZ(math.rad(-90) * i, 0, math.rad(-20) * i)
- Player.Character.Torso["Right Shoulder 2"].C1 = CFrame.new(0, 0.5, 0)
- else return false end
- else return false end
- wait()
- end
- removeParts("RightHolster")
- makeParts("RightHand")
- for i = 0, 1, 0.05 do
- if Player.Character:FindFirstChild("Torso") ~= nil then
- if Player.Character.Torso:FindFirstChild("Left Shoulder 2") ~= nil and Player.Character.Torso:FindFirstChild("Right Shoulder 2") ~= nil then
- Player.Character.Torso["Right Shoulder 2"].C0 = CFrame.new(1.5 * (1 - i), 0.5 * (1 - i), -0.25 * (1 - i)) * CFrame.fromEulerAnglesXYZ(math.rad(-90) * (1 - i), 0, math.rad(-20) * (1 - i)) * CFrame.new(1.25 * i, 0.5 * i, 0) * CFrame.fromEulerAnglesXYZ(math.rad(90) * i, 0, 0)
- Player.Character.Torso["Right Shoulder 2"].C1 = CFrame.new(0, 0.5 * (1 - i), 0) * CFrame.new(0, 0.75 * i, 0.1 * i)
- else return false end
- else return false end
- if Player.Character:FindFirstChild(Name) ~= nil then
- if Player.Character[Name]:FindFirstChild("Handle") ~= nil then
- Player.Character[Name].Handle.Weld.C0 = CFrame.new(0, 1.5, 0.75)
- Player.Character[Name].Handle.Weld.C1 = CFrame.fromEulerAnglesXYZ(math.rad(-90) * (1 - i), 0, 0)
- else return false end
- else return false end
- wait()
- end
- makeParts("RightHolster")
- removeParts("RightHand")
- return playAnimation("hold")
- end
- if format == "unequip" then
- Player.Character.Humanoid.WalkSpeed = 16
- coroutine.resume(coroutine.create(function()
- for i = 1, 0, -0.025 do
- if Player.Character:FindFirstChild("Torso") ~= nil then
- if Player.Character.Torso:FindFirstChild("Left Shoulder 2") ~= nil and Player.Character.Torso:FindFirstChild("Right Shoulder 2") ~= nil then
- Player.Character.Torso["Left Shoulder 2"].C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(math.rad(90) * i, 0, math.rad(67.5) * i)
- Player.Character.Torso["Left Shoulder 2"].C1 = CFrame.new(0, 0.5 * (1 - i), 0) * CFrame.new(0, 1.85 * i, 0)
- else return false end
- else return false end
- wait()
- end
- end))
- for i = 1, 0, -0.05 do
- if Player.Character:FindFirstChild("Torso") ~= nil then
- if Player.Character.Torso:FindFirstChild("Left Shoulder 2") ~= nil and Player.Character.Torso:FindFirstChild("Right Shoulder 2") ~= nil then
- Player.Character.Torso["Right Shoulder 2"].C0 = CFrame.new(1.5 * (1 - i), 0.5 * (1 - i), -0.25 * (1 - i)) * CFrame.fromEulerAnglesXYZ(math.rad(-90) * (1 - i), 0, math.rad(-20) * (1 - i)) * CFrame.new(1.25 * i, 0.5 * i, 0) * CFrame.fromEulerAnglesXYZ(math.rad(90) * i, 0, 0)
- Player.Character.Torso["Right Shoulder 2"].C1 = CFrame.new(0, 0.5 * (1 - i), 0) * CFrame.new(0, 0.75 * i, 0.1 * i)
- else return false end
- else return false end
- if Player.Character:FindFirstChild(Name) ~= nil then
- if Player.Character[Name]:FindFirstChild("Handle") ~= nil then
- Player.Character[Name].Handle.Weld.C0 = CFrame.new(0, 1.5, 0.75)
- Player.Character[Name].Handle.Weld.C1 = CFrame.fromEulerAnglesXYZ(math.rad(-90) * (1 - i), 0, 0)
- else return false end
- else return false end
- wait()
- end
- makeParts("RightHolster")
- removeParts("RightHand")
- for i = 1, 0, -0.05 do
- if Player.Character:FindFirstChild("Torso") ~= nil then
- if Player.Character.Torso:FindFirstChild("Left Shoulder 2") ~= nil and Player.Character.Torso:FindFirstChild("Right Shoulder 2") ~= nil then
- Player.Character.Torso["Right Shoulder 2"].C0 = CFrame.new(1.5, 0.5, -0.25 * i) * CFrame.fromEulerAnglesXYZ(math.rad(-90) * i, 0, math.rad(-20) * i)
- Player.Character.Torso["Right Shoulder 2"].C1 = CFrame.new(0, 0.5, 0)
- else return false end
- else return false end
- wait()
- end
- removeParts("RightHolster")
- makeParts("RightHand")
- return true
- end
- if format == "hold" then
- if Player.Character:FindFirstChild("Torso") ~= nil then
- if Player.Character.Torso:FindFirstChild("Left Shoulder 2") ~= nil and Player.Character.Torso:FindFirstChild("Right Shoulder 2") ~= nil then
- Player.Character.Torso["Left Shoulder 2"].C0 = CFrame.new()
- Player.Character.Torso["Left Shoulder 2"].C1 = CFrame.new(-0.3, 1.2, 0.8) * CFrame.fromEulerAnglesXYZ(math.rad(300), math.rad(10), math.rad(-90))
- Player.Character.Torso["Right Shoulder 2"].C0 = CFrame.new()
- Player.Character.Torso["Right Shoulder 2"].C1 = CFrame.new(-0.9, -0.35, 0.51) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(-5), 0)
- else return false end
- else return false end
- end
- if format == "reload" then
- Player.Character[Name].Handle.Weld:Remove()
- local w = Instance.new("Weld")
- w.Part0 = Player.Character[Name].Handle
- w.Part1 = Player.Character:FindFirstChild("Left Arm")
- w.C0 = CFrame.new(-0.85, -0.5, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(-5), math.rad(90), 0)
- w.C1 = CFrame.new() * CFrame.fromEulerAnglesXYZ(math.rad(50), 0, 0)
- w.Parent = Player.Character[Name].Handle
- if Player.Character:FindFirstChild("Torso") ~= nil then
- if Player.Character.Torso:FindFirstChild("Left Shoulder 2") ~= nil and Player.Character.Torso:FindFirstChild("Right Shoulder 2") ~= nil then
- Player.Character.Torso["Left Shoulder 2"].C0 = CFrame.new()
- Player.Character.Torso["Left Shoulder 2"].C1 = CFrame.new(-0.55, 1.2, 0.8) * CFrame.fromEulerAnglesXYZ(math.rad(300), math.rad(10), math.rad(-90))
- else return false end
- else return false end
- wait(0.3)
- for i = 0, 1, 0.1 do
- if Player.Character:FindFirstChild("Torso") ~= nil then
- if Player.Character.Torso:FindFirstChild("Right Shoulder 2") ~= nil then
- Player.Character.Torso["Right Shoulder 2"].C0 = CFrame.new()
- Player.Character.Torso["Right Shoulder 2"].C1 = CFrame.new(-0.9 + (i / 10), -0.35 + (i * 1.5), 0.51 + (i / 8)) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(-5), 0)
- wait()
- else return false end
- else return false end
- end
- for i = 0, 1, 0.25 do
- if Player.Character:FindFirstChild("Torso") ~= nil then
- if Player.Character.Torso:FindFirstChild("Right Shoulder 2") ~= nil then
- Player.Character.Torso["Right Shoulder 2"].C0 = CFrame.new()
- Player.Character.Torso["Right Shoulder 2"].C1 = CFrame.new(-0.8, 1.15 - (i / 5), 0.635) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(-5), 0)
- wait()
- else return false end
- else return false end
- end
- Player.Character[Name].Handle.Equip:Play()
- if magazine.Value ~= 0 then
- makeShell(Player.Character[Name]:FindFirstChild("ShellOut"))
- else end
- for i = 1, 0, -0.25 do
- if Player.Character:FindFirstChild("Torso") ~= nil then
- if Player.Character.Torso:FindFirstChild("Right Shoulder 2") ~= nil then
- Player.Character.Torso["Right Shoulder 2"].C0 = CFrame.new()
- Player.Character.Torso["Right Shoulder 2"].C1 = CFrame.new(-0.8, 1.15 - (i / 5), 0.635) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(-5), 0)
- wait()
- else return false end
- else return false end
- end
- for i = 1, 0, -0.1 do
- if Player.Character:FindFirstChild("Torso") ~= nil then
- if Player.Character.Torso:FindFirstChild("Right Shoulder 2") ~= nil then
- Player.Character.Torso["Right Shoulder 2"].C0 = CFrame.new()
- Player.Character.Torso["Right Shoulder 2"].C1 = CFrame.new(-0.9 + (i / 10), -0.35 + (i * 1.5), 0.51 + (i / 8)) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(-5), 0)
- wait()
- else return false end
- else return false end
- end
- removeParts("RightHand")
- makeParts("RightHand")
- wait(0.4)
- Player.Character[Name].Handle.Lock:Play()
- for i = 5, 0, -1 do
- if Player.Character:FindFirstChild("Torso") ~= nil then
- if Player.Character.Torso:FindFirstChild("Left Shoulder 2") ~= nil and Player.Character.Torso:FindFirstChild("Right Shoulder 2") ~= nil then
- Player.Character.Torso["Left Shoulder 2"].C0 = CFrame.new()
- Player.Character.Torso["Left Shoulder 2"].C1 = CFrame.new(-0.55, 0.75, 0.35) * CFrame.fromEulerAnglesXYZ(math.rad(315 + (i * 1.5)), math.rad(i * 4), math.rad(-90))
- wait()
- else return false end
- else return false end
- end
- Player.Character[Name].TopC.Transparency = 1
- Player.Character[Name].TopO.Transparency = 0
- Player.Character[Name].Top2C.Transparency = 1
- Player.Character[Name].Top2O.Transparency = 0
- wait(0.4)
- Player.Character[Name].Handle.Reload:Play()
- Player.Character[Name].Handle.Release:Play()
- Player.Character[Name].Magazine.Transparency = 1
- Player.Character[Name].Magazine2.Transparency = 1
- magazineDrop = Player.Character[Name].Magazine:Clone()
- magazineDrop.Transparency = 0
- magazineDrop.CanCollide = true
- magazineDrop.Parent = game.Workspace
- coroutine.resume(coroutine.create(function(part) wait(4.5) for i = 0, 1, 0.1 do part.Transparency = i wait() end part:Remove() end), magazineDrop)
- delay(0.1, function() magazineDrop.CanCollide = true end)
- for i = 0, 25, 5 do
- if Player.Character:FindFirstChild("Torso") ~= nil then
- if Player.Character.Torso:FindFirstChild("Left Shoulder 2") ~= nil and Player.Character.Torso:FindFirstChild("Right Shoulder 2") ~= nil then
- Player.Character.Torso["Left Shoulder 2"].C0 = CFrame.new()
- Player.Character.Torso["Left Shoulder 2"].C1 = CFrame.new(-0.5 + (i / 60), 1.2 - (i / 20), 0.8 + (i / 35)) * CFrame.fromEulerAnglesXYZ(math.rad(300 - i), math.rad(10 + -i * 3.5), math.rad(-90))
- wait()
- else return false end
- else return false end
- end
- magazineNew = Player.Character[Name].Magazine:Clone()
- magazineNew.Name = "New Magazine"
- magazineNew.Transparency = 0
- magazineNew.Parent = Player.Character[Name]
- local w = Instance.new("Weld")
- w.Part0 = magazineNew
- w.Part1 = Player.Character:FindFirstChild("Left Arm")
- w.C0 = CFrame.new(0, 1.1, 0)
- w.C1 = CFrame.new() * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0)
- w.Parent = magazineNew
- wait(0.2)
- for i = 25, 0, -5 do
- if Player.Character:FindFirstChild("Torso") ~= nil then
- if Player.Character.Torso:FindFirstChild("Left Shoulder 2") ~= nil and Player.Character.Torso:FindFirstChild("Right Shoulder 2") ~= nil then
- Player.Character.Torso["Left Shoulder 2"].C0 = CFrame.new()
- Player.Character.Torso["Left Shoulder 2"].C1 = CFrame.new(-0.3 + ((i + 10) / 60), 1.2 - ((i + 10) / 20), 0.8 + (i / 35)) * CFrame.fromEulerAnglesXYZ(math.rad(300 - (i - 10)), math.rad(10 + -i * 3.5), math.rad(-90))
- Player.Character.Torso["Right Shoulder 2"].C0 = CFrame.new()
- Player.Character.Torso["Right Shoulder 2"].C1 = CFrame.new(-0.9 + ((25 - i) / 30), -0.35, 0.51 + ((25 - i) / 25)) * CFrame.fromEulerAnglesXYZ(math.rad(-90 + i), math.rad(-5), math.rad((25 * 2) - (i * 2)))
- wait()
- else return false end
- else return false end
- end
- Player.Character[Name].Magazine.Transparency = 0
- Player.Character[Name]["New Magazine"]:Remove()
- wait(0.1)
- if Player.Character:FindFirstChild("Torso") ~= nil then
- if Player.Character.Torso:FindFirstChild("Left Shoulder 2") ~= nil and Player.Character.Torso:FindFirstChild("Right Shoulder 2") ~= nil then
- Player.Character.Torso["Left Shoulder 2"].C0 = CFrame.new()
- Player.Character.Torso["Left Shoulder 2"].C1 = CFrame.new(-0.3, 1.2, 0.8) * CFrame.fromEulerAnglesXYZ(math.rad(300), math.rad(10), math.rad(-90))
- Player.Character.Torso["Right Shoulder 2"].C0 = CFrame.new()
- Player.Character.Torso["Right Shoulder 2"].C1 = CFrame.new(-0.9, -0.35, 0.51) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(-5), 0)
- else return false end
- else return false end
- Player.Character[Name].Handle.Reload:Stop()
- wait(0.4)
- Player.Character[Name].Handle.Empty:Play()
- for i = 5, 0, -1 do
- if Player.Character:FindFirstChild("Torso") ~= nil then
- if Player.Character.Torso:FindFirstChild("Left Shoulder 2") ~= nil and Player.Character.Torso:FindFirstChild("Right Shoulder 2") ~= nil then
- Player.Character.Torso["Left Shoulder 2"].C0 = CFrame.new()
- Player.Character.Torso["Left Shoulder 2"].C1 = CFrame.new(-0.55, 0.75, 0.6) * CFrame.fromEulerAnglesXYZ(math.rad(315 + (i * 1.5)), math.rad(i * 4), math.rad(-90))
- wait()
- else return false end
- else return false end
- end
- Player.Character[Name].Magazine2.Transparency = 0
- wait(0.4)
- Player.Character[Name].Handle.Lock:Play()
- for i = 5, 0, -1 do
- if Player.Character:FindFirstChild("Torso") ~= nil then
- if Player.Character.Torso:FindFirstChild("Left Shoulder 2") ~= nil and Player.Character.Torso:FindFirstChild("Right Shoulder 2") ~= nil then
- Player.Character.Torso["Left Shoulder 2"].C0 = CFrame.new()
- Player.Character.Torso["Left Shoulder 2"].C1 = CFrame.new(-0.55, 0.75, 0.6) * CFrame.fromEulerAnglesXYZ(math.rad(315 + (i * 1.5)), math.rad(i * 4), math.rad(-90))
- wait()
- else return false end
- else return false end
- end
- Player.Character[Name].TopC.Transparency = 0
- Player.Character[Name].TopO.Transparency = 1
- Player.Character[Name].Top2C.Transparency = 0
- Player.Character[Name].Top2O.Transparency = 1
- playAnimation("hold")
- return true
- end
- if format == "fire" then
- makeShell(Player.Character[Name]:FindFirstChild("ShellOut"))
- if magazine.Value == 0 then
- Player.Character[Name].Magazine2.Transparency = 1
- else end
- if Player.Character[Name]:FindFirstChild("Handle") ~= nil then
- if silenced then
- Player.Character[Name].Handle.Fire2.Volume = math.random(3, 8) / 10
- Player.Character[Name].Handle.Fire2.Pitch = math.random(2.4, 3)
- Player.Character[Name].Handle.Fire2:Play()
- CamShake(10, 90000)
- else
- Player.Character[Name].Handle.Fire.Volume = math.random(9, 10) / 10
- Player.Character[Name].Handle.Fire.Pitch = math.random(1.6, 1.8)
- Player.Character[Name].Handle.Fire:Play()
- CamShake(10, 80000)
- end
- else return false end
- if Player.Character[Name]:FindFirstChild("Muzzle") ~= nil then
- if silenced == false then
- coroutine.resume(coroutine.create(function() Player.Character[Name].Muzzle.Smoke.Enabled = true Player.Character[Name].Muzzle.Fire.Enabled = true wait(0.1) Player.Character[Name].Muzzle.Smoke.Enabled = false Player.Character[Name].Muzzle.Fire.Enabled = false end))
- else end
- else return false end
- for i = 0, 10, 5 do
- if Player.Character:FindFirstChild("Torso") ~= nil then
- if Player.Character.Torso:FindFirstChild("Left Shoulder 2") ~= nil and Player.Character.Torso:FindFirstChild("Right Shoulder 2") ~= nil then
- Player.Character.Torso["Left Shoulder 2"].C0 = CFrame.new()
- Player.Character.Torso["Left Shoulder 2"].C1 = CFrame.new(-0.3, 1.2, 0.8) * CFrame.fromEulerAnglesXYZ(math.rad(300), math.rad(10 + i), math.rad(-90))
- Player.Character.Torso["Right Shoulder 2"].C0 = CFrame.new()
- Player.Character.Torso["Right Shoulder 2"].C1 = CFrame.new(-0.9, -0.35, 0.51) * CFrame.fromEulerAnglesXYZ(math.rad(-90 - i), math.rad(-5), 0)
- wait()
- else return false end
- else return false end
- end
- for i = 10, 0, -5 do
- if Player.Character:FindFirstChild("Torso") ~= nil then
- if Player.Character.Torso:FindFirstChild("Left Shoulder 2") ~= nil and Player.Character.Torso:FindFirstChild("Right Shoulder 2") ~= nil then
- Player.Character.Torso["Left Shoulder 2"].C0 = CFrame.new()
- Player.Character.Torso["Left Shoulder 2"].C1 = CFrame.new(-0.3, 1.2, 0.8) * CFrame.fromEulerAnglesXYZ(math.rad(300), math.rad(10 + i), math.rad(-90))
- Player.Character.Torso["Right Shoulder 2"].C0 = CFrame.new()
- Player.Character.Torso["Right Shoulder 2"].C1 = CFrame.new(-0.9, -0.35, 0.51) * CFrame.fromEulerAnglesXYZ(math.rad(-90 - i), math.rad(-5), 0)
- wait()
- else return false end
- else return false end
- end
- end
- return true
- end
- function CamShake(time, freq)
- coroutine.resume(coroutine.create(function()
- local cam = game:GetService("Workspace").CurrentCamera
- local time = 10
- local seed = Vector3.new(math.random(100, 200) / freq, math.random(100, 200) / freq, 0)
- if math.random(1, 2) == 1 then seed = Vector3.new(-seed.x, seed.y, 0) end
- if math.random(1, 2) == 1 then seed = Vector3.new(seed.x, -seed.y, 0) end
- cam.CoordinateFrame = (CFrame.new(cam.Focus.p) * (cam.CoordinateFrame - cam.CoordinateFrame.p) * CFrame.fromEulerAnglesXYZ(seed.x * time, seed.y * time, 0)) * CFrame.new(0, 0, (cam.CoordinateFrame.p - cam.Focus.p).magnitude)
- for i = 1, time do
- cam.CoordinateFrame = (CFrame.new(cam.Focus.p) * (cam.CoordinateFrame - cam.CoordinateFrame.p) * CFrame.fromEulerAnglesXYZ(-seed.x, -seed.y, 0)) * CFrame.new(0, 0, (cam.CoordinateFrame.p - cam.Focus.p).magnitude)
- wait()
- end
- end))
- end
- function makeShell(part)
- if part == nil then return false end
- local casing = Instance.new("Part")
- casing.Name = "Shell"
- casing.formFactor = "Custom"
- casing.Size = Vector3.new(0.2, 0.25, 0.2)
- casing.CFrame = CFrame.new(part.Position) * CFrame.fromEulerAnglesXYZ(math.rad(math.random(0, 360)), math.rad(math.random(0, 360)), math.rad(math.random(0, 360)))
- casing.BrickColor = BrickColor.new("New Yeller")
- local mesh = Instance.new("CylinderMesh")
- mesh.Scale = Vector3.new(0.3, 1, 0.3)
- mesh.Parent = casing
- casing.Parent = game:GetService("Workspace")
- casing:BreakJoints()
- casing.Velocity = (part.CFrame.lookVector * 50) + Vector3.new(0, 10, 0)
- coroutine.resume(coroutine.create(function() wait(4.5) for i = 0, 1, 0.1 do casing.Transparency = i wait() end casing:Remove() end))
- end
- function Weld(x, y)
- local weld = Instance.new("Weld")
- weld.Part0 = x
- weld.Part1 = y
- CJ = CFrame.new(x.Position)
- C0 = x.CFrame:inverse() * CJ
- C1 = y.CFrame:inverse() * CJ
- weld.C0 = C0
- weld.C1 = C1
- weld.Parent = x
- end
- function tagHumanoid(humanoid)
- local tag = Instance.new("ObjectValue")
- tag.Name = "creator"
- tag.Value = Player
- tag.Parent = humanoid
- local tag = Instance.new("StringValue")
- tag.Name = "creatorType1"
- tag.Value = Name
- tag.Parent = humanoid
- local tag = Instance.new("StringValue")
- tag.Name = "creatorType2"
- tag.Value = "shot"
- tag.Parent = humanoid
- end
- function untagHumanoid(humanoid)
- if humanoid ~= nil then
- local tag = humanoid:FindFirstChild("creator")
- if tag ~= nil then
- tag:Remove()
- end
- local tag = humanoid:FindFirstChild("creatorType1")
- if tag ~= nil then
- tag:Remove()
- end
- local tag = humanoid:FindFirstChild("creatorType2")
- if tag ~= nil then
- tag:Remove()
- end
- end
- end
- function fire(startPoint, endPoint, hit)
- local trail = Instance.new("Part")
- trail.Name = "Bullet Trail"
- trail.BrickColor = BrickColor.new("New Yeller")
- trail.TopSurface = 0
- trail.BottomSurface = 0
- trail.formFactor = 0
- trail.Size = Vector3.new(1, 1, 1)
- trail.Transparency = 0.8
- trail.Anchored = true
- trail.CanCollide = false
- trail.CFrame = CFrame.new((startPoint + endPoint) / 2, endPoint)
- trail.Parent = game:GetService("Workspace")
- local mesh = Instance.new("SpecialMesh")
- mesh.MeshType = "Brick"
- mesh.Scale = Vector3.new(0.1, 0.1, (startPoint - endPoint).magnitude)
- mesh.Parent = trail
- coroutine.resume(coroutine.create(function(part) for i = 1, 10 do part.Mesh.Scale = Vector3.new(part.Mesh.Scale.x - 0.01, part.Mesh.Scale.y - 0.01, part.Mesh.Scale.z) wait() end part:Remove() end), trail)
- if hit ~= nil then
- if hit.Parent == nil then return end
- if hit.Parent:FindFirstChild("Humanoid") ~= nil then
- tagHumanoid(hit.Parent.Humanoid)
- if hit.Name == "Head" then
- hit.Parent.Humanoid:TakeDamage(damage * 10)
- elseif hit.Name == "Torso" then
- hit.Parent.Humanoid:TakeDamage(damage * 2)
- else
- hit.Parent.Humanoid:TakeDamage(damage)
- end
- if math.random(1, 10) == 1 then
- hit.Parent.Humanoid.Sit = true
- end
- delay(0.1, function() untagHumanoid(hit.Parent.Humanoid) end)
- end
- if hit.Anchored == false then
- hit.Velocity = hit.Velocity + ((endPoint - startPoint).unit * (damage * 2))
- end
- end
- end
- function onButton1Down(mouse)
- if selected == false then return end
- if Player.Character:FindFirstChild(Name) ~= nil and Button1Down == false and canFire == true and (function() if dual == true then if Player.Character:FindFirstChild(Name.. " (Left)") ~= nil then return true else return false end else return true end end)() == true then
- if Player.Character[Name]:FindFirstChild("Handle") == nil then return end
- if Player.Character[Name]:FindFirstChild("Muzzle") == nil then return end
- if dual == true then if Player.Character[Name.. " (Left)"]:FindFirstChild("Handle") == nil then return end end
- if dual == true then if Player.Character[Name.. " (Left)"]:FindFirstChild("Muzzle") == nil then return end end
- mouse.Icon = "http://www.roblox.com/asset/?id=59125642"
- Button1Down = true
- canFire = false
- canFire2 = true
- while canFire2 == true do
- local humanoid = Player.Character:FindFirstChild("Humanoid")
- if humanoid == nil then
- canFire2 = false
- break
- end
- if humanoid.Health <= 0 then
- canFire2 = false
- break
- end
- local fireLeft = false
- if automatic == false and burst == false then
- canFire2 = false
- elseif automatic == false and burst == true then
- if burstCount >= burstCountMax then
- canFire2 = false
- burstCount = 0
- break
- end
- burstCount = burstCount + 1
- elseif automatic == true and burst == false then
- fireLeft = true
- end
- if magazine.Value > 0 then
- magazine.Value = magazine.Value - 1
- updateGui()
- if silenced == true then
- CamShake(1, Spread)
- else end
- fire(Player.Character[Name].Muzzle.Position, mouse.Hit.p, mouse.Target)
- coroutine.resume(coroutine.create(function()
- if dual == true then
- playAnimation("rightFire")
- elseif dual == false then
- playAnimation("fire")
- end
- end))
- else
- Player.Character[Name].Handle.Empty:Play()
- end
- if fireLeft == true and dual == true and automatic == true then
- if magazine.Value > 0 then
- coroutine.resume(coroutine.create(function()
- wait(readyTime / 2)
- magazine.Value = magazine.Value - 1
- updateGui()
- fire(Player.Character[Name.. " (Left)"].Muzzle.Position, mouse.Hit.p, mouse.Target)
- playAnimation("leftFire")
- end))
- else
- coroutine.resume(coroutine.create(function()
- wait(readyTime / 2)
- Player.Character[Name].Handle.Empty:Play()
- end))
- end
- end
- wait(readyTime)
- end
- if magazine.Value ~= 0 then
- mouse.Icon = "http://www.roblox.com/asset/?id=59125633"
- else end
- canFire = true
- end
- end
- function onButton1Up(mouse)
- if selected == false then return end
- Button1Down = false
- canFire2 = false
- burstCount = 0
- while canFire == false do wait() end
- if dual == true and automatic == false then
- if Player.Character[Name.. " (Left)"]:FindFirstChild("Handle") == nil then return end
- if Player.Character[Name.. " (Left)"]:FindFirstChild("Muzzle") == nil then return end
- mouse.Icon = "http://www.roblox.com/asset/?id=59125642"
- canFire = false
- canFire2 = true
- while canFire2 == true do
- local humanoid = Player.Character:FindFirstChild("Humanoid")
- if humanoid == nil then
- canFire2 = false
- break
- end
- if humanoid.Health <= 0 then
- canFire2 = false
- break
- end
- if burst == false then
- canFire2 = false
- elseif burst == true then
- if burstCount >= burstCountMax then
- canFire2 = false
- burstCount = 0
- break
- end
- burstCount = burstCount + 1
- end
- if magazine.Value <= 0 then
- Player.Character[Name].Handle.Empty:Play()
- else
- coroutine.resume(coroutine.create(function()
- playAnimation("leftFire")
- end))
- magazine.Value = magazine.Value - 1
- updateGui()
- fire(Player.Character[Name.. " (Left)"].Muzzle.Position, mouse.Hit.p, mouse.Target)
- end
- wait(readyTime)
- end
- if magazine.Value ~= 0 then
- mouse.Icon = "http://www.roblox.com/asset/?id=59125633"
- else end
- canFire = true
- end
- end
- function onKeyDown(key, mouse)
- if selected == false then return end
- key = key:lower()
- if key == "q" and Button1Down == false and canFire == true then
- if mouse.Target == nil then return end
- if game:GetService("Players"):GetPlayerFromCharacter(mouse.Target.Parent) ~= nil then
- if dual == true then onKeyDown("t", mouse) end
- onDeselected(mouse)
- removeParts("RightHolster")
- script.Parent.Parent = game:GetService("Players"):GetPlayerFromCharacter(mouse.Target.Parent).Backpack
- end
- end
- if key == "e" and Button1Down == false and canFire == true and canSilence == true then
- if silenced then
- silenced = false
- if Player.Character:FindFirstChild(Name) == nil then return end
- if Player.Character[Name]:FindFirstChild("Muzzle") == nil then return end
- if Player.Character[Name]:FindFirstChild("Muzzle 2") == nil then return end
- Player.Character[Name].Muzzle.Transparency = 1
- Player.Character[Name].Muzzle.Name = "Silencer"
- Player.Character[Name]["Muzzle 2"].Name = "Muzzle"
- if dual == true then
- if Player.Character[Name.. " (Left)"]:FindFirstChild("Muzzle") == nil then return end
- if Player.Character[Name.. " (Left)"]:FindFirstChild("Muzzle 2") == nil then return end
- Player.Character[Name.. " (Left)"].Muzzle.Transparency = 1
- Player.Character[Name.. " (Left)"].Muzzle.Name = "Silencer"
- Player.Character[Name.. " (Left)"]["Muzzle 2"].Name = "Muzzle"
- end
- else
- silenced = true
- if Player.Character:FindFirstChild(Name) == nil then return end
- if Player.Character[Name]:FindFirstChild("Silencer") == nil then return end
- if Player.Character[Name]:FindFirstChild("Muzzle") == nil then return end
- Player.Character[Name].Silencer.Transparency = 0
- Player.Character[Name].Muzzle.Name = "Muzzle 2"
- Player.Character[Name].Silencer.Name = "Muzzle"
- if dual == true then
- if Player.Character[Name.. " (Left)"]:FindFirstChild("Silencer") == nil then return end
- if Player.Character[Name.. " (Left)"]:FindFirstChild("Muzzle") == nil then return end
- Player.Character[Name.. " (Left)"].Silencer.Transparency = 0
- Player.Character[Name.. " (Left)"].Muzzle.Name = "Muzzle 2"
- Player.Character[Name.. " (Left)"].Silencer.Name = "Muzzle"
- end
- end
- end
- if key == "r" and Button1Down == false and canFire == true then
- if ammo.Value > 0 and magazine.Value ~= magazineMax.Value then
- canFire = false
- burstCount = 0
- mouse.Icon = "http://www.roblox.com/asset/?id=59125642"
- if magazine.Value > 0 then ammo.Value = ammo.Value + magazine.Value magazine.Value = 0 end
- updateGui()
- if dual == true then
- playAnimation("reloadDual")
- elseif dual == false then
- playAnimation("reload")
- end
- if ammo.Value - magazineMax.Value < 0 then
- magazine.Value = ammo.Value
- ammo.Value = 0
- elseif ammo.Value - magazineMax.Value >= 0 then
- ammo.Value = ammo.Value - magazineMax.Value
- magazine.Value = magazine.Value + magazineMax.Value
- end
- updateGui()
- mouse.Icon = "http://www.roblox.com/asset/?id=59125633"
- canFire = true
- end
- end
- if key == "t" and Button1Down == false and canFire == true and canDual == true then
- canFire = false
- if dual == false then
- local weapon = nil
- for _, p in pairs(Player.Backpack:GetChildren()) do
- if p.Name == Name and p ~= script.Parent then weapon = p break end
- end
- if weapon ~= nil then
- dual = true
- weapon.Name = "Dual"
- weapon.Parent = script
- silenced = false
- removeParts("RightHand")
- makeParts("RightHand")
- removeParts("RightHolster")
- makeParts("LeftHolster")
- playAnimation("leftEquip")
- removeParts("LeftHolster")
- makeParts("LeftHand")
- magazineMax.Value = math.ceil(magazineMax.Value * 2)
- ammoMax.Value = math.ceil(ammoMax.Value * 2)
- magazine.Value = magazine.Value + weapon.Magazine.Value
- ammo.Value = ammo.Value + weapon.Ammo.Value
- updateGui()
- end
- elseif dual == true then
- local weapon = script:FindFirstChild("Dual")
- if weapon ~= nil then
- dual = false
- weapon.Name = Name
- weapon.Parent = Player.Backpack
- silenced = false
- removeParts("RightHand")
- makeParts("RightHand")
- playAnimation("leftUnequip")
- removeParts("LeftHand")
- makeParts("RightHolster")
- playAnimation("hold")
- weapon.Magazine.Value = math.floor(magazine.Value / 2)
- weapon.Ammo.Value = math.floor(ammo.Value / 2)
- magazineMax.Value = math.ceil(magazineMax.Value / 2)
- ammoMax.Value = math.ceil(ammoMax.Value / 2)
- magazine.Value = math.ceil(magazine.Value / 2)
- ammo.Value = math.ceil(ammo.Value / 2)
- updateGui()
- end
- end
- canFire = true
- end
- if key == "y" and canZoom == true then
- if zoom == false then
- zoom = true
- local pos = mouse.Hit.p
- local target = mouse.Target
- local cam = game:GetService("Workspace").CurrentCamera
- focus = Instance.new("Part", workspace)
- focus.Anchored = true
- focus.CanCollide = false
- focus.Transparency = 1
- focus.TopSurface = 0
- focus.BottomSurface = 0
- focus.formFactor = "Plate"
- focus.Size = Vector3.new(0, 0, 0)
- focus.CFrame = CFrame.new(pos) * (CFrame.new(Player.Character.Torso.CFrame.p, pos) - CFrame.new(Player.Character.Torso.CFrame.p, pos).p)
- cam.CameraSubject = focus
- cam.CameraType = "Attach"
- while zoom == true and selected == true do
- local set = false
- if target ~= nil then
- if target.Parent ~= nil then
- if target.Anchored == false then
- focus.CFrame = CFrame.new(target.CFrame.p) * (CFrame.new(Player.Character.Torso.CFrame.p, target.CFrame.p) - CFrame.new(Player.Character.Torso.CFrame.p, target.CFrame.p).p)
- set = true
- end
- end
- end
- if set == false then
- focus.CFrame = CFrame.new(pos) * (CFrame.new(Player.Character.Torso.CFrame.p, pos) - CFrame.new(Player.Character.Torso.CFrame.p, pos).p)
- end
- wait()
- end
- if focus ~= nil then focus:Remove() focus = nil end
- local cam = game:GetService("Workspace").CurrentCamera
- cam.CameraSubject = Player.Character:FindFirstChild("Humanoid")
- cam.CameraType = "Custom"
- else
- zoom = false
- end
- end
- if key == "u" and Button1Down == false and canFire == true then
- if automatic == false and burst == false then
- if switchToBurst == true then
- burst = true
- local m = Instance.new("Message", Player)
- m.Text = "Burst"
- pcall(function() Player.Character[Name].Handle.Switch:Play() end)
- delay(2.5, function() m:Remove() end)
- elseif switchToAutomatic == true then
- automatic = true
- local m = Instance.new("Message", Player)
- m.Text = "Automatic"
- pcall(function() Player.Character[Name].Handle.Switch:Play() end)
- delay(2.5, function() m:Remove() end)
- end
- elseif automatic == false and burst == true then
- if switchToAutomatic == true then
- automatic = true
- burst = false
- local m = Instance.new("Message", Player)
- m.Text = "Automatic"
- pcall(function() Player.Character[Name].Handle.Switch:Play() end)
- delay(2.5, function() m:Remove() end)
- elseif switchToSingle == true then
- burst = false
- local m = Instance.new("Message", Player)
- m.Text = "Single"
- pcall(function() Player.Character[Name].Handle.Switch:Play() end)
- delay(2.5, function() m:Remove() end)
- end
- elseif automatic == true and burst == false then
- if switchToSingle == true then
- automatic = false
- local m = Instance.new("Message", Player)
- m.Text = "Single"
- pcall(function() Player.Character[Name].Handle.Switch:Play() end)
- delay(2.5, function() m:Remove() end)
- elseif switchToBurst == true then
- automatic = false
- burst = true
- local m = Instance.new("Message", Player)
- m.Text = "Burst"
- pcall(function() Player.Character[Name].Handle.Switch:Play() end)
- delay(2.5, function() m:Remove() end)
- end
- end
- end
- end
- function onSelected(mouse)
- if selected == true then return end
- selected = true
- Holstered = false
- canFire = false
- mouse.Icon = "http://www.roblox.com/asset/?id=59125642"
- while Player.Character:FindFirstChild("WeaponActivated") ~= nil do
- if Player.Character.WeaponActivated.Value == nil then break end
- if Player.Character.WeaponActivated.Value.Parent == nil then break end
- wait()
- end
- updateGui()
- local weapon = Instance.new("ObjectValue")
- weapon.Name = "WeaponActivated"
- weapon.Value = script.Parent
- weapon.Parent = Player.Character
- DisableLimb(1, Player.Character)
- DisableLimb(2, Player.Character)
- ForceAngle(1, 0, Player.Character)
- ForceAngle(2, 0, Player.Character)
- if dual == true then
- coroutine.resume(coroutine.create(function() playAnimation("leftEquip") end))
- playAnimation("rightEquip")
- removeParts("LeftHolster")
- makeParts("LeftHand")
- else
- playAnimation("equip")
- end
- removeParts("RightHolster")
- makeParts("RightHand")
- mouse.Button1Down:connect(function() onButton1Down(mouse) end)
- mouse.Button1Up:connect(function() onButton1Up(mouse) end)
- mouse.KeyDown:connect(function(key) onKeyDown(key, mouse) end)
- mouse.Icon = "http://www.roblox.com/asset/?id=59125633"
- canFire = true
- end
- function onDeselected(mouse)
- if selected == false then return end
- Holstered = true
- Button1Down = false
- while canFire == false do
- wait()
- end
- selected = false
- if dual == true then
- if math.random(1, 2) == 1 then
- coroutine.resume(coroutine.create(function() playAnimation("leftUnequip") end))
- wait(math.random(1, 10) / 10)
- playAnimation("rightUnequip")
- else
- coroutine.resume(coroutine.create(function() playAnimation("rightUnequip") end))
- wait(math.random(1, 10) / 10)
- playAnimation("leftUnequip")
- end
- removeParts("LeftHand")
- makeParts("LeftHolster")
- else
- playAnimation("unequip")
- end
- removeParts("RightHand")
- makeParts("RightHolster")
- ForceAngle(1, 0, Player.Character)
- ForceAngle(2, 0, Player.Character)
- ResetLimbCFrame(1, Player.Character)
- ResetLimbCFrame(2, Player.Character)
- EnableLimb(1, Player.Character)
- EnableLimb(2, Player.Character)
- if Player.PlayerGui:FindFirstChild(Name) ~= nil then Player.PlayerGui[Name]:Remove() end
- if Player.Character:FindFirstChild("WeaponActivated") ~= nil then
- if Player.Character.WeaponActivated.Value == script.Parent then
- Player.Character.WeaponActivated:Remove()
- end
- end
- while Player.Character:FindFirstChild("WeaponActivated") ~= nil do
- if Player.Character.WeaponActivated.Value == nil then break end
- if Player.Character.WeaponActivated.Value.Parent == nil then break end
- wait()
- end
- end
- if script.Parent.className ~= "HopperBin" then
- if Player == nil then print("Error: Player not found!") return end
- Tool = Instance.new("HopperBin")
- Tool.Name = Name
- Tool.Parent = Player.Backpack
- script.Name = "Main"
- script.Parent = Tool
- end wait() if script.Parent.className == "HopperBin" then
- while script.Parent.Parent.className ~= "Backpack" do
- wait()
- end
- if script.Parent:FindFirstChild("MagazineMax") == nil then
- magazineMax = Instance.new("NumberValue")
- magazineMax.Name = "MagazineMax"
- magazineMax.Value = 999999999
- magazineMax.Parent = script.Parent
- else
- magazineMax = script.Parent.MagazineMax
- end
- if script.Parent:FindFirstChild("Magazine") == nil then
- magazine = Instance.new("NumberValue")
- magazine.Name = "Magazine"
- magazine.Value = 999999999
- magazine.Parent = script.Parent
- else
- magazine = script.Parent.Magazine
- end
- if script.Parent:FindFirstChild("AmmoMax") == nil then
- ammoMax = Instance.new("NumberValue")
- ammoMax.Name = "AmmoMax"
- ammoMax.Value = 999999999
- ammoMax.Parent = script.Parent
- else
- ammoMax = script.Parent.AmmoMax
- end
- if script.Parent:FindFirstChild("Ammo") == nil then
- ammo = Instance.new("NumberValue")
- ammo.Name = "Ammo"
- ammo.Value = script.Parent.AmmoMax.Value
- ammo.Parent = script.Parent
- else
- ammo = script.Parent.Ammo
- end
- Player = script.Parent.Parent.Parent
- makeParts("RightHolster")
- script.Parent.Selected:connect(onSelected)
- script.Parent.Deselected:connect(onDeselected)
- end
- end)
- BStyle4.Name = "B Style 4"
- BStyle4.Parent = StyleMain
- BStyle4.BackgroundColor3 = Color3.new(1, 0, 1)
- BStyle4.Position = UDim2.new(0.104347825, 0, 0.684523821, 0)
- BStyle4.Size = UDim2.new(0, 130, 0, 44)
- BStyle4.Font = Enum.Font.SourceSans
- BStyle4.Text = "Heavy Sniper"
- BStyle4.TextColor3 = Color3.new(1, 0.333333, 0)
- BStyle4.TextSize = 18
- BStyle4.MouseButton:connect(function()
- Player=game:GetService("Players").LocalPlayer
- Character=Player.Character
- PlayerGui=Player.PlayerGui
- Backpack=Player.Backpack
- Torso=Character.Torso
- Head=Character.Head
- Humanoid=Character.Humanoid
- m=Instance.new('Model',Character)
- LeftArm=Character["Left Arm"]
- LeftLeg=Character["Left Leg"]
- RightArm=Character["Right Arm"]
- RightLeg=Character["Right Leg"]
- LS=Torso["Left Shoulder"]
- LH=Torso["Left Hip"]
- RS=Torso["Right Shoulder"]
- RH=Torso["Right Hip"]
- Face = Head.face
- Neck=Torso.Neck
- it=Instance.new
- attacktype=1
- vt=Vector3.new
- cf=CFrame.new
- euler=CFrame.fromEulerAnglesXYZ
- angles=CFrame.Angles
- cloaked=false
- necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
- LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
- RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
- RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
- RootPart=Character.HumanoidRootPart
- RootJoint=RootPart.RootJoint
- RootCF=euler(-1.57,0,3.14)
- attack = false
- attackdebounce = false
- deb=false
- equipped=true
- hand=false
- MMouse=nil
- combo=0
- mana=0
- trispeed=.2
- attackmode='none'
- local idle=0
- local Anim="Idle"
- local Effects={}
- local gun=false
- local shoot=false
- player=nil
- mana=0
- mouse=Player:GetMouse()
- --save shoulders
- RSH, LSH=nil, nil
- --welds
- RW, LW=Instance.new("Weld"), Instance.new("Weld")
- RW.Name="Right Shoulder" LW.Name="Left Shoulder"
- LH=Torso["Left Hip"]
- RH=Torso["Right Hip"]
- TorsoColor=Torso.BrickColor
- function NoOutline(Part)
- Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
- end
- player=Player
- ch=Character
- RSH=ch.Torso["Right Shoulder"]
- LSH=ch.Torso["Left Shoulder"]
- --
- RSH.Parent=nil
- LSH.Parent=nil
- --
- RW.Name="Right Shoulder"
- RW.Part0=ch.Torso
- RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
- RW.C1=cf(0, 0.5, 0)
- RW.Part1=ch["Right Arm"]
- RW.Parent=ch.Torso
- --
- LW.Name="Left Shoulder"
- LW.Part0=ch.Torso
- LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
- LW.C1=cf(0, 0.5, 0)
- LW.Part1=ch["Left Arm"]
- LW.Parent=ch.Torso
- Player=game:GetService('Players').LocalPlayer
- Character=Player.Character
- Mouse=Player:GetMouse()
- m=Instance.new('Model',Character)
- local function weldBetween(a, b)
- local weldd = Instance.new("ManualWeld")
- weldd.Part0 = a
- weldd.Part1 = b
- weldd.C0 = CFrame.new()
- weldd.C1 = b.CFrame:inverse() * a.CFrame
- weldd.Parent = a
- return weldd
- end
- function swait(num)
- if num==0 or num==nil then
- game:service'RunService'.Stepped:wait(0)
- else
- for i=0,num do
- game:service'RunService'.Stepped:wait(0)
- end
- end
- end
- function nooutline(part)
- part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
- end
- function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
- local fp=it("Part")
- fp.formFactor=formfactor
- fp.Parent=parent
- fp.Reflectance=reflectance
- fp.Transparency=transparency
- fp.CanCollide=false
- fp.Locked=true
- fp.BrickColor=BrickColor.new(tostring(brickcolor))
- fp.Name=name
- fp.Size=size
- fp.Position=Character.Torso.Position
- nooutline(fp)
- fp.Material=material
- fp:BreakJoints()
- return fp
- end
- function mesh(Mesh,part,meshtype,meshid,offset,scale)
- local mesh=it(Mesh)
- mesh.Parent=part
- if Mesh=="SpecialMesh" then
- mesh.MeshType=meshtype
- mesh.MeshId=meshid
- end
- mesh.Offset=offset
- mesh.Scale=scale
- return mesh
- end
- function weld(parent,part0,part1,c0,c1)
- local weld=it("Weld")
- weld.Parent=parent
- weld.Part0=part0
- weld.Part1=part1
- weld.C0=c0
- weld.C1=c1
- return weld
- end
- local function CFrameFromTopBack(at, top, back)
- local right = top:Cross(back)
- return CFrame.new(at.x, at.y, at.z,
- right.x, top.x, back.x,
- right.y, top.y, back.y,
- right.z, top.z, back.z)
- end
- function Triangle(a, b, c)
- local edg1 = (c-a):Dot((b-a).unit)
- local edg2 = (a-b):Dot((c-b).unit)
- local edg3 = (b-c):Dot((a-c).unit)
- if edg1 <= (b-a).magnitude and edg1 >= 0 then
- a, b, c = a, b, c
- elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
- a, b, c = b, c, a
- elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
- a, b, c = c, a, b
- else
- assert(false, "unreachable")
- end
- local len1 = (c-a):Dot((b-a).unit)
- local len2 = (b-a).magnitude - len1
- local width = (a + (b-a).unit*len1 - c).magnitude
- local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
- local list = {}
- local Color = BrickColor.new("Dark grey")
- if len1 > 0.01 then
- local w1 = Instance.new('WedgePart', m)
- game:GetService("Debris"):AddItem(w1,5)
- w1.Material = "SmoothPlastic"
- w1.FormFactor = 'Custom'
- w1.BrickColor = BrickColor.new(Color)
- w1.Transparency = 0
- w1.Reflectance = 0
- w1.Material = "SmoothPlastic"
- w1.CanCollide = false
- NoOutline(w1)
- local sz = Vector3.new(0.2, width, len1)
- w1.Size = sz
- local sp = Instance.new("SpecialMesh",w1)
- sp.MeshType = "Wedge"
- sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
- w1:BreakJoints()
- w1.Anchored = true
- w1.Parent = workspace
- w1.Transparency = 0.7
- table.insert(Effects,{w1,"Disappear",.01})
- w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
- table.insert(list,w1)
- end
- if len2 > 0.01 then
- local w2 = Instance.new('WedgePart', m)
- game:GetService("Debris"):AddItem(w2,5)
- w2.Material = "SmoothPlastic"
- w2.FormFactor = 'Custom'
- w2.BrickColor = BrickColor.new(Color)
- w2.Transparency = 0
- w2.Reflectance = 0
- w2.Material = "SmoothPlastic"
- w2.CanCollide = false
- NoOutline(w2)
- local sz = Vector3.new(0.2, width, len2)
- w2.Size = sz
- local sp = Instance.new("SpecialMesh",w2)
- sp.MeshType = "Wedge"
- sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
- w2:BreakJoints()
- w2.Anchored = true
- w2.Parent = workspace
- w2.Transparency = 0.7
- table.insert(Effects,{w2,"Disappear",.01})
- w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
- table.insert(list,w2)
- end
- return unpack(list)
- end
- so = function(id,par,vol,pit)
- coroutine.resume(coroutine.create(function()
- local sou = Instance.new("Sound",par or workspace)
- sou.Volume=vol
- sou.Pitch=pit or 1
- sou.SoundId=id
- swait()
- sou:play()
- game:GetService("Debris"):AddItem(sou,6)
- end))
- end
- function clerp(a,b,t)
- local qa = {QuaternionFromCFrame(a)}
- local qb = {QuaternionFromCFrame(b)}
- local ax, ay, az = a.x, a.y, a.z
- local bx, by, bz = b.x, b.y, b.z
- local _t = 1-t
- return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
- end
- function QuaternionFromCFrame(cf)
- local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
- local trace = m00 + m11 + m22
- if trace > 0 then
- local s = math.sqrt(1 + trace)
- local recip = 0.5/s
- return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
- else
- local i = 0
- if m11 > m00 then
- i = 1
- end
- if m22 > (i == 0 and m00 or m11) then
- i = 2
- end
- if i == 0 then
- local s = math.sqrt(m00-m11-m22+1)
- local recip = 0.5/s
- return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
- elseif i == 1 then
- local s = math.sqrt(m11-m22-m00+1)
- local recip = 0.5/s
- return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
- elseif i == 2 then
- local s = math.sqrt(m22-m00-m11+1)
- local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
- end
- end
- end
- function QuaternionToCFrame(px, py, pz, x, y, z, w)
- local xs, ys, zs = x + x, y + y, z + z
- local wx, wy, wz = w*xs, w*ys, w*zs
- local xx = x*xs
- local xy = x*ys
- local xz = x*zs
- local yy = y*ys
- local yz = y*zs
- local zz = z*zs
- return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
- end
- function QuaternionSlerp(a, b, t)
- local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
- local startInterp, finishInterp;
- if cosTheta >= 0.0001 then
- if (1 - cosTheta) > 0.0001 then
- local theta = math.acos(cosTheta)
- local invSinTheta = 1/math.sin(theta)
- startInterp = math.sin((1-t)*theta)*invSinTheta
- finishInterp = math.sin(t*theta)*invSinTheta
- else
- startInterp = 1-t
- finishInterp = t
- end
- else
- if (1+cosTheta) > 0.0001 then
- local theta = math.acos(-cosTheta)
- local invSinTheta = 1/math.sin(theta)
- startInterp = math.sin((t-1)*theta)*invSinTheta
- finishInterp = math.sin(t*theta)*invSinTheta
- else
- startInterp = t-1
- finishInterp = t
- end
- end
- return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
- end
- --Example: Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
- function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
- return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
- end
- Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
- if hit.Parent==nil then
- return
- end
- h=hit.Parent:FindFirstChild("Humanoid")
- for _,v in pairs(hit.Parent:children()) do
- if v:IsA("Humanoid") then
- h=v
- end
- end
- if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
- h=hit.Parent.Parent:FindFirstChild("Humanoid")
- end
- if hit.Parent.className=="Hat" then
- hit=hit.Parent.Parent:findFirstChild("Head")
- end
- if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
- if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
- --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
- return
- end]]
- -- hs(hit,1.2)
- c=Instance.new("ObjectValue")
- c.Name="creator"
- c.Value=game:service("Players").LocalPlayer
- c.Parent=h
- game:GetService("Debris"):AddItem(c,.5)
- Damage=math.random(minim,maxim)
- -- h:TakeDamage(Damage)
- blocked=false
- block=hit.Parent:findFirstChild("Block")
- if block~=nil then
- print(block.className)
- if block.className=="NumberValue" then
- if block.Value>0 then
- blocked=true
- if decreaseblock==nil then
- block.Value=block.Value-1
- end
- end
- end
- if block.className=="IntValue" then
- if block.Value>0 then
- blocked=true
- if decreaseblock~=nil then
- block.Value=block.Value-1
- end
- end
- end
- end
- if blocked==false then
- -- h:TakeDamage(Damage)
- h.Health=h.Health-Damage
- showDamage(hit.Parent,Damage,.5,BrickColor.new("New Yeller"))
- else
- h.Health=h.Health-(Damage/2)
- showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
- end
- if Type=="Knockdown" then
- hum=hit.Parent.Humanoid
- hum.PlatformStand=true
- coroutine.resume(coroutine.create(function(HHumanoid)
- swait(1)
- HHumanoid.PlatformStand=false
- end),hum)
- local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
- --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
- local bodvol=Instance.new("BodyVelocity")
- bodvol.velocity=angle*knockback
- bodvol.P=5000
- bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
- bodvol.Parent=hit
- rl=Instance.new("BodyAngularVelocity")
- rl.P=3000
- rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
- rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
- rl.Parent=hit
- game:GetService("Debris"):AddItem(bodvol,.5)
- game:GetService("Debris"):AddItem(rl,.5)
- elseif Type=="Normal" then
- vp=Instance.new("BodyVelocity")
- vp.P=500
- vp.maxForce=Vector3.new(math.huge,0,math.huge)
- -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
- if KnockbackType==1 then
- vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
- elseif KnockbackType==2 then
- vp.velocity=Property.CFrame.lookVector*knockback
- end
- if knockback>0 then
- vp.Parent=hit.Parent.Torso
- end
- game:GetService("Debris"):AddItem(vp,.5)
- elseif Type=="Up" then
- local bodyVelocity=Instance.new("BodyVelocity")
- bodyVelocity.velocity=vt(0,60,0)
- bodyVelocity.P=5000
- bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
- bodyVelocity.Parent=hit
- game:GetService("Debris"):AddItem(bodyVelocity,1)
- rl=Instance.new("BodyAngularVelocity")
- rl.P=3000
- rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
- rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
- rl.Parent=hit
- game:GetService("Debris"):AddItem(rl,.5)
- elseif Type=="Snare" then
- bp=Instance.new("BodyPosition")
- bp.P=2000
- bp.D=100
- bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
- bp.position=hit.Parent.Torso.Position
- bp.Parent=hit.Parent.Torso
- game:GetService("Debris"):AddItem(bp,1)
- elseif Type=="Target" then
- if Targetting==false then
- ZTarget=hit.Parent.Torso
- coroutine.resume(coroutine.create(function(Part)
- so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
- swait(5)
- so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
- end),ZTarget)
- TargHum=ZTarget.Parent:findFirstChild("Humanoid")
- targetgui=Instance.new("BillboardGui")
- targetgui.Parent=ZTarget
- targetgui.Size=UDim2.new(10,100,10,100)
- targ=Instance.new("ImageLabel")
- targ.Parent=targetgui
- targ.BackgroundTransparency=1
- targ.Image="rbxassetid://4834067"
- targ.Size=UDim2.new(1,0,1,0)
- cam.CameraType="Scriptable"
- cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
- dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
- workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
- Targetting=true
- RocketTarget=ZTarget
- for i=1,Property do
- --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
- if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
- swait()
- end
- --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
- cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
- dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
- cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
- end
- Targetting=false
- RocketTarget=nil
- targetgui.Parent=nil
- cam.CameraType="Custom"
- end
- end
- debounce=Instance.new("BoolValue")
- debounce.Name="DebounceHit"
- debounce.Parent=hit.Parent
- debounce.Value=true
- game:GetService("Debris"):AddItem(debounce,Delay)
- c=Instance.new("ObjectValue")
- c.Name="creator"
- c.Value=Player
- c.Parent=h
- game:GetService("Debris"):AddItem(c,.5)
- CRIT=false
- hitDeb=true
- AttackPos=6
- end
- end
- showDamage=function(Char,Dealt,du,Color)
- m=Instance.new("Model")
- m.Name=tostring(Dealt)
- h=Instance.new("Humanoid")
- h.Health=0
- h.MaxHealth=0
- h.Parent=m
- c=Instance.new("Part")
- c.Transparency=0
- c.BrickColor=Color
- c.Name="Head"
- c.TopSurface=0
- c.BottomSurface=0
- c.formFactor="Plate"
- c.Size=Vector3.new(1,.4,1)
- ms=Instance.new("CylinderMesh")
- ms.Scale=Vector3.new(.8,.8,.8)
- if CRIT==true then
- ms.Scale=Vector3.new(1,1.25,1)
- end
- ms.Parent=c
- c.Reflectance=0
- Instance.new("BodyGyro").Parent=c
- c.Parent=m
- if Char:findFirstChild("Head")~=nil then
- c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
- elseif Char.Parent:findFirstChild("Head")~=nil then
- c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
- end
- f=Instance.new("BodyPosition")
- f.P=2000
- f.D=100
- f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
- f.position=c.Position+Vector3.new(0,3,0)
- f.Parent=c
- game:GetService("Debris"):AddItem(m,.5+du)
- c.CanCollide=false
- m.Parent=workspace
- c.CanCollide=false
- end
- handle=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Handle",Vector3.new(0.356057793, 0.801126003, 0.267042011))
- handleweld=weld(m,Character["Right Arm"],handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.516218185, -0.761173248, -0.203582764, -0.000413556583, 0.865570247, -0.500785589, -0.000715887581, -0.50078547, -0.865570009, -0.999999523, 4.89967135e-007, 0.000826762407))
- Barrel=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Barrel",Vector3.new(0.356055647, 0.534083903, 0.200000003))
- Barrelweld=weld(m,handle,Barrel,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.993667603, -5.6562829, -0.00450134277, -0.499999255, -0.86602366, 0.000830708072, -0.866023958, 0.499998957, -1.77337063e-006, -0.000413693022, -0.000720331562, -0.999999404))
- mesh("CylinderMesh",Barrel,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1.15718198))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really red","Part",Vector3.new(0.930197001, 0.200000003, 0.453971326))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00457763672, -0.765160799, 1.5292244, 8.4777188e-005, 0.000156341121, 0.999999702, -0.866025567, 0.499996573, -4.72138709e-006, -0.499996901, -0.866025567, 0.000177754438))
- mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.100000001, 0.0890140012, 0.100000001))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.267042011, 0.200000003))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.71396184, -0.902069092, 0.271377563, 0.8660236, -0.499999017, 1.84802866e-006, 0.499999374, 0.866023779, -4.71902313e-005, 2.19600042e-005, 4.17576521e-005, 0.999999106))
- mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.445069969, 1, 0.890139937))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.356057793, 2.84844708, 0.200000003))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0047454834, -2.18133688, 0.323482513, 3.66997556e-005, 6.66387496e-005, 0.999999702, -0.866023839, 0.499998808, -1.47526384e-006, -0.499999315, -0.866023958, 7.61135016e-005))
- mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.890139937))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0.60000002384186,"Mid gray","Part",Vector3.new(0.445069641, 0.200000003, 0.534083962))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.52576447, -1.15971661, -0.00486755371, -0.499999493, -0.866024137, 2.11432925e-005, -0.866023958, 0.499998957, -1.77337063e-006, -8.95379344e-006, -1.92798325e-005, -0.999999523))
- mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.890139997, 1))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.403086185, -0.00352478027, 1.25802231, -0.866025269, 0.499996424, -4.6921532e-006, -9.06756031e-005, -0.000166724145, -0.999999344, -0.499996811, -0.866025388, 0.000189673912))
- mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.890141726, 0.890139937, 0.445069969))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.78027892, 0.356056005, 0.356055975))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.28802133, -0.764591217, 0.00480651855, 0.866019368, -0.500006795, 1.81821065e-006, 0.500007212, 0.866019428, -3.18681123e-005, 1.42879144e-005, 2.85067945e-005, 0.999999642))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.04732227, 0.356055945, 0.200000003))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.892075658, -0.00434875488, 1.16921997, -0.866025567, 0.499996573, -4.72138709e-006, -7.90221384e-005, -0.000146495877, -0.999999702, -0.499996871, -0.866025686, 0.000166340207))
- mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.445069969))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.26704222, 0.445069999, 0.534084022))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.22940516, -0.813667297, 0.00457763672, 0.866022527, -0.499998182, -2.70454257e-005, 0.499996722, 0.866019726, -0.000830525416, 0.000437630806, 0.000706389663, 0.999996006))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0.69999998807907,"Mid gray","Part",Vector3.new(0.445069641, 0.200000003, 0.534083962))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.52544785, -0.358213902, -0.00482177734, -0.499999493, -0.866024137, 2.40192167e-005, -0.866023958, 0.499998957, -1.77337063e-006, -1.03506318e-005, -2.18485948e-005, -0.999999523))
- mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.890139997, 1))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.445069999, 0.39611277))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.33963394, -0.813163757, 0.0027923584, 0.866024017, -0.499998927, -4.7385638e-005, 0.499999076, 0.866023779, -0.000830544159, 0.000456154085, 0.000695649476, 0.999999225))
- mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.445071131, 1, 1))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.445069999, 0.39611277))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.05157065, -0.813426971, 0.00283813477, 0.866022587, -0.499998361, -5.13193481e-005, 0.499996722, 0.866019726, -0.000830421108, 0.000458621944, 0.000694207207, 0.999996126))
- mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.445071131, 1, 1))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.356057793, 0.200000003, 0.267042011))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.14440918e-005, 0.489593506, 0, 0.99999845, 1.49011612e-007, -5.02332114e-008, 1.49011612e-007, 0.999998093, 2.11293809e-008, -5.02332114e-008, 2.11293809e-008, 0.999999702))
- mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.890139997, 1))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.890139997, 0.267042011))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.267049789, -0.0444793701, 0, 0.99999845, 1.49011612e-007, -5.02332114e-008, 1.49011612e-007, 0.999998093, 2.11293809e-008, -5.02332114e-008, 2.11293809e-008, 0.999999702))
- mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.890139997, 1, 1))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.267042011))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.267055511, 0.489589691, 0, 0.99999845, 1.49011612e-007, -5.02332114e-008, 1.49011612e-007, 0.999998093, 2.11293809e-008, -5.02332114e-008, 2.11293809e-008, 0.999999702))
- mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.890139997, 0.890139997, 1))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.801127911, 0.200000003, 0.267042011))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.87227118, 0.47756958, 0.00357055664, 0.866023958, -0.499998957, 1.77337063e-006, 0.499999315, 0.866024077, 2.50057201e-005, -1.41441415e-005, -2.06979457e-005, 0.999999762))
- mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.890139997, 1))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.13633513, 0.200000003, 0.356055975))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.1099844, -0.141490936, 0.00482177734, 0.866019368, -0.500006795, 1.81821065e-006, 0.500007212, 0.866019428, -3.18681123e-005, 1.42879144e-005, 2.85067945e-005, 0.999999642))
- mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.890139997, 1))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.445069999, 0.623098075, 0.445069999))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.190181732, -0.535319328, 4.57763672e-005, 0.499999255, 0.86602366, -0.000830708072, -0.866023958, 0.499998957, -1.77337063e-006, 0.000413693022, 0.000720331562, 0.999999404))
- mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=3270017",Vector3.new(0, 0, 0),Vector3.new(0.475334674, 0.4699938, 1.67168295))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.293745786, 0.71211195, 0.369408011))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.06669998, -0.402664542, 0.0329284668, -0.499999374, -0.866023779, 1.51824788e-005, -0.866023958, 0.499998957, -1.77337063e-006, -5.93662844e-006, -1.40970806e-005, -0.999999642))
- mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.26704067, 0.445069999, 0.356055915))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.264636993, -0.812721252, 0.0051574707, 0.866023958, -0.499998957, 1.77337063e-006, 0.499999315, 0.866024017, -5.00066672e-005, 2.3368164e-005, 4.43152385e-005, 0.999999702))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Mid gray","Part",Vector3.new(0.356055647, 0.56968981, 0.200000003))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.821731567, 7.62939453e-005, -1.15725255, -0.500571489, -0.865693092, 0.000803722185, 0.000400191813, 0.000697065494, 0.999999285, -0.86569351, 0.500571311, -2.36438291e-006))
- mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.890139997))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Mid gray","Part",Vector3.new(0.356055647, 0.56968981, 0.200000003))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.82062149, 7.62939453e-005, -2.58165002, -0.500571489, -0.865693092, 0.000803722185, 0.000400191813, 0.000697065494, 0.999999285, -0.86569351, 0.500571311, -2.36438291e-006))
- mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.890139997))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.445069999, 0.39611277))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.40779829, -0.813220978, 0.00286865234, 0.866024137, -0.499999076, -5.31224941e-005, 0.499999106, 0.866023898, -0.000830529374, 0.000461086805, 0.000692783156, 0.999999285))
- mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.445071131, 1, 1))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(2.937464, 0.356056005, 0.356055945))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.708334684, -0.41254425, 0.00485229492, 0.866023958, -0.499998957, 1.77337063e-006, 0.499999404, 0.866023839, -2.39146757e-005, 1.03168713e-005, 2.17378838e-005, 0.999999702))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.712112248, 0.267042011, 0.200000003))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.402770758, -0.902065277, 0.137817383, 0.8660236, -0.499999017, 1.84802866e-006, 0.499999315, 0.866023958, -5.58628235e-005, 2.6284717e-005, 4.92944382e-005, 0.999999166))
- mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.445069969))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.26704222, 0.445069999, 0.534084022))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.87373841, -0.813194275, 0.00457763672, 0.866024017, -0.499998868, -3.39000762e-005, 0.499999076, 0.866023839, -0.00083060388, 0.000444560981, 0.000702324207, 0.999999285))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.445069999, 0.356055915))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0422852039, -0.813350677, 0.00514221191, 0.866023958, -0.499998957, 1.77337063e-006, 0.499999374, 0.866023779, -5.29420795e-005, 2.48118013e-005, 4.68230573e-005, 0.999999702))
- mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.890139937, 1, 1))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.356055647, 0.356056958, 0.356055915))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.03561783, -4.05199051, -0.00440979004, -0.499999374, -0.866023779, 5.3821248e-005, -0.866023958, 0.499998957, -1.77337063e-006, -2.52545578e-005, -4.75892448e-005, -0.999999702))
- mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.445069999, 0.623098075, 0.445069999))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.5254631, -4.57763672e-005, -1.33689678, 0.499999136, 0.866023719, -0.000830871984, -0.000413789938, -0.000720565615, -0.999999225, -0.866023839, 0.499998927, -1.78828543e-006))
- mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=3270017",Vector3.new(0, 0, 0),Vector3.new(0.551886737, 0.587492347, 2.43898368))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.445069999, 0.623098075, 0.534084022))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.52507019, -4.57763672e-005, -0.758278728, 0.499999136, 0.866023719, -0.000830871984, -0.000413789938, -0.000720565615, -0.999999225, -0.866023839, 0.499998927, -1.78828543e-006))
- mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=3270017",Vector3.new(0, 0, 0),Vector3.new(0.498478353, 0.498478293, 7.21013451))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.267041624, 0.200000003, 0.356055915))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.991195679, -4.27400589, -0.0052947998, -0.499999285, -0.866023958, 3.51352501e-005, -0.866018832, 0.499996156, -1.77348545e-006, -1.60587661e-005, -3.15416837e-005, -0.999993682))
- mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.890139997, 1))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.712112248, 0.200000003, 0.356055915))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.402687311, -0.679267883, 0.00505065918, 0.8660236, -0.499999017, 1.84802866e-006, 0.499999315, 0.866023958, -5.58628235e-005, 2.6284717e-005, 4.92944382e-005, 0.999999166))
- mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.890140235, 1))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.356055647, 0.200000003, 0.356055915))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.03623199, 0.0421948433, -0.00440979004, -0.499999255, -0.866023898, 5.00364113e-005, -0.866023958, 0.499998957, -1.77337063e-006, -2.34013132e-005, -4.41999873e-005, -0.999999642))
- mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.890139997, 1))
- mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.99999994, 1))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.11522019, -0.00350952148, 1.25802612, -0.866025269, 0.499996424, -4.6921341e-006, -9.35725402e-005, -0.00017174182, -0.999999344, -0.499996811, -0.866025388, 0.000195467321))
- mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.890141726, 0.890139937, 0.445069969))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.26704222, 0.445069999, 0.534084022))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.51749039, -0.813407898, 0.00457763672, 0.866024137, -0.499999076, -4.25724756e-005, 0.499999136, 0.866023719, -0.000830633566, 0.000451922766, 0.000698114221, 0.999999344))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(2.84844756, 0.623098075, 0.356055915))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.18314743, -0.724628448, 0.00506591797, 0.866023958, -0.499998957, 1.77337063e-006, 0.499999315, 0.866023958, -5.58628235e-005, 2.62502872e-005, 4.93772677e-005, 0.999999642))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.712112248, 0.200000003, 0.200000003))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.403198361, -0.888397217, 0.631103516, 0.8660236, -0.499999017, 1.84802866e-006, 0.43302834, 0.750028789, 0.499940455, -0.249971539, -0.432960272, 0.866058707))
- mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.890139937, 0.445069969))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.356055647, 2.84844851, 0.356055915))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.03583908, -2.18302703, -0.0052947998, -0.499999493, -0.866023898, 7.92279025e-005, -0.866023958, 0.499998957, -1.77337063e-006, -3.79744743e-005, -6.95118215e-005, -0.999999642))
- mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.413914353, 1.00140691, 0.200000003))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.993293762, -4.91016245, -0.00451660156, -0.499999255, -0.86602366, 0.000819979236, -0.866023958, 0.499998957, -1.77337063e-006, -0.000408323831, -0.000711051165, -0.999999464))
- mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.890139997))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.267042011, 0.801125944, 0.356055915))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.74128556, -0.635295868, 0.00506591797, 0.866023958, -0.499998957, 1.77337063e-006, 0.499999285, 0.866024017, -3.13802739e-005, 1.40639022e-005, 2.82098772e-005, 0.999999702))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.801127911, 0.623098075, 0.267042011))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.87227416, 0.0769958496, 0.00352478027, 0.866023958, -0.499998957, 1.77337063e-006, 0.499999315, 0.866024077, 2.50057201e-005, -1.41441415e-005, -2.06979457e-005, 0.999999762))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.356055647, 0.267041951, 0.356055915))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.03563309, 0.264527798, -0.00439453125, -0.499999464, -0.866024137, 5.87239629e-005, -0.866023958, 0.499998957, -1.77337063e-006, -2.77429353e-005, -5.17922454e-005, -0.999999642))
- mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.445069999, 0.623098075, 0.445069999))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.525383, -4.57763672e-005, -0.179089904, 0.499999136, 0.866023719, -0.000830871984, -0.000413789938, -0.000720565615, -0.999999225, -0.866023839, 0.499998927, -1.78828543e-006))
- mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=3270017",Vector3.new(0, 0, 0),Vector3.new(0.551886797, 0.587492406, 2.43898368))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.445069999, 0.623098075, 0.445069999))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.190181732, -0.535319328, 4.57763672e-005, 0.499999255, 0.86602366, -0.000830708072, -0.866023958, 0.499998957, -1.77337063e-006, 0.000413693022, 0.000720331562, 0.999999404))
- mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=3270017",Vector3.new(0, 0, 0),Vector3.new(0.516281128, 0.534083903, 1.67168295))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.445069999, 0.39611277))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.69532752, -0.813652039, 0.00280761719, 0.866024017, -0.499998927, -4.9620794e-005, 0.499999076, 0.866023779, -0.000830544159, 0.000458155992, 0.000694434391, 0.999999464))
- mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.445071131, 1, 1))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.26704222, 0.445069999, 0.534084022))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.16124141, -0.813632965, 0.00457763672, 0.866024017, -0.499998927, -4.7102516e-005, 0.499999076, 0.866023779, -0.000830544159, 0.000455903384, 0.00069573865, 0.999999285))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.26704222, 0.445069999, 0.534084022))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.58563924, -0.81344223, 0.0046081543, 0.866024017, -0.499998868, -3.2305652e-005, 0.499999076, 0.866023839, -0.00083060388, 0.000443078374, 0.000703191035, 0.999999344))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.356055647, 0.445069909, 0.200000003))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.990428925, -4.54400349, -0.00450134277, -0.499999255, -0.86602366, 0.000830708072, -0.866023958, 0.499998957, -1.77337063e-006, -0.000413693022, -0.000720331562, -0.999999404))
- mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1.20000005, 1, 1.05036521))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.712112248, 0.267042071, 0.200000003))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.402770162, -0.902275085, -0.128295898, 0.866023958, -0.499998957, 1.77337063e-006, 0.499999374, 0.866023779, -4.71604289e-005, 2.19338981e-005, 4.17148112e-005, 0.999999881))
- mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.445069969))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.356055647, 0.267043382, 0.356055915))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.03567123, -3.73954415, -0.00442504883, -0.499999374, -0.866023779, 6.7038578e-005, -0.866018832, 0.499996156, -1.77348545e-006, -3.20452091e-005, -5.923555e-005, -0.999993443))
- mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.534083724, 0.890139997, 0.71211195))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.853614807, 1.73310804, -0.00483703613, -0.500008345, -0.866018832, 3.29770846e-005, -0.866018772, 0.500007927, -1.81967221e-006, -1.48173713e-005, -2.9586372e-005, -0.999999821))
- mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
- Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.356056005, 0.801126003, 0.356056005))
- Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(4.05088663, -0.643760681, 0.00584411621, 0.866018832, -0.499996156, 1.77348545e-006, 0.499999464, 0.866023779, -3.45093431e-005, 1.5754078e-005, 3.11076874e-005, 0.999993443))
- ready = false
- function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
- local fp = it("Part")
- fp.formFactor = formfactor
- fp.Parent = parent
- fp.Reflectance = reflectance
- fp.Transparency = transparency
- fp.CanCollide = false
- fp.Locked=true
- fp.BrickColor = brickcolor
- fp.Name = name
- fp.Size = size
- fp.Position = Torso.Position
- NoOutline(fp)
- fp.Material="SmoothPlastic"
- fp:BreakJoints()
- return fp
- end
- function MagicCylinder(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
- local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
- prt.Anchored=true
- prt.CFrame=cframe
- msh=mesh("SpecialMesh",prt,"Head","",vt(0,0,0),vt(x1,y1,z1))
- game:GetService("Debris"):AddItem(prt,2)
- coroutine.resume(coroutine.create(function(Part,Mesh)
- for i=0,1,delay do
- swait()
- Part.CFrame=Part.CFrame
- Part.Transparency=i
- Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
- end
- Part.Parent=nil
- end),prt,msh)
- end
- function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
- local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
- prt.Anchored=true
- prt.CFrame=cframe
- msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
- game:GetService("Debris"):AddItem(prt,2)
- coroutine.resume(coroutine.create(function(Part,Mesh)
- for i=0,1,delay do
- swait()
- Part.CFrame=Part.CFrame
- Part.Transparency=i
- Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
- end
- Part.Parent=nil
- end),prt,msh)
- end
- function LaserBarrage(Prt,Parent)
- attack=true
- --so("BeamLockon",Prt,1,1)
- local efprt=part(3,Parent,0,0.5,BrickColor.new("Dark stone grey"),"Effect",vt(0.2,0.2,0.2))
- efprt.Anchored=true
- local efmsh=mesh("CylinderMesh",efprt,"","",vt(0,0,0),vt(1,1,1))
- spread=vt((math.random(0,0)+math.random())*0,(math.random(0,0)+math.random())*0,(math.random(0,0)+math.random())*0)*(Prt.Position-Mouse.Hit.p).magnitude/100
- --spread=vt(0,0,0)
- coroutine.resume(coroutine.create(function(Part,Mesh,Spreaded)
- game:GetService("Debris"):AddItem(Part,6)
- local TheHit=Mouse.Hit.p
- local MouseLook=cf((Prt.Position+TheHit)/2,TheHit+Spreaded)
- local hit,pos = rayCast(Prt.Position,MouseLook.lookVector,1000,Parent)
- so("Elec",Prt,0.2,1)
- local tefprt=part(3,workspace,0,1,BrickColor.new("Black"),"Effect",vt(0.2,0.2,0.2))
- tefprt.CFrame=cf(pos)
- MagicCircle(BrickColor.new("Dark stone grey"),cf(pos),0.5,0.5,0.5,0.5,0.5,0.5,0.04)
- so("Elec",tefprt,0.3,1)
- game:GetService("Debris"):AddItem(tefprt,3)
- Part.CFrame=CFrame.new((Prt.Position+pos)/2,pos)*angles(1.57,0,0)
- if(hit.Parent:findFirstChild("Humanoid")~= nil)then
- if hit.Parent:FindFirstChild("Humanoid") ~= nil and hit.Name ~= "Base" and hit.Parent.Name ~= Player.Name then
- hit.Parent.Humanoid:TakeDamage(50)
- end
- end
- local mag=(Prt.Position-pos).magnitude
- MagicCylinder(BrickColor.new("Dark stone grey"),Part.CFrame,1,mag*5,1,0.5,0,0.5,0.05)
- Part.Parent=nil
- end),efprt,efmsh,spread)
- end
- function shoot()
- if ready==true then
- attack=true
- ready = false
- LaserBarrage(Barrel,m)
- so("http://roblox.com/asset/?id=130767489",Barrel,1,1)
- so("http://roblox.com/asset/?id=151112832",Barrel,1,1)
- for i=0,1,0.1 do
- swait()
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-1)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-20),math.rad(-10),math.rad(0)),.3)
- RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, 0.3) * angles(math.rad(100), math.rad(0), math.rad(0)), 0.3)
- LW.C0 = clerp(LW.C0, CFrame.new(-.3, 0.4, -0.8) * angles(math.rad(120), math.rad(0), math.rad(30)), 0.3)
- RH.C0=clerp(RH.C0,cf(1,0,-0.5)*angles(math.rad(0),math.rad(90),math.rad(-10)),.3)
- LH.C0=clerp(LH.C0,cf(-1,-1,-0.5)*angles(math.rad(0),math.rad(-90),math.rad(70)),.3)
- handleweld.C0=clerp(handleweld.C0,cf(0,0,.5)*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
- end
- for i=0,1,0.1 do
- swait()
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-1)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(-10),math.rad(0)),.3)
- RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, 0.3) * angles(math.rad(80), math.rad(0), math.rad(0)), 0.3)
- LW.C0 = clerp(LW.C0, CFrame.new(-.3, 0.4, -0.8) * angles(math.rad(90), math.rad(0), math.rad(30)), 0.3)
- RH.C0=clerp(RH.C0,cf(1,0,-0.5)*angles(math.rad(0),math.rad(90),math.rad(-10)),.3)
- LH.C0=clerp(LH.C0,cf(-1,-1,-0.5)*angles(math.rad(0),math.rad(-90),math.rad(70)),.3)
- handleweld.C0=clerp(handleweld.C0,cf(0,0,.5)*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
- end
- attack=false
- end
- end
- mouse.Button1Down:connect(function()
- pcall(function()
- shoot()
- end)
- end)
- mouse.KeyDown:connect(function(k)
- k=k:lower()
- if k=='f' then
- if ready==false then
- ready=true
- attack=true
- elseif ready==true then
- ready=false
- attack=false
- end
- end
- end)
- local sine = 0
- local change = 1
- local val = 0
- while true do
- swait()
- sine = sine + change
- local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
- local velderp=RootPart.Velocity.y
- hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
- if equipped==true or equipped==false then
- if attack==false then
- idle=idle+1
- else
- idle=0
- end
- if idle>=500 then
- if attack==false then
- --Sheath()
- end
- end
- if RootPart.Velocity.y > 1 and hitfloor==nil then
- Anim="Jump"
- if attack==false then
- Humanoid.WalkSpeed = 16
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.3)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
- RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
- end
- elseif RootPart.Velocity.y < -1 and hitfloor==nil then
- Anim="Fall"
- if attack==false then
- Humanoid.WalkSpeed = 16
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.3)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
- RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
- end
- elseif torvel<1 and hitfloor~=nil then
- Anim="Idle"
- if attack==false then
- Humanoid.WalkSpeed = 16
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(20)),.3)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-20)),.3)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0.3) * angles(math.rad(70), math.rad(0), math.rad(0)), 0.3)
- LW.C0 = clerp(LW.C0, CFrame.new(-.3, 0.4, -0.8) * angles(math.rad(80), math.rad(0), math.rad(60)), 0.3)
- RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(70),math.rad(-5)),.3)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
- handleweld.C0=clerp(handleweld.C0,cf(0,0,.5)*angles(math.rad(5),math.rad(0),math.rad(0)),.3)
- end
- elseif torvel>2 and hitfloor~=nil then
- Anim="Walk"
- if attack==false then
- change=3
- Humanoid.WalkSpeed = 16
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(0)),.3)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0.3) * angles(math.rad(70), math.rad(0), math.rad(0)), 0.3)
- LW.C0 = clerp(LW.C0, CFrame.new(-.3, 0.4, -0.8) * angles(math.rad(80), math.rad(0), math.rad(60)), 0.3)
- RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
- handleweld.C0=clerp(handleweld.C0,cf(0,0,.5)*angles(math.rad(5),math.rad(0),math.rad(0)),.3)
- end
- end
- end
- if ready==true then
- Humanoid.WalkSpeed = 5
- RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-1)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
- Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(-10),math.rad(0)),.3)
- RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, 0.3) * angles(math.rad(80), math.rad(0), math.rad(0)), 0.3)
- LW.C0 = clerp(LW.C0, CFrame.new(-.3, 0.4, -0.8) * angles(math.rad(90), math.rad(0), math.rad(30)), 0.3)
- RH.C0=clerp(RH.C0,cf(1,0,-0.5)*angles(math.rad(0),math.rad(90),math.rad(-10)),.3)
- LH.C0=clerp(LH.C0,cf(-1,-1,-0.5)*angles(math.rad(0),math.rad(-90),math.rad(70)),.3)
- handleweld.C0=clerp(handleweld.C0,cf(0,0,.5)*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
- end
- end
- end)
- BStyle5.Name = "B Style 5"
- BStyle5.Parent = StyleMain
- BStyle5.BackgroundColor3 = Color3.new(1, 0, 1)
- BStyle5.Position = UDim2.new(0.613043487, 0, 0.684523821, 0)
- BStyle5.Size = UDim2.new(0, 130, 0, 44)
- BStyle5.Font = Enum.Font.SourceSans
- BStyle5.Text = "Epic Gun"
- BStyle5.TextColor3 = Color3.new(1, 0.333333, 0)
- BStyle5.TextSize = 18
- BStyle5.MouseButton:connect(function()
- me = game.Players.Humanoid
- if script.Parent.className ~= "HopperBin" then
- h = Instance.new("HopperBin")
- h.Parent = me.Backpack
- h.Name = "lolwut"
- script.Parent = h
- end
- sp = script.Parent
- rightarm = me.Character["Right Arm"]
- leftarm = me.Character["Left Arm"]
- hold = false
- using = false
- holdkey = false
- right = Instance.new("Weld")
- right.Parent = me.Character.Torso
- right.Part0 = nil
- right.Part1 = nil
- right.C1 = CFrame.fromEulerAnglesXYZ(-1.57,-0.4,0) * CFrame.new(-1,-0.5,0.1)
- left = Instance.new("Weld")
- left.Parent = me.Character.Torso
- left.Part0 = nil
- left.Part1 = nil
- left.C1 = CFrame.fromEulerAnglesXYZ(-1.4,0.5,0) * CFrame.new(0.55,-0.4,1.3)
- bulletcolors = {"Bright yellow", "Neon orange", "New Yeller"}
- gun = Instance.new("Model")
- gun.Parent = game.Lighting
- gun.Name = "Gun"
- handle = Instance.new("Part")
- handle.Parent = gun
- handle.formFactor = 0
- handle.Size = Vector3.new(1,1,1)
- handle.BrickColor = BrickColor.new("Black")
- mesh = Instance.new("SpecialMesh")
- mesh.Parent = handle
- mesh.MeshType = "Brick"
- mesh.Scale = Vector3.new(0.5,0.75,1.3)
- handle2 = Instance.new("Part")
- handle2.Parent = gun
- handle2.formFactor = 0
- handle2.Size = Vector3.new(1,1,1)
- handle2.BrickColor = BrickColor.new("Black")
- mesh2 = mesh:clone()
- mesh2.Parent = handle2
- mesh2.Scale = Vector3.new(0.6,3.6,0.75)
- handle3 = Instance.new("Part")
- handle3.Parent = gun
- handle3.formFactor = 0
- handle3.Size = Vector3.new(1,1,1)
- handle3.BrickColor = BrickColor.new("Black")
- mesh3 = mesh:clone()
- mesh3.Parent = handle3
- mesh3.Scale = Vector3.new(0.45,0.8,1.4)
- handle4 = Instance.new("Part")
- handle4.Parent = gun
- handle4.formFactor = 0
- handle4.Size = Vector3.new(1,1,1)
- handle4.BrickColor = BrickColor.new("Really black")
- mesh4 = Instance.new("CylinderMesh")
- mesh4.Parent = handle4
- mesh4.Scale = Vector3.new(0.3,0.1,0.3)
- hold = false
- function selected(mouse, key)
- right.Part0 = right.Parent
- right.Part1 = rightarm
- left.Part0 = left.Parent
- left.Part1 = leftarm
- left.C1 = CFrame.fromEulerAnglesXYZ(-1.4,0.5,0) * CFrame.new(0.55,-0.4,1.3)
- right.C1 = CFrame.fromEulerAnglesXYZ(-1.57,-0.4,0) * CFrame.new(-1,-0.5,0.1)
- left.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
- right.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
- gun.Parent = me.Character
- gunweld1 = Instance.new("Weld")
- gunweld1.Parent = rightarm
- gunweld1.Part0 = gunweld1.Parent
- gunweld1.Part1 = handle
- gunweld1.C1 = CFrame.fromEulerAnglesXYZ(0.4,0,0) * CFrame.new(0,1,0)
- gunweld2 = Instance.new("Weld")
- gunweld2.Parent = handle
- gunweld2.Part0 = gunweld2.Parent
- gunweld2.Part1 = handle2
- gunweld2.C1 = CFrame.fromEulerAnglesXYZ(-0.4,0,0) * CFrame.new(0,1,1.2)
- gunweld3 = Instance.new("Weld")
- gunweld3.Parent = handle2
- gunweld3.Part0 = gunweld3.Parent
- gunweld3.Part1 = handle3
- gunweld3.C1 = CFrame.fromEulerAnglesXYZ(-0.3,0,0) * CFrame.new(0,0.3,-0.9)
- gunweld4 = Instance.new("Weld")
- gunweld4.Parent = handle2
- gunweld4.Part0 = gunweld3.Parent
- gunweld4.Part1 = handle4
- gunweld4.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,1.751,0)
- mouse.Button1Down:connect(function()
- hold = true
- while hold == true do
- wait(0.04)
- local color = math.random(1, #bulletcolors)
- local pos = mouse.Hit.p + Vector3.new(math.random(-2,2),0,math.random(-2,2))
- local bullet = Instance.new("Part")
- bullet.Parent = workspace
- bullet.formFactor = 0
- bullet.Size = Vector3.new(1,1,1)
- bullet.BrickColor = BrickColor.new(bulletcolors[color])
- bullet.CanCollide = false
- bullet.Anchored = true
- bullet.CFrame = CFrame.new((handle4.Position + pos)/2, pos)
- local distance = (handle4.Position - pos).magnitude
- local bulletmesh = Instance.new("SpecialMesh")
- bulletmesh.Parent = bullet
- bulletmesh.MeshType = "Brick"
- bulletmesh.Scale = Vector3.new(0.2,0.2,distance)
- if mouse.Target ~= nil then
- local hu = mouse.Target.Parent:findFirstChild("Humanoid")
- if hu ~= nil then
- hu.Health = hu.Health - 5
- end
- end
- coroutine.resume(coroutine.create(function()
- left.C0 = left.C0 * CFrame.fromEulerAnglesXYZ(0.12,0,0)
- right.C0 = right.C0 * CFrame.fromEulerAnglesXYZ(0.12,0,0)
- wait()
- left.C0 = left.C0 * CFrame.fromEulerAnglesXYZ(-0.12,0,0)
- right.C0 = right.C0 * CFrame.fromEulerAnglesXYZ(-0.12,0,0)
- wait(0.03)
- bullet:remove()
- end))
- end
- end)
- mouse.Button1Up:connect(function()
- hold = false
- end)
- end
- function deselect()
- left.C0 = CFrame.new(0,0,0)
- right.C0 = CFrame.new(0,0,0)
- me.Character:makeJoints()
- wait()
- right.Part0 = nil
- right.Part1 = nil
- left.Part0 = nil
- left.Part1 = nil
- gun.Parent = game.Lighting
- me.Character:makeJoints()
- end
- sp.Selected:connect(selected)
- sp.Deselected:connect(deselect)
- end)
- BStyle6.Name = "B Style 6"
- BStyle6.Parent = StyleMain
- BStyle6.BackgroundColor3 = Color3.new(1, 0, 1)
- BStyle6.Position = UDim2.new(0.613043487, 0, 0.502976179, 0)
- BStyle6.Size = UDim2.new(0, 130, 0, 44)
- BStyle6.Font = Enum.Font.SourceSans
- BStyle6.Text = "Galik Gun"
- BStyle6.TextColor3 = Color3.new(1, 0.333333, 0)
- BStyle6.TextSize = 18
- BStyle6.MouseButton:connect(function()
- ModelName = "Galick gun"
- MainColor = BrickColor.new("Bright violet")
- SecondaryColor = BrickColor.new("Bright violet")
- function CreatePart(Part,Color,Size,Name,Parent)
- Part.BrickColor = Color
- Part.FormFactor = "Custom"
- Part.Size = Size
- Part.CanCollide = false
- Part.TopSurface = 0
- Part.BottomSurface = 0
- Part.CFrame = CFrame.new(0,10,0)
- Part.Name = Name
- Part.Parent = Parent
- end
- function Cylinder(Scale,Parent)
- Mesh = Instance.new("CylinderMesh")
- Mesh.Scale = Scale
- Mesh.Parent = Parent
- end
- function Sphere(Scale,Parent)
- Mesh = Instance.new("SpecialMesh")
- Mesh.MeshType = "Sphere"
- Mesh.Scale = Scale
- Mesh.Parent = Parent
- end
- function Glue(Part0,Part1,C0)
- Weld = Instance.new("Weld")
- Weld.Part0 = Part0
- Weld.Part1 = Part1
- Weld.C0 = C0
- Weld.Parent = Part1
- end
- Player = game.Players.yfc
- Char = Player.Character
- for i, v in pairs(Char:GetChildren()) do
- if v.Name == ModelName then
- v:remove()
- end
- end
- Humanoid = Char.Humanoid
- Head = Char.Head
- Torso = Char.Torso
- RightArm = Char["Right Arm"]
- LeftArm = Char["Left Arm"]
- RightLeg = Char["Right Leg"]
- LeftLeg = Char["Left Leg"]
- Neck = Instance.new("Weld")
- Neck.Part0 = Torso
- Neck.Part1 = Head
- Neck.C0 = CFrame.new(0,1.5,0)
- Neck.Parent = Torso
- RightShoulder = Torso["Right Shoulder"]
- LeftShoulder = Torso["Left Shoulder"]
- RightHip = Torso["Right Hip"]
- LeftHip = Torso["Left Hip"]
- Weapon = Instance.new("Model")
- Weapon.Name = ModelName
- Weapon.Parent = Char
- Spot = Instance.new("Part")
- Backpack = Player.Backpack
- for i, v in pairs(Backpack:GetChildren()) do
- if v.Name == ModelName then
- v:remove()
- end
- end
- HopperBin = Instance.new("HopperBin")
- HopperBin.Name = ModelName
- HopperBin.Parent = Backpack
- Damage = Instance.new("IntValue")
- Damage.Value = 15
- Damage.Name = "Damage"
- Damage.Parent = HopperBin
- script.Parent = HopperBin
- PlayerGui = Player.PlayerGui
- for i, v in pairs(PlayerGui:GetChildren()) do
- if v.Name == "Gui" then
- v:remove()
- end
- end
- Gui = Instance.new("ScreenGui")
- Gui.Name = "Gui"
- Gui.Parent = PlayerGui
- MaxEnergy = Instance.new("IntValue")
- MaxEnergy.Value = 100
- MaxEnergy.Name = "MaxEnergy"
- MaxEnergy.Parent = Gui
- Energy = Instance.new("IntValue")
- Energy.Value = 0
- Energy.Name = "Energy"
- Energy.Parent = Gui
- Bar = Instance.new("Frame")
- Bar.BackgroundColor = BrickColor.new(Color3.new(1,1,1))
- Bar.Size = UDim2.new(0.25,0,0.02,0)
- Bar.Position = UDim2.new(0.05,0,0.5,0)
- Bar.Name = "Bar"
- Bar.Parent = Gui
- BarTracking = Instance.new("Frame")
- BarTracking.BackgroundColor = BrickColor.new(Color3.new(0,153,204))
- BarTracking.Name = "BarTracking"
- BarTracking.Parent = Bar
- Attack = false
- Hold = false
- Damaging = false
- function onButton1Down()
- if Attack == false then
- Attack = true
- Damaging = false
- Damage.Value = 15
- Energy.Value = 0
- Hold = true
- Bp = Instance.new("BodyPosition")
- Bp.maxForce = Vector3.new(math.huge,math.huge,math.huge)
- Bp.position = Torso.Position
- Bp.Parent = Torso
- game.Debris:AddItem(Bp,2)
- Bg = Instance.new("BodyGyro")
- Bg.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
- Bg.cframe = Torso.CFrame
- Bg.Parent = Torso
- game.Debris:AddItem(Bg,2)
- for i=1, 4 do
- wait(0.0001)
- Neck.C0 = Neck.C0 * CFrame.Angles(0,math.rad(-10),0)
- end
- for i=1, 16 do
- wait(0.0001)
- RightShoulder.C0 = CFrame.new(1,0.5,0) * CFrame.Angles(0,math.pi/3,math.rad(i*5))
- LeftShoulder.C0 = CFrame.new(-0,0.5,0) * CFrame.Angles(0,math.pi/-1.5,math.rad(-i*5))
- end
- Ball = Instance.new("Part")
- CreatePart(Ball,SecondaryColor,Vector3.new(1,1,1),"Ball",Weapon)
- Ball.Transparency = 0.4
- Ball.CanCollide = false
- Sphere(Vector3.new(0.01,0.01,0.01),Ball)
- Glue(Torso,Ball,CFrame.new(1.5,0,-1))
- Ball2 = Instance.new("Part")
- CreatePart(Ball2,MainColor,Vector3.new(2.4,2.4,2.4),"Ball",Weapon)
- Ball2.Transparency = 0.4
- Ball2.CanCollide = false
- Sphere(Vector3.new(0.01,0.01,0.01),Ball2)
- Glue(Torso,Ball2,CFrame.new(1.5,0,-1))
- for i=1, 20 do
- wait(0.0001)
- if Hold == true then
- Damage.Value = Damage.Value + 1
- Ball.Mesh.Scale = Ball.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
- Ball2.Mesh.Scale = Ball2.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
- else
- end
- end
- game:GetService("Chat"):Chat(Head,"...",1)
- for i=1, 20 do
- wait(0.0001)
- if Hold == true then
- Damage.Value = Damage.Value + 1
- Ball.Mesh.Scale = Ball.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
- Ball2.Mesh.Scale = Ball2.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
- else
- end
- end
- game:GetService("Chat"):Chat(Head,"Me...",1)
- for i=1, 20 do
- wait(0.0001)
- if Hold == true then
- Damage.Value = Damage.Value + 1
- Ball.Mesh.Scale = Ball.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
- Ball2.Mesh.Scale = Ball2.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
- else
- end
- end
- game:GetService("Chat"):Chat(Head,"HA...",1)
- for i=1, 20 do
- wait(0.0001)
- if Hold == true then
- Damage.Value = Damage.Value + 1
- Ball.Mesh.Scale = Ball.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
- Ball2.Mesh.Scale = Ball2.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
- Ball.Reflectance = math.random(0,0.4)
- Ball2.Reflectance = math.random(0,0.6)
- else
- end
- end
- game:GetService("Chat"):Chat(Head,"MEE...",1)
- for i=1, 20 do
- wait(0.0001)
- if Hold == true then
- Damage.Value = Damage.Value + 1
- Ball.Mesh.Scale = Ball.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
- Ball2.Mesh.Scale = Ball2.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
- else
- end
- end
- game:GetService("Chat"):Chat(Head,"HAAAA!!!",1)
- for i=1, 4 do
- wait(0.0001)
- Neck.C0 = Neck.C0 * CFrame.Angles(0,math.rad(10),0)
- end
- Ball.Weld.C0 = CFrame.new(0,0,-2)
- Ball2.Weld.C0 = CFrame.new(0,0,-2)
- for i=1, 16 do
- wait(0.0001)
- RightShoulder.C0 = CFrame.new(1,0.5,0) * CFrame.Angles(0,math.pi/1.5,math.rad(i*5))
- LeftShoulder.C0 = CFrame.new(-1,0.5,0) * CFrame.Angles(0,math.pi/-1.5,math.rad(-i*5))
- end
- if Hold == true then
- Blast = Instance.new("Part")
- CreatePart(Blast,MainColor,Vector3.new(3,3,3),"Blast",Weapon)
- Blast.Transparency = 0.4
- Blast.CFrame = Torso.CFrame * CFrame.new(0,0,-2)
- Sphere(Vector3.new(1,1,1),Blast)
- Spot.CFrame = Torso.CFrame * CFrame.new(0,0,-400)
- Bp2 = Instance.new("BodyPosition")
- Bp2.maxForce = Vector3.new(math.huge,math.huge,math.huge)
- Bp2.position = Spot.Position
- Bp2.Parent = Blast
- game.Debris:AddItem(Blast,1)
- function onTouched(hit)
- Blast.Anchored = true
- Blast.Mesh.Scale = Blast.Mesh.Scale + Vector3.new(1,0.5,1)
- end
- Blast.Touched:connect(onTouched)
- function onTouched(hit)
- Human = hit.Parent:FindFirstChild("Humanoid")
- if Human ~= nil and Damaging == false and hit.Parent.Name ~= Player.Name then
- Damaging = true
- Human:TakeDamage(Damage.Value)
- end
- end
- Blast.Touched:connect(onTouched)
- for i=1, 20 do
- OldPos = Blast.Position
- wait(0.05)
- NewPos = Blast.Position
- Dist = (OldPos - NewPos).magnitude
- Line = Instance.new("Part")
- CreatePart(Line,MainColor,Vector3.new(3,Dist,3),"Line",Weapon)
- Line.Transparency = 0.4
- Line.CanCollide = true
- Line.Anchored = true
- Line.CFrame = CFrame.new(OldPos,NewPos) * CFrame.new(0,0,-Dist/2) * CFrame.Angles(math.rad(90),0,0)
- Cylinder(Vector3.new(1,1,1),Line)
- game.Debris:AddItem(Line,1)
- function onTouched(hit)
- Human = hit.Parent:FindFirstChild("Humanoid")
- if Human ~= nil and Damaging == false and hit.Parent.Name ~= Player.Name then
- Damaging = true
- Human:TakeDamage(Damage.Value)
- end
- end
- Line.Touched:connect(onTouched)
- end
- for i, v in pairs(Weapon:GetChildren()) do
- v:remove()
- end
- end
- for i, v in pairs(Weapon:GetChildren()) do
- v:remove()
- end
- RightShoulder.C0 = CFrame.new(1,0.5,0) * CFrame.Angles(0,math.pi/2,0)
- LeftShoulder.C0 = CFrame.new(-1,0.5,0) * CFrame.Angles(0,math.pi/-2,0)
- Attack = false
- end
- end
- function onButton1Up()
- Hold = false
- end
- function onSelected(mouse)
- mouse.Button1Down:connect(onButton1Down)
- mouse.Button1Up:connect(onButton1Up)
- end
- script.Parent.Selected:connect(onSelected)
- Spawn(function()
- while true do
- wait()
- BarTracking.Size = UDim2.new(Energy.Value/MaxEnergy.Value,0,1,0)
- end
- end)
- Spawn(function()
- while true do
- wait()
- if Hold == true then
- Energy.Value = Energy.Value + 1
- end
- end
- end)
- Spawn(function()
- while true do
- wait()
- if Energy.Value >= MaxEnergy.Value then
- Energy.Value = MaxEnergy.Value
- end
- end
- end)
- Spawn(function()
- while true do
- wait()
- if Attack == true then
- RightShoulder.DesiredAngle = 0
- LeftShoulder.DesiredAngle = 0
- end
- end
- end)
- end)
- BStyle7.Name = "B Style 7"
- BStyle7.Parent = StyleMain
- BStyle7.BackgroundColor3 = Color3.new(1, 0, 1)
- BStyle7.Position = UDim2.new(0.613043487, 0, 0.318452358, 0)
- BStyle7.Size = UDim2.new(0, 130, 0, 44)
- BStyle7.Font = Enum.Font.SourceSans
- BStyle7.Text = "Dubstep Gun"
- BStyle7.TextColor3 = Color3.new(1, 0.333333, 0)
- BStyle7.TextSize = 18
- BStyle7.MouseButton:connect(function()
- print'Courtsey of WeAreDevs_L042'
- do --CFrame lerp (Gui By WeAreDevs_L042)
- local function QuaternionFromCFrame(cf)
- local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
- local trace = m00 + m11 + m22
- if trace > 0 then
- local s = math.sqrt(1 + trace)
- local recip = 0.5/s
- return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
- else
- local i = 0
- if m11 > m00 then
- i = 1
- end
- if m22 > (i == 0 and m00 or m11) then
- i = 2
- end
- if i == 0 then
- local s = math.sqrt(m00-m11-m22+1)
- local recip = 0.5/s
- return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
- elseif i == 1 then
- local s = math.sqrt(m11-m22-m00+1)
- local recip = 0.5/s
- return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
- elseif i == 2 then
- local s = math.sqrt(m22-m00-m11+1)
- local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
- end
- end
- end
- local function QuaternionToCFrame(px, py, pz, x, y, z, w)
- local xs, ys, zs = x + x, y + y, z + z
- local wx, wy, wz = w*xs, w*ys, w*zs
- local xx = x*xs
- local xy = x*ys
- local xz = x*zs
- local yy = y*ys
- local yz = y*zs
- local zz = z*zs
- return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy))
- end
- function QuaternionSlerp(a, b, t)
- local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
- local startInterp, finishInterp;
- if cosTheta >= 0.0001 then
- if (1 - cosTheta) > 0.0001 then
- local theta = math.acos(cosTheta)
- local invSinTheta = 1/math.sin(theta)
- startInterp = math.sin((1-t)*theta)*invSinTheta
- finishInterp = math.sin(t*theta)*invSinTheta
- else
- startInterp = 1-t
- finishInterp = t
- end
- else
- if (1+cosTheta) > 0.0001 then
- local theta = math.acos(-cosTheta)
- local invSinTheta = 1/math.sin(theta)
- startInterp = math.sin((t-1)*theta)*invSinTheta
- finishInterp = math.sin(t*theta)*invSinTheta
- else
- startInterp = t-1
- finishInterp = t
- end
- end
- return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp
- end
- function clerp(a,b,t)
- local qa = {QuaternionFromCFrame(a)}
- local qb = {QuaternionFromCFrame(b)}
- local ax, ay, az = a.x, a.y, a.z
- local bx, by, bz = b.x, b.y, b.z
- local _t = 1-t
- return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
- end
- end
- plr = game:service'Players'.LocalPlayer
- char = plr.Character
- mouse = plr:GetMouse()
- humanoid = char:findFirstChild("Humanoid")
- torso = char:findFirstChild("Torso")
- head = char.Head
- ra = char:findFirstChild("Right Arm")
- la = char:findFirstChild("Left Arm")
- rl = char:findFirstChild("Right Leg")
- ll = char:findFirstChild("Left Leg")
- rs = torso:findFirstChild("Right Shoulder")
- ls = torso:findFirstChild("Left Shoulder")
- rh = torso:findFirstChild("Right Hip")
- lh = torso:findFirstChild("Left Hip")
- neck = torso:findFirstChild("Neck")
- rj = char:findFirstChild("HumanoidRootPart"):findFirstChild("RootJoint")
- anim = char:findFirstChild("Animate")
- if anim then
- anim:Destroy()
- end
- rootpart = char:findFirstChild("HumanoidRootPart")
- camera = workspace.CurrentCamera
- modelforparts = char:findFirstChild("ModelForParts") or Instance.new("Model", char)
- modelforparts.Name = "ModelForParts"
- function trailconnect(obj, wat)
- local trail = {}
- for i = 1, 4 do
- local p = Instance.new("Part")
- p.BrickColor = obj.BrickColor
- p.formFactor = "Custom"
- p.Size = Vector3.new(1,1,1)
- p.Locked = true
- p.Anchored = true
- p.CanCollide = false
- local mesh = Instance.new("CylinderMesh", p)
- mesh.Name = "Mesh"
- table.insert(trail,{p,0})
- end
- local lastpos = obj.Position
- local updatethis = 0
- local dontdothis = false
- game:service'RunService'.Stepped:connect(function()
- if wat == true then if dontdothis then return end
- for i,v in pairs(trail) do
- game:service'Debris':AddItem(obj, 0)
- table.remove(v, i)
- end
- dontdothis = true
- return
- end
- updatethis = ((updatethis) % 4) + 1
- local dstnc = (obj.Position - lastpos).magnitude
- trail[updatethis][1].Mesh.Scale = Vector3.new(.2,dstnc,.2)
- trail[updatethis][1].Parent = obj.Parent
- trail[updatethis][1].CFrame = CFrame.new((obj.Position + lastpos)/2,obj.Position) * CFrame.Angles(math.pi/2, 0, 0)
- trail[updatethis][2] = 0
- for i,v in pairs(trail) do
- v[2] = v[2] + .15
- v[1].Transparency = v[2]
- end
- lastpos = obj.Position
- end)
- end
- do --rayCast
- function rayCast(startpos, Speed, Gravity, Dmg, color)
- local ran,err = ypcall(function()
- local rayPart = Instance.new("Part")
- rayPart.Name = "RayPart"
- rayPart.BrickColor = BrickColor.new(color)
- rayPart.Anchored = true
- rayPart.CanCollide = false
- rayPart.Locked = true
- rayPart.FormFactor = "Custom"
- rayPart.TopSurface = Enum.SurfaceType.Smooth
- rayPart.BottomSurface = Enum.SurfaceType.Smooth
- rayPart.Size = Vector3.new(.2, 50, .2)
- rayPart:breakJoints()
- Instance.new("CylinderMesh", rayPart)
- local fire = Instance.new("Fire", rayPart)
- fire.Color = rayPart.BrickColor.Color
- fire.SecondaryColor = rayPart.BrickColor.Color
- fire.Heat = 0
- fire.Size = 10
- local pl = Instance.new("PointLight", rayPart)
- pl.Color = Color3.new(rayPart.BrickColor.r/1.5, rayPart.BrickColor.g/1.5, rayPart.BrickColor.b/1.5)
- pl.Range = 18
- local hitobj = false
- local bulletposition = startpos.Position
- rayPart.CFrame = startpos.CFrame
- trailconnect(rayPart, hitobj)
- local bulletvelocity = (Vector3.new(math.random(-2,2), math.random(-2,2), math.random(-2,2)))+( mouse.Hit.p - bulletposition).unit*Speed
- local bulletlastposition = bulletposition
- coroutine.resume(coroutine.create(function()
- while true do
- local dt = wait()
- bulletlastposition = bulletposition
- bulletvelocity = bulletvelocity + (Vector3.new(0, -3.81*Gravity, 0)*dt)
- bulletposition = bulletposition + (bulletvelocity*dt)
- local ray = Ray.new(bulletlastposition, (bulletposition - bulletlastposition))
- local hit, hitposition = workspace:FindPartOnRayWithIgnoreList( ray, {char, modelforparts} )
- if (torso.Position - rayPart.Position).magnitude > 840 then
- rayPart:Destroy()
- hitobj = true
- break
- end
- if hit then
- hitobj = true
- local damage = math.random(Dmg, Dmg+6)
- if hit.Parent:findFirstChild("Humanoid") ~= nil then
- hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health - damage
- elseif hit.Parent:IsA("Hat") and hit.Parent.Parent:findFirstChild("Humanoid") then
- hit.Parent.Parent.Humanoid.Health = hit.Parent.Parent.Humanoid.Health - damage
- end
- local boom = Instance.new("Part", modelforparts)
- boom.BrickColor = rayPart.BrickColor
- boom.Anchored = true
- boom.FormFactor = "Custom"
- boom.Size = Vector3.new(1,1,1)
- boom.CanCollide = false
- boom.Transparency = 0.25
- boom.CFrame = CFrame.new(hitposition.x, hitposition.y, hitposition.z)
- boom.TopSurface = 0
- boom.BottomSurface = 0
- local sphere = Instance.new("SpecialMesh", boom)
- sphere.MeshType = "Sphere"
- local pl = Instance.new("PointLight", boom)
- pl.Color = Color3.new(boom.BrickColor.r/1.5, boom.BrickColor.g/1.5, boom.BrickColor.b/1.5)
- pl.Range = 20
- for ye = 0, 8 do
- local lite = Instance.new("Part", boom)
- lite.FormFactor = "Custom"
- lite.Size = Vector3.new(.2, 1.5, .2)
- lite.BrickColor = boom.BrickColor
- lite.CanCollide = false
- lite.TopSurface = 0
- lite.Anchored = false
- lite.BottomSurface = 0
- lite.Position = boom.Position + Vector3.new(math.random(-10, 10), math.random(6,15), math.random(-10, 10))
- end
- for i = 0, 20, 2.5 do
- sphere.Scale = sphere.Scale + Vector3.new(i,i,i)
- boom.Transparency = boom.Transparency + i/60
- pl.Range = pl.Range + i/15
- wait()
- end
- boom:Destroy()
- for i,v in pairs(workspace:children()) do
- if v:IsA("Model") and v:findFirstChild("Humanoid") then
- if v:findFirstChild("Head") and v:findFirstChild("Torso") then
- if (v:findFirstChild("Torso").Position - boom.Position).magnitude < 16 and v.Name ~= char.Name then
- v:findFirstChild("Humanoid"):TakeDamage(math.random(Dmg+2,Dmg+6))
- end
- end
- end
- if v and v:IsA("Part") and v.Name ~= "Base" then
- if (v.Position - boom.Position).magnitude < 16 then
- v:BreakJoints()
- v.TopSurface = 0
- v.BottomSurface = 0
- v.LeftSurface = 0
- v.RightSurface = 0
- v.FrontSurface = 0
- v.BackSurface = 0
- v.Anchored = false
- end
- end
- end
- pcall(function()
- bulletposition = hitposition
- rayPart.CFrame = CFrame.new(bulletposition, bulletposition+bulletvelocity) * CFrame.Angles(math.pi/2, 0, 0)
- rayPart:Destroy()
- end)
- break
- end
- rayPart.CFrame = CFrame.new(bulletposition, bulletposition+bulletvelocity) * CFrame.Angles(math.pi/2, 0, 0)
- rayPart.Parent = modelforparts
- end
- end))
- for i = 70, 65, -1.5 do
- camera.FieldOfView = i
- wait()
- end
- for i = 65, 70, 2.5 do
- camera.FieldOfView = i
- wait()
- end
- end)
- if err then
- print(err)
- end
- end
- end
- charge = 100
- plrgui = game:service'Players'.LocalPlayer:findFirstChild("PlayerGui")
- local statusgui = Instance.new("ScreenGui", plrgui)
- local mainframe = Instance.new("Frame", statusgui)
- mainframe.Size = UDim2.new(0, 200, 0, 200)
- mainframe.Position = UDim2.new(.75, 0, .75, 0)
- mainframe.Style = 3
- local image = Instance.new("ImageLabel", mainframe)
- image.Size = UDim2.new(1, 0, .47, 0)
- image.Position = UDim2.new(0, 0, .235, 0)
- image.BackgroundTransparency = 1
- image.Image = "rbxassetid://109550704"
- local chargetext = Instance.new("TextLabel", mainframe)
- chargetext.FontSize = "Size18"
- chargetext.Size = UDim2.new(1, 0, .95, 0)
- chargetext.TextYAlignment = "Bottom"
- chargetext.BackgroundTransparency = 1
- chargetext.TextColor3 = Color3.new(1,1,1)
- game:service'RunService'.Stepped:connect(function()
- chargetext.Text = math.floor(charge).."%"
- end)
- local rm = Instance.new("Weld", torso)
- rm.C0 = CFrame.new(1.5, 0.5, 0)
- rm.C1 = CFrame.new(0, 0.5, 0)
- rm.Part0 = torso
- rm.Part1 = ra
- local lm = Instance.new("Weld", torso)
- lm.C0 = CFrame.new(-1.5, 0.5, 0)
- lm.C1 = CFrame.new(0, 0.5, 0)
- lm.Part0 = torso
- lm.Part1 = la
- sound = Instance.new("Sound", head)
- sound.Volume = 1
- sound.SoundId = "rbxassetid://145197148"
- sound.Looped = true
- dancemode = true
- debounceofsprint = false
- --create func
- function part(parent, size, color, formfactor, collide, transparency)
- if transparency == nil then transparency=0 end
- if collide == nil then collide=false end
- if formfactor == nil then formfactor="Custom" end
- local p = Instance.new("Part", parent)
- p.FormFactor = formfactor
- p.CanCollide = collide
- p.Size = size
- p.Locked = true
- p.Transparency = transparency
- p.Position = torso.Position + Vector3.new(0, 1, 0)
- p.BrickColor = color
- p.FrontSurface = "SmoothNoOutlines"
- p.BackSurface = "SmoothNoOutlines"
- p.LeftSurface = "SmoothNoOutlines"
- p.BottomSurface = "SmoothNoOutlines"
- p.TopSurface = "SmoothNoOutlines"
- p.RightSurface = "SmoothNoOutlines"
- return p
- end
- function wedge(parent, size, color, formfactor, collide, transparency)
- if transparency==nil then transparency=0 end
- if collide==nil then collide=false end
- if formfactor==nil then formfactor="Custom" end
- local p = Instance.new("WedgePart", parent)
- p.FormFactor = formfactor
- p.CanCollide = collide
- p.Size = size
- p.Locked = true
- p.Position = torso.Position
- p.BrickColor = color
- p.FrontSurface = "SmoothNoOutlines"
- p.BackSurface = "SmoothNoOutlines"
- p.LeftSurface = "SmoothNoOutlines"
- p.BottomSurface = "SmoothNoOutlines"
- p.TopSurface = "SmoothNoOutlines"
- p.RightSurface = "SmoothNoOutlines"
- return p
- end
- function weld(part0, part1, c0, parent, c1)
- if parent == nil then parent=char end
- if c1 == nil then c1=CFrame.new() end
- local wel = Instance.new("Weld", parent)
- wel.Part0 = part0
- wel.Part1 = part1
- wel.C0 = c0
- wel.C1 = c1
- return wel
- end
- function specialmesh(parent, meshType, scale, meshId)
- if meshId==nil then meshId="" end
- local mesh = Instance.new("SpecialMesh", parent)
- mesh.Scale = scale
- mesh.MeshType = meshType
- mesh.MeshId = meshId
- return mesh
- end
- ----------------------------------------------------------------------------------------------------------
- --function part(parent, size, color, formfactor, collide, transparency)
- --function weld(part0, part1, c0, parent, c1)
- ----------------------------------------------------------------------------------------------------------
- function animatehuman(animationid, object)
- local animation = object:findFirstChild("Humanoid"):LoadAnimation(animationid)
- animation:Play()
- end
- local danceAnim = Instance.new("Animation", char)
- danceAnim.AnimationId = "http://www.roblox.com/asset/?id=93648331"
- danceAnim.Name = "Dance"
- ----------------------------------------------------------------------------------------------------------
- local main = Instance.new("Part", char)
- main.FormFactor = "Custom"
- main.CanCollide = false
- main.Size = Vector3.new(.75, 1, 1.2)
- main.Locked = true
- main.BrickColor = BrickColor.new("White")
- main.TopSurface = 0
- main.BottomSurface = 0
- main.Position = torso.Position
- main:BreakJoints()
- local weld1 = weld(main, ra, CFrame.new(), char, CFrame.new(0, -.8, -.6))
- local speaker = Instance.new("Part", char)
- speaker.FormFactor = "Custom"
- speaker.CanCollide = false
- speaker.Size = Vector3.new(1.5, .25, 1.4)
- speaker.Locked = true
- speaker.BrickColor = BrickColor.new("White")
- speaker.TopSurface = 0
- speaker.BottomSurface = 0
- speaker.Position = torso.Position
- speaker:BreakJoints()
- local weld2 = weld(speaker, main, CFrame.new(), char, CFrame.new(-.25, -1.7, .6))
- local speaker2 = Instance.new("Part", char)
- speaker2.FormFactor = "Custom"
- speaker2.CanCollide = false
- speaker2.Size = Vector3.new(1, .25, 2)
- speaker2.Locked = true
- speaker2.BrickColor = BrickColor.new("White")
- speaker2.TopSurface = 0
- speaker2.BottomSurface = 0
- speaker2.Position = torso.Position
- speaker2:BreakJoints()
- local weld3 = weld(speaker2, main, CFrame.new(), char, CFrame.new(0, -1.7, -.2))
- local main2 = Instance.new("Part", char)
- main2.FormFactor = "Custom"
- main2.CanCollide = false
- main2.Size = Vector3.new(.751, 1, .6)
- main2.Locked = true
- main2.BrickColor = BrickColor.new("White")
- main2.TopSurface = 0
- main2.BottomSurface = 0
- main2.Position = torso.Position
- main2:BreakJoints()
- local weld4 = weld(main2, ra, CFrame.new(), char, CFrame.new(0, 0, -.9))
- local main3 = Instance.new("Part", char)
- main3.FormFactor = "Custom"
- main3.CanCollide = false
- main3.Size = Vector3.new(.751, 1.45, 1)
- main3.Locked = true
- main3.BrickColor = BrickColor.new("White")
- main3.TopSurface = 0
- main3.BottomSurface = 0
- main3.Position = torso.Position
- main3:BreakJoints()
- local weld5 = weld(main3, ra, CFrame.new(), char, CFrame.new(0, -1.6, -.9))
- local main4 = Instance.new("Part", char)
- main4.FormFactor = "Custom"
- main4.CanCollide = false
- main4.Size = Vector3.new(1, .76, 1)
- Instance.new("CylinderMesh", main4)
- main4.Locked = true
- main4.BrickColor = BrickColor.new("Black")
- main4.TopSurface = 0
- main4.BottomSurface = 0
- main4.Position = torso.Position
- main4:BreakJoints()
- local weld6 = weld(main4, main, CFrame.new(), char, CFrame.new(0, -.15, -.5)*CFrame.Angles(math.pi/2, 0, math.pi/2))
- local speaker3 = Instance.new("Part", char)
- speaker3.FormFactor = "Custom"
- speaker3.CanCollide = false
- speaker3.Size = Vector3.new(1.5, .5, 1.4)
- speaker3.Locked = true
- speaker3.BrickColor = BrickColor.new("Yellow")
- speaker3.TopSurface = 0
- speaker3.BottomSurface = 0
- speaker3.Position = torso.Position
- speaker3:BreakJoints()
- local welds1 = weld(speaker3, main, CFrame.new(), char, CFrame.new(-.25, -2.2, .6))
- local speaker4 = Instance.new("Part", char)
- speaker4.FormFactor = "Custom"
- speaker4.CanCollide = false
- speaker4.Size = Vector3.new(1, .5, 2)
- speaker4.Locked = true
- speaker4.BrickColor = BrickColor.new("White")
- speaker4.TopSurface = 0
- speaker4.BottomSurface = 0
- speaker4.Position = torso.Position
- speaker4:BreakJoints()
- local welds2 = weld(speaker4, main, CFrame.new(), char, CFrame.new(0, -2.205, -.2))
- local speaker5 = Instance.new("Part", char)
- speaker5.FormFactor = "Custom"
- speaker5.CanCollide = false
- speaker5.Size = Vector3.new(1.4, .4, 1.3)
- speaker5.Locked = true
- speaker5.BrickColor = BrickColor.new("Black")
- speaker5.TopSurface = 0
- speaker5.BottomSurface = 0
- speaker5.Position = torso.Position
- speaker5:BreakJoints()
- local welds3 = weld(speaker5, main, CFrame.new(), char, CFrame.new(-.25, -2, .6))
- local speaker6 = Instance.new("Part", char)
- speaker6.FormFactor = "Custom"
- speaker6.CanCollide = false
- speaker6.Size = Vector3.new(.9, .4, 1.9)
- speaker6.Locked = true
- speaker6.BrickColor = BrickColor.new("Black")
- speaker6.TopSurface = 0
- speaker6.BottomSurface = 0
- speaker6.Position = torso.Position
- speaker6:BreakJoints()
- local welds4 = weld(speaker6, main, CFrame.new(), char, CFrame.new(0, -2, -.2))
- local support = Instance.new("Part", char)
- support.FormFactor = "Custom"
- support.CanCollide = false
- support.Size = Vector3.new(.3, .4, .6)
- support.Locked = true
- support.BrickColor = BrickColor.new("Black")
- support.TopSurface = 0
- support.BottomSurface = 0
- support.Position = torso.Position
- support:BreakJoints()
- local welds5 = weld(support, main, CFrame.new(), char, CFrame.new(0, -1.5, -.4))
- debounce = false
- function stopsound()
- if debounce then return end
- if not sound.IsPlaying then return end
- sound:stop()
- debounce = true
- local dancebro = Instance.new("StringValue", game:service'Lighting')
- dancebro.Name = ('STOPDANCING'..plr.Name)
- game:service'Debris':AddItem(dancebro, 1)
- coroutine.wrap(function()
- while not sound.IsPlaying do
- if charge <= 100 then
- charge = charge + .1
- wait()
- elseif charge > 100 then
- charge = 100
- break
- end
- end
- end)()
- wait(.1)
- debounce = false
- end
- mouse.Button1Down:connect(function(mous)
- if debounceofsprint then return end
- if sound.IsPlaying then return end
- if debounce then return end
- sound:play()
- for i = 70, 55, -.35 do
- if not sound.IsPlaying then debounce = true camera.FieldOfView = 70 return end
- camera.FieldOfView = i
- wait()
- end
- for i = 65, 70, 2.5 do
- if not sound.IsPlaying then debounce = true camera.FieldOfView = 70 return end
- camera.FieldOfView = i
- wait()
- end
- if debounce then debounce = false return end
- if dancemode then
- for i,v in pairs(workspace:children()) do
- if not sound.IsPlaying then break end
- coroutine.wrap(function()
- if v:IsA("Model") and v:findFirstChild("Humanoid") and v.Name ~= char.Name and v:findFirstChild("ModelForParts") == nil and v:findFirstChild("Torso") and (v:findFirstChild("Torso").Position - head.Position).magnitude < 30 then
- danceAnimClone = danceAnim:clone()
- danceAnimClone.Parent = v
- danceAnimClone.AnimationId = "http://www.roblox.com/asset/?id=93648331"
- wait()
- NLS([[
- function animatehuman(animationid, object)
- local animation = object:findFirstChild("Humanoid"):LoadAnimation(animationid)
- animation:Play()
- end
- while wait(.5) do
- if game:service'Lighting':findFirstChild("STOPDANCING]]..plr.Name..[[") and game:service'Lighting':findFirstChild("STOPDANCING]]..plr.Name..[["):IsA("StringValue") then game:service'Debris':AddItem(script.Parent:findFirstChild("DancingAnimation"), 5) break end
- animatehuman(script.Parent:findFirstChild("DancingAnimation"), script.Parent)
- end
- ]], v)
- end
- end)()
- end
- end
- coroutine.wrap(function()
- while sound.IsPlaying do
- if charge <= 1 then
- if debounce then break end
- if not sound.IsPlaying then break end
- sound:stop()
- debounce = true
- chargetext.TextColor3 = Color3.new(1,0,0)
- dancebro = Instance.new("StringValue", game:service'Lighting')
- dancebro.Name = ('STOPDANCING'..plr.Name)
- game:service'Debris':AddItem(dancebro, 1)
- coroutine.wrap(function()
- repeat wait() until charge >= 10
- debounce = false
- chargetext.TextColor3 = Color3.new(1,1,1)
- end)()
- coroutine.wrap(function()
- while not sound.IsPlaying do
- if charge <= 100 then
- charge = charge + .1
- wait()
- elseif charge > 100 then
- charge = 100
- break
- end
- end
- end)()
- else
- charge = charge - .08
- wait()
- end
- end
- end)()
- coroutine.wrap(function()
- local ran,err = ypcall(function()
- while sound.IsPlaying and Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude <= 20 do
- if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude >= 20 then stopsound() break end
- if not sound.IsPlaying then break end
- rayCast(speaker, 1250, 0, 5, "Bright yellow")
- wait(.35)
- if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude >= 20 then stopsound() break end
- if not sound.IsPlaying then break end
- rayCast(speaker, 1250, 0, 5, "Deep Orange")
- wait(.95)
- if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude >= 20 then stopsound() break end
- if not sound.IsPlaying then break end
- rayCast(speaker, 1250, 0, 5, "Bright bluish green")
- wait(.55)
- if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude >= 20 then stopsound() break end
- if not sound.IsPlaying then break end
- rayCast(speaker, 1250, 0, 5, "Deep orange")
- wait(.4)
- if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude >= 20 then stopsound() break end
- if not sound.IsPlaying then break end
- rayCast(speaker, 1250, 0, 5, "Bright bluish green")
- local pl = Instance.new("PointLight", torso)
- pl.Color = Color3.new(153/255/1.25, 102/255/1.25, 204/255/1.25)
- pl.Range = 30
- pl.Brightness = 0.7
- game:service'Debris':AddItem(pl, .3)
- wait(.45)
- if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude >= 20 then stopsound() break end
- if not sound.IsPlaying then break end
- rayCast(speaker, 1250, 0, 5, "Bright yellow")
- wait(.75)
- end
- end) if err then print(err) end
- end)()
- end)
- mouse.Button1Up:connect(function(mous)
- stopsound()
- end)
- ctrl = false
- mouse.KeyDown:connect(function(k)
- if string.byte(k) == 50 then
- ctrl = true
- humanoid.WalkSpeed = 8
- end
- if string.byte(k) == 48 then
- humanoid.WalkSpeed = 28
- end
- end)
- mouse.KeyUp:connect(function(k)
- if string.byte(k) == 50 then
- ctrl = false
- humanoid.WalkSpeed = 16
- end
- if string.byte(k) == 48 then
- humanoid.WalkSpeed = 16
- if ctrl then
- humanoid.WalkSpeed = 8
- end
- end
- end)
- humanoid.Died:connect(function()
- deathpos = torso.Position
- WorkModel = Instance.new("Model", workspace)
- WorkModel.Name = " "
- wait(1/60)
- humanoid.Parent = nil
- if torso then
- local Head = char:FindFirstChild("Head")
- if Head then
- local Neck = Instance.new("Weld")
- Neck.Name = "Neck"
- Neck.Part0 = torso
- Neck.Part1 = Head
- Neck.C0 = CFrame.new(0, 1.5, 0)
- Neck.C1 = CFrame.new()
- Neck.Parent = torso
- end
- local Limb = char:FindFirstChild("Right Arm")
- if Limb then
- Limb.CFrame = torso.CFrame * CFrame.new(1.5, 0, 0)
- local Joint = Instance.new("Glue")
- Joint.Name = "RightShoulder"
- Joint.Part0 = torso
- Joint.Part1 = Limb
- Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- Joint.Parent = torso
- local B = Instance.new("Part")
- B.TopSurface = 0
- B.BottomSurface = 0
- B.formFactor = "Symmetric"
- B.Size = Vector3.new(1, 1, 1)
- B.Transparency = 1
- B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
- B.Parent = char
- B.CanCollide = false
- local W = Instance.new("Weld")
- W.Part0 = Limb
- W.Part1 = B
- W.C0 = CFrame.new(0, -0.5, 0)
- W.Parent = Limb
- end
- local Limb = char:FindFirstChild("Left Arm")
- if Limb then
- Limb.CFrame = torso.CFrame * CFrame.new(-1.5, 0, 0)
- local Joint = Instance.new("Glue")
- Joint.Name = "LeftShoulder"
- Joint.Part0 = torso
- Joint.Part1 = Limb
- Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- Joint.Parent = torso
- local B = Instance.new("Part")
- B.TopSurface = 0
- B.BottomSurface = 0
- B.formFactor = "Symmetric"
- B.Size = Vector3.new(1, 1, 1)
- B.Transparency = 1
- B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
- B.Parent = char
- B.CanCollide = false
- local W = Instance.new("Weld")
- W.Part0 = Limb
- W.Part1 = B
- W.C0 = CFrame.new(0, -0.5, 0)
- W.Parent = Limb
- end
- local Limb = char:FindFirstChild("Right Leg")
- if Limb then
- Limb.CFrame = torso.CFrame * CFrame.new(0.5, -2, 0)
- local Joint = Instance.new("Glue")
- Joint.Name = "RightHip"
- Joint.Part0 = torso
- Joint.Part1 = Limb
- Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
- Joint.Parent = torso
- local B = Instance.new("Part")
- B.TopSurface = 0
- B.BottomSurface = 0
- B.formFactor = "Symmetric"
- B.Size = Vector3.new(1, 1, 1)
- B.Transparency = 1
- B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
- B.Parent = char
- B.CanCollide = false
- local W = Instance.new("Weld")
- W.Part0 = Limb
- W.Part1 = B
- W.C0 = CFrame.new(0, -0.5, 0)
- W.Parent = Limb
- end
- local Limb = char:FindFirstChild("Left Leg")
- if Limb then
- Limb.CFrame = torso.CFrame * CFrame.new(-0.5, -2, 0)
- local Joint = Instance.new("Glue")
- Joint.Name = "LeftHip"
- Joint.Part0 = torso
- Joint.Part1 = Limb
- Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
- Joint.Parent = torso
- local B = Instance.new("Part")
- B.TopSurface = 0
- B.BottomSurface = 0
- B.formFactor = "Symmetric"
- B.Size = Vector3.new(1, 1, 1)
- B.Transparency = 1
- B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
- B.Parent = char
- B.CanCollide = false
- local W = Instance.new("Weld")
- W.Part0 = Limb
- W.Part1 = B
- W.C0 = CFrame.new(0, -0.5, 0)
- W.Parent = Limb
- end
- for blood = 0, 3 do
- local blood = Instance.new("Part", workspace)
- blood.BrickColor = BrickColor.Red()
- blood.FormFactor = "Custom"
- blood.Size = Vector3.new(.2,.2,.2)
- blood.Anchored = true
- blood.TopSurface = "Smooth"
- blood.BackSurface = "Smooth"
- local bloodmesh = Instance.new("CylinderMesh", blood)
- bloodmesh.Scale = Vector3.new(3, 0, 3)
- local rayzb = Ray.new(torso.Position, Vector3.new(0, -20, 0) + Vector3.new(math.random(-2, 2), 0, math.random(-2, 2)))
- local hitzb, hitposb = workspace:findPartOnRay(rayzb, char)
- if hitzb then
- blood.CFrame = CFrame.new(hitposb.x,hitposb.y,hitposb.z)
- blood.CFrame = blood.CFrame * CFrame.new(0, .05, 0)
- coroutine.wrap(function()
- for cframe = 0, math.random(16, 24) do
- bloodmesh.Scale = bloodmesh.Scale + Vector3.new(.45, 0, .45)
- wait()
- end
- end)()
- elseif not hitzb then
- blood:Destroy()
- end
- end
- local BP = Instance.new("BodyPosition", torso)
- BP.maxForce = Vector3.new(1,1,1)/0
- BP.position = deathpos
- for i,v in pairs(char:children()) do
- if v:IsA("Part") then v.Parent = WorkModel end
- end
- wait(.3)
- BP:Destroy()
- end
- end)
- local rlegm = Instance.new("Motor", torso)
- rlegm.C0 = CFrame.new(0.5, -1, 0)
- rlegm.C1 = CFrame.new(0, 1, 0)
- rlegm.Part0 = torso
- rlegm.Part1 = rl
- rlegm.Name = "Right Hip"
- local llegm = Instance.new("Motor", torso)
- llegm.C0 = CFrame.new(-0.5, -1, 0)
- llegm.C1 = CFrame.new(0, 1, 0)
- llegm.Part0 = torso
- llegm.Part1 = ll
- llegm.Name = "Left Hip"
- neck.C0 = CFrame.new(0, 1, 0)
- neck.C1 = CFrame.new(0, -0.5, 0)
- rj.C0 = CFrame.new(0, -1, 0)
- rj.C1 = CFrame.new(0, -1, 0)
- rsc0 = rm.C0
- lsc0 = lm.C0
- neckc0 = neck.C0
- rootc0 = rj.C0
- llc0 = llegm.C0
- rlc0 = rlegm.C0
- speed = 0.4
- angle = 0
- anglespeed = 0
- mvmnt = 0
- game:service'RunService'.RenderStepped:connect(function()
- angle = (angle % 100) + anglespeed/10
- mvmnt = math.pi * math.sin(math.pi*2/100*(angle*10))
- local rscf = rsc0
- local lscf = lsc0
- local rlcf = rlc0
- local llcf = llc0
- local rjcf = rootc0
- local ncf = neckc0
- local rayz = Ray.new(rootpart.Position, Vector3.new(0, -4.1, 0))
- local hitz, enz = workspace:findPartOnRay(rayz, char)
- --math.asin(mouse.UnitRay.Direction.y)
- ncf = neckc0 * CFrame.Angles(camera.CoordinateFrame.lookVector.y, 0, 0)
- rscf = rsc0 * CFrame.new(-.55, 0, .35) * CFrame.Angles(camera.CoordinateFrame.lookVector.y+math.pi/2, 0, 0)
- lscf = lsc0 * CFrame.new(.85, 0, -.65) * CFrame.Angles(camera.CoordinateFrame.lookVector.y+math.pi/2, 0, math.rad(45))
- if not hitz then
- ncf = neckc0 * CFrame.Angles(math.pi/18, 0, 0)
- rscf = rsc0 * CFrame.new(-.45, 0, -.75) * CFrame.Angles(math.pi/5+math.pi/18, 0, math.rad(-70))
- lscf = lsc0 * CFrame.new(.35, 0, 0) * CFrame.Angles(math.pi/3.5+math.pi/18, 0, 0)
- rjcf = rootc0 * CFrame.Angles(-math.pi/32, 0, 0)
- rlcf = rlc0 * CFrame.new(0, 0.7, -0.5) * CFrame.Angles(-math.pi/14, 0, 0)
- llcf = llc0 * CFrame.Angles(-math.pi/20, 0, 0)
- elseif humanoid.Sit then
- ncf = neckc0 * CFrame.Angles(0, 0, 0)
- rjcf = rootc0 * CFrame.new(0, -.2, 0)
- rlcf = rlc0 * CFrame.Angles(math.pi/2, 0, math.rad(7.5))
- llcf = llc0 * CFrame.Angles(math.pi/2, 0, -math.rad(7.5))
- if sprinting then
- debounceofsprint = false
- sprinting = false
- end
- elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude <= 2 then
- speed = 0.3
- if ctrl then
- rjcf = rootc0 * CFrame.new(0, -1.25, 0)
- llcf = llc0 * CFrame.new(0, 0, -.45) * CFrame.Angles(-math.pi/2.2, 0, 0)
- rlcf = rlcf * CFrame.new(0, 1.25, -.85)
- else
- rjcf = rootc0
- rlcf = rlc0 * CFrame.Angles(-math.rad(.5), 0, math.rad(1.5))
- llcf = llc0 * CFrame.Angles(math.rad(1.5), 0, -math.rad(1.5))
- end
- elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude <= 20 then
- if not humanoid.Sit then
- anglespeed = 3
- if ctrl then
- anglespeed = 3
- ncf = neckc0 * CFrame.Angles(camera.CoordinateFrame.lookVector.y+math.pi/18, 0, 0)
- rjcf = rootc0 * CFrame.new(0, -.35, 0) * CFrame.Angles(-math.pi/18, 0, 0)
- rscf = rsc0 * CFrame.new(-.55, 0, .35) * CFrame.Angles(camera.CoordinateFrame.lookVector.y+math.pi/2+math.pi/18, 0, 0)
- lscf = lsc0 * CFrame.new(.85, 0, -.65) * CFrame.Angles(camera.CoordinateFrame.lookVector.y+math.pi/2+math.pi/18, 0, math.rad(45))
- llcf = llc0 * CFrame.new(0, .45, -.35) * CFrame.Angles(math.pi/18 - math.sin(angle)*.45, 0, 0)
- rlcf = rlcf * CFrame.new(0, .45, -.35) * CFrame.Angles(math.pi/18 + math.sin(angle)*.45, 0, 0)
- else
- rjcf = rootc0
- rlcf = rlc0 * CFrame.Angles(math.sin(-angle)*.65, 0, math.rad(.5))
- llcf = llc0 * CFrame.Angles(math.sin(angle)*.65, 0, -math.rad(.5))
- end
- if sprinting then
- debounceofsprint = false
- sprinting = false
- end
- end
- elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude >= 20 then
- if not humanoid.Sit then
- anglespeed = 3
- ncf = neckc0 * CFrame.Angles(math.pi/18, 0, 0)
- rscf = rsc0 * CFrame.new(-.45, 0, -.75) * CFrame.Angles(math.pi/5+math.pi/18, 0, math.rad(-70))
- lscf = lsc0 * CFrame.new(.35, 0, 0) * CFrame.Angles(math.pi/3.5+math.pi/18, 0, 0)
- rjcf = rootc0 * CFrame.new(0, 0, 0) * CFrame.Angles(-math.pi/18, math.sin(angle)*.1, math.sin(angle)*.045)
- rlcf = rlc0 * CFrame.new(0, 0, -.6+math.abs(mvmnt)*0.125) * CFrame.Angles(-math.pi/18+math.sin(-angle)*1.3, 0, math.rad(.5))
- llcf = llc0 * CFrame.new(0, 0, -math.abs(mvmnt)*0.125) * CFrame.Angles(-math.pi/18+math.sin(angle)*1.3, 0, -math.rad(.5))
- sprinting = true
- debounceofsprint = true
- end
- end
- rm.C0 = clerp(rm.C0,rscf,speed)
- lm.C0 = clerp(lm.C0,lscf,speed)
- rj.C0 = clerp(rj.C0,rjcf,speed)
- rlegm.C0 = clerp(rlegm.C0,rlcf,speed)
- llegm.C0 = clerp(llegm.C0,llcf,speed)
- neck.C0 = clerp(neck.C0,ncf,speed)
- end)
- end)
- BStyle8.Name = "B Style 8"
- BStyle8.Parent = StyleMain
- BStyle8.BackgroundColor3 = Color3.new(1, 0, 1)
- BStyle8.Position = UDim2.new(0.613043487, 0, 0.127976164, 0)
- BStyle8.Size = UDim2.new(0, 130, 0, 44)
- BStyle8.Font = Enum.Font.SourceSans
- BStyle8.Text = "Gyro Gun"
- BStyle8.TextColor3 = Color3.new(0, 0, 0)
- BStyle8.TextSize = 14
- BStyle8.MouseButton:connect(function()
- lp=game.Players.LocalPlayer
- pl=lp.Character
- tol=Instance.new("HopperBin",lp.Backpack)
- tol.Name="Gyro_Gun"
- for _,v in pairs(pl:GetChildren()) do if v.ClassName=="CharacterMesh" then v:remove() end end
- Part = function(x,y,z,color,tr,cc,an,parent)
- local p = Instance.new('Part',parent or Weapon)
- p.formFactor = 'Custom'
- p.Size = Vector3.new(x,y,z)
- p.BrickColor = BrickColor.new(color)
- p.CanCollide = cc
- p.Transparency = tr
- p.Anchored = an
- p.TopSurface,p.BottomSurface = 0,0
- return p end
- Weld = function(p0,p1,x,y,z,rx,ry,rz,par)
- p0.Position = p1.Position
- local w = Instance.new('Motor',par or p0)
- w.Part0 = p0
- w.Part1 = p1
- w.C1 = CFrame.new(x,y,z)*CFrame.Angles(rx,ry,rz)
- return w end
- Mesh = function(par,num,x,y,z)
- local msh = _
- if num == 1 then msh = Instance.new("CylinderMesh",par)
- elseif num == 2 then msh = Instance.new("SpecialMesh",par) msh.MeshType = 3
- elseif num == 3 then msh = Instance.new("BlockMesh",par)
- elseif type(num) == 'string' then msh = Instance.new("SpecialMesh",par) msh.MeshId = num
- end
- msh.Scale = Vector3.new(x,y,z)
- return msh end
- wPart = function(x,y,z,color,tr,cc,an,parent)
- local wp = Instance.new('WedgePart',parent or Weapon)
- wp.formFactor = 'Custom'
- wp.Size = Vector3.new(x,y,z)
- wp.BrickColor = BrickColor.new(color)
- wp.CanCollide = cc
- wp.Transparency = tr
- wp.Anchored = an
- wp.TopSurface,wp.BottomSurface = 0,0
- return wp end
- function c1(mouse)
- f=true
- ft=false
- lo=true
- lop=false
- speed=50
- thro=1
- dmg= Part(1,1,1,'',1,false,false,wep)
- dmgwl= Weld(dmg,wep24,0,0,0,0,0,0,wep)
- function touch(hit)
- if hit.Parent:findFirstChild("Humanoid") ~= nil then
- hit.Parent:BreakJoints()
- end end
- dmg.Touched:connect(touch)
- coroutine.wrap(function()
- for i=1,10 do wait()
- ma.Scale=ma.Scale+Vector3.new(.2,.2,.2)
- ma1.Scale=ma1.Scale+Vector3.new(.3,.3,.3)
- end
- end)()
- coroutine.wrap(function()
- while wait()do
- for i=1,speed do wait()
- if ft==true then break end
- spin1w= Weld(spin1,pl['Right Arm'],0,-3,-.75,0,i/thro,0,wep)
- spin2w= Weld(spin2,pl['Right Arm'],0,-3,-.75,i/thro,0,0,wep)
- end
- if ft==true then break end
- end end)()
- m=lp:GetMouse()
- coroutine.wrap(function()
- while wait(1) do
- if lop==true then break end
- bpos.position=m.Hit.p
- wait(.5)
- coroutine.wrap(function()
- for i=1,10 do wait()
- bpos.position=wep23.Position
- end
- end)()
- end
- end)()
- end
- function c2(mouse)
- ft=true
- f=false
- lo=false
- lop=true
- speed=360
- thro=10
- dmg:remove()
- coroutine.wrap(function()
- while wait()do
- if lo==true then break end
- bpos.position=wep23.Position
- end end)()
- coroutine.wrap(function()
- for i=1,10 do wait()
- ma.Scale=ma.Scale-Vector3.new(.2,.2,.2)
- ma1.Scale=ma1.Scale-Vector3.new(.3,.3,.3)
- end
- end)()
- coroutine.wrap(function()
- while wait()do
- for i=1,speed do wait()
- if f==true then break end
- spin1w= Weld(spin1,pl['Right Arm'],0,-3,-.75,0,i/thro,0,wep)
- spin2w= Weld(spin2,pl['Right Arm'],0,-3,-.75,i/thro,0,0,wep)
- end
- if f==true then break end
- end end)()
- end
- tol.Selected:connect(function(mouse)
- mouse.Button1Down:connect(function() c1(mouse) end)
- mouse.Button1Up:connect(function() c2(mouse) end)
- f=false
- lo=false
- wep=Instance.new("Model",pl)
- bas = Part(1,1,1,'',1,false,false,wep)
- bas:BreakJoints()
- wep1= Part(.1,.3,1,'Really black',0,false,false,wep)
- wl1= Weld(wep1,pl['Right Arm'],0,-1,0,0,0,0,wep)
- wep2= Part(.5,2,.5,'Really black',0,false,false,wep)
- wl2= Weld(wep2,pl['Right Arm'],0,-1,-.75,0,0,0,wep)
- wep3= Part(.1,.2,1.5,'Really black',0,false,false,wep)
- wl3= Weld(wep3,pl['Right Arm'],0,-1.5,-.25,-math.pi/5,0,0,wep)
- wep4= Part(.3,1,.3,'Institutional white',0,false,false,wep)m=Mesh(wep4,1,1,1,1)
- wl4= Weld(wep4,pl['Right Arm'],0,-2,-.75,0,0,0,wep)
- wep5= Part(.2,.35,.2,'Really black',0,false,false,wep)m=Mesh(wep5,1,1,1,1)
- wl5= Weld(wep5,pl['Right Arm'],0,-2.25,-.75,math.pi/2,0,0,wep)
- wep6= Part(.2,.35,.2,'Really black',0,false,false,wep)m=Mesh(wep6,1,1,1,1)
- wl6= Weld(wep6,pl['Right Arm'],0,-2.25,-.75,math.pi/2,0,math.pi/2,wep)
- wep7= Part(.2,.2,.2,'Really black',0,false,false,wep)
- m=Mesh(wep7,'http://www.roblox.com/asset/?id=3270017',2.25,2.25,.1)
- wl7= Weld(wep7,pl['Right Arm'],0,-3,-.75,0,math.pi/3,0,wep)
- --spinners--
- spin1= Part(.2,.2,.2,'Institutional white',0,false,false,wep)
- m=Mesh(spin1,'http://www.roblox.com/asset/?id=3270017',1.75,1.75,.1)
- spin2= Part(.2,.2,.2,'Really black',0,false,false,wep)
- m=Mesh(spin2,'http://www.roblox.com/asset/?id=3270017',1.25,1.25,.1)
- --derrize
- wep8= Part(1,1,1,'Really black',0,false,false,wep)
- m=Mesh(wep8,1,.1,2,.1)
- wl8= Weld(wep8,pl['Right Arm'],0,-3,-.75,0,math.pi/3,0,wep)
- wep8= Part(1,1,1,'Really black',0,false,false,wep)
- m=Mesh(wep8,1,.3,1,.3)
- wl8= Weld(wep8,pl['Right Arm'],0,-3,-.75,0,math.pi/3,0,wep)
- wep8.Material='Granite'
- wep9= Part(1,1,1,'Lime green',0,false,false,wep)
- m=Mesh(wep9,1,.4,.3,.4)
- wl9= Weld(wep9,pl['Right Arm'],0,-3,-.75,0,math.pi/3,0,wep)
- wep9.Material='Granite'
- wep9= Part(1,1,1,'Really black',0,false,false,wep)
- m=Mesh(wep9,1,.41,.27,.41)
- wl9= Weld(wep9,pl['Right Arm'],0,-3,-.75,0,math.pi/3,0,wep)
- wep9.Material='Granite'
- wep10= Part(1,1,1,'Really black',0,false,false,wep)
- m=Mesh(wep10,1,.2,.5,.2)
- wl10= Weld(wep10,pl['Right Arm'],0,-4,-.75,0,math.pi/3,0,wep)
- wep11= Part(1,1,1,'Institutional white',0,false,false,wep)
- m=Mesh(wep11,1,.2,.5,.2)
- wl11= Weld(wep11,pl['Right Arm'],0,-4.5,-.75,0,math.pi/3,0,wep)
- wep12= Part(.2,.35,.2,'Really black',0,false,false,wep)m=Mesh(wep12,1,1,1,1)
- wl12= Weld(wep12,pl['Right Arm'],0,-4.25,-.75,math.pi/2,0,0,wep)
- wep13= Part(.2,.35,.2,'Really black',0,false,false,wep)m=Mesh(wep13,1,1,1,1)
- wl13= Weld(wep13,pl['Right Arm'],0,-4.25,-.75,math.pi/2,0,math.pi/2,wep)
- wep14= Part(.2,.35,.2,'Really black',0,false,false,wep)m=Mesh(wep14,1,1,1,1)
- wl14= Weld(wep14,pl['Right Arm'],0,-4.5,-.75,math.pi/2,0,0,wep)
- wep15= Part(.2,.35,.2,'Really black',0,false,false,wep)m=Mesh(wep15,1,1,1,1)
- wl15= Weld(wep15,pl['Right Arm'],0,-4.5,-.75,math.pi/2,0,math.pi/2,wep)
- wep16= Part(1,1,1,'Really black',0,false,false,wep) m=Mesh(wep16,3,2,.1,.1)
- wl16= Weld(wep16,pl['Right Arm'],0,-4.7,-.75,math.pi/2,0,0,wep)
- wep17= Part(1,1,1,'Really black',0,false,false,wep) m=Mesh(wep17,3,.1,2,.1)
- wl17= Weld(wep17,pl['Right Arm'],0,-4.7,-.75,math.pi/2,0,0,wep)
- wep18= Part(1,1,1,'Really black',0,false,false,wep) m=Mesh(wep18,3,.1,1,.1)
- wl18= Weld(wep18,pl['Right Arm'],0,-5.1,-2,math.pi/5,0,0,wep)
- wep19= Part(1,1,1,'Really black',0,false,false,wep) m=Mesh(wep19,3,.1,1,.1)
- wl19= Weld(wep19,pl['Right Arm'],0,-5.1,.5,-math.pi/5,0,0,wep)
- wep20= Part(1,1,1,'Really black',0,false,false,wep) m=Mesh(wep20,3,1,.1,.1)
- wl20= Weld(wep20,pl['Right Arm'],1.35,-5,-.75,0,0,-math.pi/5,wep)
- wep21= Part(1,1,1,'Really black',0,false,false,wep) m=Mesh(wep21,3,1,.1,.1)
- wl21= Weld(wep21,pl['Right Arm'],-1.35,-5,-.75,0,0,math.pi/5,wep)
- wep22= Part(1,1,1,'Really black',0,false,false,wep) m=Mesh(wep22,'http://www.roblox.com/asset/?id=95387759',5,5,5)
- wl22= Weld(wep22,pl['Right Arm'],0,-4.7,-.75,-math.pi/2,0,0,wep)
- wep23= Part(.1,.1,.1,'Really black',1,false,false,wep)
- wl23= Weld(wep23,pl['Right Arm'],0,-6,-.75,-math.pi/2,0,0,wep)
- wep24= Part(.1,.1,.1,'Camo',0,false,false,wep)
- ma=Mesh(wep24,'http://www.roblox.com/asset/?id=1185246',0,0,0)
- wep25= Part(.1,.1,.1,'Lime green',.5,false,false,wep)
- ma1=Mesh(wep25,'http://www.roblox.com/asset/?id=1185246',0,0,0)
- wl25= Weld(wep25,wep24,0,0,0,-0,0,0,wep)
- bpos=Instance.new("BodyPosition",wep24)
- bpos.maxForce=Vector3.new(1e1000,1e1000,1e1000)
- coroutine.wrap(function()
- while wait()do
- if lo==true then break end
- bpos.position=wep23.Position
- end end)()
- la1= Part(.1,.1,.1,'Lime green',.6,false,true,wep)
- coroutine.wrap(function()
- while wait() do
- Pos1 = wep18.Position
- Pos2 = wep24.Position
- Dist = (Pos1-Pos2).magnitude
- la1.Size = Vector3.new(0.1,0.1,Dist)
- la1.CFrame = CFrame.new(Pos1,Pos2)*CFrame.new(0,0,-Dist/2)
- end end)()
- la2= Part(.1,.1,.1,'Lime green',.6,false,true,wep)
- coroutine.wrap(function()
- while wait() do
- Pos1 = wep19.Position
- Pos2 = wep24.Position
- Dist = (Pos1-Pos2).magnitude
- la2.Size = Vector3.new(0.1,0.1,Dist)
- la2.CFrame = CFrame.new(Pos1,Pos2)*CFrame.new(0,0,-Dist/2)
- end end)()
- la3= Part(.1,.1,.1,'Lime green',.6,false,true,wep)
- coroutine.wrap(function()
- while wait() do
- Pos1 = wep20.Position
- Pos2 = wep24.Position
- Dist = (Pos1-Pos2).magnitude
- la3.Size = Vector3.new(0.1,0.1,Dist)
- la3.CFrame = CFrame.new(Pos1,Pos2)*CFrame.new(0,0,-Dist/2)
- end end)()
- la4= Part(.1,.1,.1,'Lime green',.6,false,true,wep)
- coroutine.wrap(function()
- while wait() do
- Pos1 = wep21.Position
- Pos2 = wep24.Position
- Dist = (Pos1-Pos2).magnitude
- la4.Size = Vector3.new(0.1,0.1,Dist)
- la4.CFrame = CFrame.new(Pos1,Pos2)*CFrame.new(0,0,-Dist/2)
- end end)()
- speed=360
- thro=10
- coroutine.wrap(function()
- while wait()do
- for i=1,speed do wait()
- if f==true then break end
- spin1w= Weld(spin1,pl['Right Arm'],0,-3,-.75,0,i/thro,0,wep)
- spin2w= Weld(spin2,pl['Right Arm'],0,-3,-.75,i/thro,0,0,wep)
- end
- if ft==true then break end
- end
- end)()
- fakel = Instance.new("Weld",wep)
- fakel.Part0 = pl.Torso
- fakel.Part1 = bas
- coroutine.wrap(function()
- for angle = 0, 45, 5 do
- if fakel == nil then return end
- fakel.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(angle*2), math.rad(0--[[angle*.3]]), math.rad(0))
- wait()
- end
- end)()
- welditbro = Instance.new("Weld", wep)
- welditbro.C0 = CFrame.new(0, 0.5, 0)
- welditbro.Part0 = pl['Right Arm']
- welditbro.Part1 = bas
- end)
- tol.Deselected:connect(function(_)
- f=true
- lo=true
- wep:remove()
- end)
- end)
- Close.Parent = StyleMain
- Close.BackgroundColor3 = Color3.new(1, 1, 1)
- Close.BackgroundTransparency = 2
- Close.Position = UDim2.new(0.882608652, 0, 0, 0)
- Close.Size = UDim2.new(0, 60, 0, 34)
- Close.Font = Enum.Font.SourceSans
- Close.Text = "X"
- Close.TextColor3 = Color3.new(0, 0, 0)
- Close.TextSize = 14
- Close.MouseButton1Down:connect(function()
- OpenFrame.Visible = true
- Style Main.Visible = false
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement