Advertisement
Project_MAtrix_ZERGO

Roblox Exploit Guns Gui

Apr 16th, 2019
22,270
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 296.14 KB | None | 0 0
  1. Made By WeAreDevs_L042
  2. ================================================================
  3. local GunsGuiByWeAreDevs_L042 = Instance.new("ScreenGui")
  4. local OpenFrame = Instance.new("Frame")
  5. local Open = Instance.new("TextButton")
  6. local StyleMain = Instance.new("Frame")
  7. local StyleUp = Instance.new("Frame")
  8. local Write1 = Instance.new("TextBox")
  9. local StyleDown = Instance.new("Frame")
  10. local Write2 = Instance.new("TextBox")
  11. local RightFrame = Instance.new("Frame")
  12. local LeftFrame = Instance.new("Frame")
  13. local BStyle1 = Instance.new("TextButton")
  14. local BStyle2 = Instance.new("TextButton")
  15. local BStyle3 = Instance.new("TextButton")
  16. local BStyle4 = Instance.new("TextButton")
  17. local BStyle5 = Instance.new("TextButton")
  18. local BStyle6 = Instance.new("TextButton")
  19. local BStyle7 = Instance.new("TextButton")
  20. local BStyle8 = Instance.new("TextButton")
  21. local TextButton = Instance.new("TextButton")
  22. --Properties:
  23. GunsGuiByWeAreDevs_L042.Name = "Guns Gui By WeAreDevs_L042"
  24. GunsGuiByWeAreDevs_L042.Parent = game.Workspace
  25. GunsGuiByWeAreDevs_L042.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  26.  
  27. OpenFrame.Name = "OpenFrame"
  28. OpenFrame.Parent = GunsGuiByWeAreDevs_L042
  29. OpenFrame.BackgroundColor3 = Color3.new(0, 0, 0)
  30. OpenFrame.Position = UDim2.new(0, 0, 0.805168927, 0)
  31. OpenFrame.Size = UDim2.new(0, 127, 0, 33)
  32.  
  33. Open.Name = "Open"
  34. Open.Parent = OpenFrame
  35. Open.BackgroundColor3 = Color3.new(1, 1, 0)
  36. Open.BorderColor3 = Color3.new(0, 0, 0)
  37. Open.Position = UDim2.new(-0.00599457137, 0, -0.0122338496, 0)
  38. Open.Size = UDim2.new(0, 127, 0, 33)
  39. Open.Font = Enum.Font.SourceSans
  40. Open.Text = "Open Guns Gui"
  41. Open.TextColor3 = Color3.new(1, 0, 0)
  42. Open.TextSize = 20
  43. Open.TextWrapped = true
  44. Open.MouseButton1Down:connect(function()
  45. Style Main.Visible = true
  46. OpenFrame.Visible = false
  47. end)
  48.  
  49. StyleMain.Name = "Style Main"
  50. StyleMain.Parent = GunsGuiByWeAreDevs_L042
  51. StyleMain.BackgroundColor3 = Color3.new(0, 0, 0)
  52. StyleMain.BackgroundTransparency = 1
  53. StyleMain.Position = UDim2.new(0.21786198, 0, 0.135188878, 0)
  54. StyleMain.Size = UDim2.new(0, 460, 0, 336)
  55.  
  56. StyleUp.Name = "Style Up"
  57. StyleUp.Parent = StyleMain
  58. StyleUp.BackgroundColor3 = Color3.new(1, 1, 0)
  59. StyleUp.Position = UDim2.new(0.0130434781, 0, 0, 0)
  60. StyleUp.Size = UDim2.new(0, 460, 0, 34)
  61.  
  62. Write1.Name = "Write 1"
  63. Write1.Parent = StyleUp
  64. Write1.BackgroundColor3 = Color3.new(1, 1, 1)
  65. Write1.BackgroundTransparency = 1
  66. Write1.Size = UDim2.new(0, 460, 0, 34)
  67. Write1.Font = Enum.Font.SourceSans
  68. Write1.Text = "Guns Gui"
  69. Write1.TextColor3 = Color3.new(0, 0, 0)
  70. Write1.TextSize = 40
  71.  
  72. StyleDown.Name = "Style Down"
  73. StyleDown.Parent = StyleMain
  74. StyleDown.BackgroundColor3 = Color3.new(0.333333, 1, 1)
  75. StyleDown.Position = UDim2.new(0, 0, 0.898809552, 0)
  76. StyleDown.Size = UDim2.new(0, 460, 0, 34)
  77.  
  78. Write2.Name = "Write 2"
  79. Write2.Parent = StyleDown
  80. Write2.BackgroundColor3 = Color3.new(1, 1, 1)
  81. Write2.BackgroundTransparency = 1
  82. Write2.Size = UDim2.new(0, 460, 0, 34)
  83. Write2.Font = Enum.Font.SourceSans
  84. Write2.Text = "Made By WeAreDevs_L042"
  85. Write2.TextColor3 = Color3.new(1, 0.333333, 0)
  86. Write2.TextSize = 30
  87.  
  88. RightFrame.Name = "Right Frame"
  89. RightFrame.Parent = StyleMain
  90. RightFrame.BackgroundColor3 = Color3.new(0, 1, 1)
  91. RightFrame.Position = UDim2.new(0.923913062, 0, 0.101190478, 0)
  92. RightFrame.Size = UDim2.new(0, 35, 0, 268)
  93.  
  94. LeftFrame.Name = "Left Frame"
  95. LeftFrame.Parent = StyleMain
  96. LeftFrame.BackgroundColor3 = Color3.new(1, 1, 0)
  97. LeftFrame.Position = UDim2.new(0, 0, 0.101190478, 0)
  98. LeftFrame.Size = UDim2.new(0, 35, 0, 268)
  99.  
  100. BStyle1.Name = "B Style 1"
  101. BStyle1.Parent = StyleMain
  102. BStyle1.BackgroundColor3 = Color3.new(1, 0, 1)
  103. BStyle1.Position = UDim2.new(0.104347825, 0, 0.127976194, 0)
  104. BStyle1.Size = UDim2.new(0, 130, 0, 44)
  105. BStyle1.Font = Enum.Font.SourceSans
  106. BStyle1.Text = "AWP Sniper"
  107. BStyle1.TextColor3 = Color3.new(1, 0.333333, 0)
  108. BStyle1.TextSize = 18
  109. BStyle1.MouseButton:connect(function()
  110. local animations = {
  111.         requip = {
  112.                 CFrame.new(0, .5, 0) * CFrame.Angles(math.rad(90), 0, math.rad(-10)) * CFrame.new(1.5, -.5, 0);
  113.                 CFrame.new(0, .5, 0) * CFrame.Angles(math.rad(180), 0, math.rad(-15)) * CFrame.new(1.5, -.5, 0);
  114.                 CFrame.new(0, .5, 0) * CFrame.Angles(math.rad(210), 0, math.rad(-40)) * CFrame.new(1.5, -.5, 0);
  115.                 CFrame.new(0, .5, 0) * CFrame.Angles(math.rad(180), 0, math.rad(-10)) * CFrame.new(1.5, -.5, 0);
  116.                 CFrame.new(0, .5, 0) * CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(1.5, -.5, 0);
  117.         };
  118.         lequip = {
  119.                 CFrame.new(0, .5, 0) * CFrame.Angles(math.rad(90), 0, math.rad(60)) * CFrame.new(-1, -.75, 0);
  120.         };
  121.         runequip = {
  122.                 CFrame.new(0, .5, 0) * CFrame.Angles(math.rad(90), 0, math.rad(-10)) * CFrame.new(1.5, -.5, 0);
  123.                 CFrame.new(0, .5, 0) * CFrame.Angles(math.rad(180), 0, math.rad(-15)) * CFrame.new(1.5, -.5, 0);
  124.                 CFrame.new(0, .5, 0) * CFrame.Angles(math.rad(210), 0, math.rad(-40)) * CFrame.new(1.5, -.5, 0);
  125.                 CFrame.new(0, .5, 0) * CFrame.Angles(math.rad(180), 0, math.rad(-10)) * CFrame.new(1.5, -.5, 0);
  126.                 CFrame.new(0, .5, 0) * CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(1.5, -.5, 0);
  127.                 CFrame.new(1.5, 0, 0);
  128.         };
  129.         rshoot = {
  130.                 CFrame.new(0, .5, 0) * CFrame.Angles(math.rad(170), 0, 0) * CFrame.new(1.5, -.5, 0);
  131.                 CFrame.new(0, .5, 0) * CFrame.Angles(math.rad(90), 0, 0) * CFrame.new(1.5, -.5, 0);
  132.         };
  133.         lshoot = {
  134.                 CFrame.new(0, .5, 0) * CFrame.Angles(math.rad(170), 0, math.rad(60)) * CFrame.new(-1, -.75, 0);
  135.                 CFrame.new(0, .5, 0) * CFrame.Angles(math.rad(90), 0, math.rad(60)) * CFrame.new(-1, -.75, 0);
  136.                 CFrame.new(0, .5, 0) * CFrame.Angles(math.rad(90), 0, math.rad(80)) * CFrame.new(-.5, -.35, 0);
  137.                 CFrame.new(0, .5, 0) * CFrame.Angles(math.rad(90), 0, math.rad(60)) * CFrame.new(-1, -.75, 0);
  138.         };
  139. }
  140. local player = game:GetService("Players").LocalPlayer
  141. local pmouse = player:GetMouse()
  142. local char = player.Character
  143. local bin = Instance.new("HopperBin", player.Backpack)
  144. local barrelsize = .3
  145. local handleweld = nil
  146. local temp = true
  147. local etemp = true
  148. bin.Name = "L96A1 Magnum"
  149. function weld(part0, part1, c0, c1, parent)
  150.         local w = Instance.new("Weld", parent)
  151.         w.Part0 = part0
  152.         w.Part1 = part1
  153.         w.C0 = c0
  154.         w.C1 = c1
  155.         w.Name = "NewWeld"
  156.         return w
  157. end
  158. function interpolateCFrame(cf1, cf2)
  159.         local t1 = {cf1:components()}
  160.         local t2 = {cf2:components()}
  161.         local newcf = {}
  162.         for i, v in pairs(t1) do
  163.                 local dif = t2[i] - v
  164.                 if i < 4 then
  165.                         local newValue = nil
  166.                         if math.abs(dif) < .1 then
  167.                                 newValue = t2[i]
  168.                         else
  169.                                 newValue = v +  ((dif/math.abs(dif)) * .1)
  170.                         end
  171.                         newcf[i] = newValue
  172.                 else
  173.                         local newValue = nil
  174.                         if math.abs(dif) < .1 then
  175.                                 newValue = t2[i]
  176.                         else
  177.                                 newValue = v + ((dif/math.abs(dif)) * .1)
  178.                         end
  179.                         newcf[i] = newValue
  180.                 end
  181.         end
  182.         return CFrame.new(unpack(newcf))
  183. end
  184. function prop(name, sx, sy, sz, px, py, pz, anc, canc, col, par, mesh, meshtype, scalex, scaley, scalez, meshid, textureid)
  185.         local part = Instance.new("Part", par)
  186.         part.Name = name
  187.         part.TopSurface = 0
  188.         part.BottomSurface = 0
  189.         part.formFactor = 3
  190.         part.Size = Vector3.new(sx, sy, sz)
  191.         part.Position = Vector3.new(px, py, pz)
  192.         part.Anchored = anc
  193.         part.CanCollide = canc
  194.         part.BrickColor = BrickColor.new(col)
  195.         if mesh then
  196.                 local m = Instance.new("SpecialMesh", part)
  197.                 m.MeshType = meshtype
  198.                 m.MeshId = meshid
  199.                 m.Scale = Vector3.new(scalex, scaley, scalez)
  200.                 m.TextureId = textureid
  201.         end
  202.         return part
  203. end
  204. function fade(part, speed)
  205.         for i = part.Transparency, 1, speed do
  206.                 part.Transparency = i
  207.                 wait()
  208.         end
  209.         part:Destroy()
  210. end
  211. function clearWelds(par)
  212.         for i, v in pairs(par:GetChildren()) do
  213.                 if v.Name == "NewWeld" and v:IsA("Weld") then
  214.                         v:Destroy()
  215.                 end
  216.         end
  217. end
  218. function sound(pitch, id, par)
  219.         local s = Instance.new("Sound", par)
  220.         s.Pitch = pitch
  221.         s.SoundId = id
  222.         return s
  223. end
  224. function traceRay(pos, pos2, col, trans)
  225.         local distance = (pos - pos2).magnitude
  226.         local trace = Instance.new("Part", char)
  227.         trace.Anchored = true
  228.         trace.CanCollide = false
  229.         trace.TopSurface = 0
  230.         trace.BottomSurface = 0
  231.         trace.formFactor = 3
  232.         trace.Size = Vector3.new(.2, .2, distance)
  233.         trace.BrickColor = BrickColor.new(col)
  234.         trace.Transparency = trans
  235.         trace.CFrame = CFrame.new(pos2, pos) * CFrame.new(0, 0, -distance/2)
  236.         return trace
  237. end
  238. clearWelds(char.Torso)
  239. local back1 = prop("Part1", .1, .7, .5, 0, 0, 0, false, false, "Black", char, false)
  240. 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)
  241. local back2 = prop("Part2", .1, .2, .1, 0, 0, 0, false, false, "Grime", char, false)
  242. local back2weld = weld(back1, back2, CFrame.new(0, -.25, -.35), CFrame.new(), char.Torso)
  243. local back3 = prop("Part3", .1, .5, 1, 0, 0, 0, false, false, "Grime", char, false)
  244. local back3weld = weld(back1, back3, CFrame.new(0, .1, -.75), CFrame.new(), char.Torso)
  245. local back4 = prop("Part4", .1, .1, 1, 0, 0, 0, false, false, "Grime", char, false)
  246. local back4weld = weld(back3, back4, CFrame.new(0, .3, 0), CFrame.new(), char.Torso)
  247. local back5 = prop("Part5", .1, .1, .7, 0, 0, 0, false, false, "Grime", char, false)
  248. local back5weld = weld(back1, back5, CFrame.new(0, .4, -1.6), CFrame.new(), char.Torso)
  249. local trigger1 = prop("Part6", .1, .1, .6, 0, 0, 0, false, false, "Grime", char, false)
  250. local trigger1weld = weld(back4, trigger1, CFrame.new(0, -.6, -.4) * CFrame.Angles(-math.rad(30), 0, 0), CFrame.new(), char.Torso)
  251. local trigger2 = prop("Part7", .1, .1, .5, 0, 0, 0, false, false, "Grime", char, false)
  252. local trigger2weld = weld(back4, trigger2, CFrame.new(0, -.675, -.8) * CFrame.Angles(math.rad(15), 0, 0), CFrame.new(), char.Torso)
  253. local trigger3 = prop("Part8", .1, .1, .7, 0, 0, 0, false, false, "Grime", char, false)
  254. local trigger3weld = weld(back4, trigger3, CFrame.new(0, -.4, -.95) * CFrame.Angles(math.rad(90), 0, 0), CFrame.new(), char.Torso)
  255. local middle1 = prop("Part9", .1, .1, 1, 0, 0, 0, false, false, "Black", char, true, "Brick", .1, .0, .1, "", "") -- dis
  256. local middle1weld = weld(back5, middle1, CFrame.new(0, .05, -.8), CFrame.new(), char.Torso)
  257. 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", "")
  258. local trigframeweld = weld(back5, trigframe, CFrame.new(0, -.2, -.3) * CFrame.Angles(0, math.rad(90), 0), CFrame.new(), char.Torso)
  259. local middle2 = prop("Part11", .1, .3, 2, 0, 0, 0, false, false, "Grime", char, false)
  260. local middle2weld = weld(middle1, middle2, CFrame.new(0, -.1, -.4), CFrame.new(), char.Torso)
  261. local barrel = prop("Part12", .1, .1, 4, 0, 0, 0, false, false, "Black", char, true, "Brick", .5, .5, 1, "", "")
  262. local barrelweld = weld(middle1, barrel, CFrame.new(0, -.05, -2), CFrame.new(), char.Torso)
  263. local barrel2 = prop("Part13", barrelsize, 2, barrelsize, 0, 0, 0, false, false, "Black", char, false) Instance.new("CylinderMesh", barrel2)
  264. local barrel2weld = weld(barrel, barrel2, CFrame.new(0, 0, -2.5) * CFrame.Angles(math.rad(90), 0, 0), CFrame.new(), char.Torso)
  265. local scope1 = prop("Part14", .1, .2, .1, 0, 0, 0, false, false, "Black", char, true, "Brick", .5, .5, .5, "", "")
  266. local scope1weld = weld(middle1, scope1, CFrame.new(0, .1, .25), CFrame.new(), char.Torso)
  267. local scope2 = prop("Part14", .1, .2, .1, 0, 0, 0, false, false, "Black", char, true, "Brick", .5, .5, .5, "", "")
  268. local scope2weld = weld(middle1, scope2, CFrame.new(0, .1, -.25), CFrame.new(), char.Torso)
  269. local scope3 = prop("Part15", .1, 1.5, .1, 0, 0, 0, false, false, "Black", char, false) Instance.new("CylinderMesh", scope3)
  270. local scope3weld = weld(middle1, scope3, CFrame.new(0, .2, 0) * CFrame.Angles(math.rad(90), 0, 0), CFrame.new(), char.Torso)
  271. 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", "")
  272. local scope4weld = weld(middle1, scope4, CFrame.new(0, .2, .7) * CFrame.Angles(math.rad(270), 0, 0), CFrame.new(), char.Torso)
  273. 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", "")
  274. local scope5weld = weld(middle1, scope5, CFrame.new(0, .2, -.7) * CFrame.Angles(math.rad(-270), 0, 0), CFrame.new(), char.Torso)
  275. local rarmweld = weld(char.Torso, nil, CFrame.new(1.5, 0, 0), CFrame.new(), char.Torso)
  276. local larmweld = weld(char.Torso, nil, CFrame.new(-1.5, 0, 0), CFrame.new(), char.Torso)
  277. local gyro = Instance.new("BodyGyro", char.Torso)
  278. gyro.P = 10000
  279. gyro.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
  280. pmouse.Move:connect(function()
  281.         gyro.cframe = CFrame.new(char.Torso.Position, Vector3.new(pmouse.Hit.p.X, char.Torso.Position.Y, pmouse.Hit.p.Z))
  282. end)
  283. function onEquip(mouse)
  284.         repeat wait() until etemp and temp
  285.         etemp = false
  286.         rarmweld.Part1 = char["Right Arm"]
  287.         local frame = 1
  288.         coroutine.wrap(function()
  289.                 while rarmweld and animations.requip[frame] do
  290.                         rarmweld.C0 = interpolateCFrame(rarmweld.C0, animations.requip[frame])
  291.                         if rarmweld.C0 == animations.requip[frame] then
  292.                                 frame = frame + 1
  293.                         else
  294.                                 wait()
  295.                         end
  296.                 end
  297.         end)()
  298.         repeat wait() until frame == 3
  299.         back1weld.Part0 = nil
  300.         handleweld = weld(char["Right Arm"], back1, CFrame.new(-.5, 1, -.3) * CFrame.Angles(math.rad(270), 0, 0), CFrame.new(), char.Torso)
  301.         repeat wait() until frame == 5
  302.         larmweld.Part1 = char["Left Arm"]
  303.         local frame2 = 1
  304.         coroutine.wrap(function()
  305.                 while larmweld and animations.lequip[frame2] do
  306.                         larmweld.C0 = interpolateCFrame(larmweld.C0, animations.lequip[frame2])
  307.                         if larmweld.C0 == animations.lequip[frame2] then
  308.                                 frame2 = frame2 + 1
  309.                         else
  310.                                 wait()
  311.                         end
  312.                 end
  313.                 etemp = true
  314.         end)()
  315.         repeat wait() until frame == 6
  316.         mouse.Button1Down:connect(function()
  317.                 if not temp then return end
  318.                 temp = false
  319.                 local frame3 = 1
  320.                 coroutine.wrap(function()
  321.                         while rarmweld and animations.rshoot[frame3] do
  322.                                 rarmweld.C0 = interpolateCFrame(rarmweld.C0, animations.rshoot[frame3])
  323.                                 if rarmweld.C0 == animations.rshoot[frame3] then
  324.                                         frame3 = frame3 + 1
  325.                                 else
  326.                                         wait()
  327.                                 end
  328.                         end
  329.                 end)()
  330.                 local frame4 = 1
  331.                 coroutine.wrap(function()
  332.                         while larmweld and animations.lshoot[frame4] do
  333.                                 larmweld.C0 = interpolateCFrame(larmweld.C0, animations.lshoot[frame4])
  334.                                 if larmweld.C0 == animations.lshoot[frame4] then
  335.                                         frame4 = frame4 + 1
  336.                                 else
  337.                                         wait()
  338.                                 end
  339.                         end
  340.                         wait(.1)
  341.                         temp = true
  342.                 end)()
  343.                 local ray = Ray.new(barrel2.Position, (mouse.Hit.p - barrel2.Position).unit * 500)
  344.                 sound(2, "http://www.roblox.com/Asset/?id=16211041", barrel2):play()
  345.                 local hit, pos = workspace:FindPartOnRay(ray, char)
  346.                 if hit and hit.Parent:FindFirstChild("Humanoid") then
  347.                         local dmg = math.random(70, 100)
  348.                         if hit.Name ~= "Head" then
  349.                                 hit.Parent.Humanoid:TakeDamage(dmg)
  350.                                 hit.Parent.Humanoid.Sit = true
  351.                         else
  352.                                 hit.Parent:BreakJoints()
  353.                                 sound(1, "http://www.roblox.com/asset/?id=1876552", workspace):play()
  354.                         end
  355.                         if game:GetService("Players"):GetPlayerFromCharacter(hit.Parent) == nil then return end
  356.                         local bl = Instance.new("Part", workspace)
  357.                         bl.Name = "Blood"
  358.                         bl.BrickColor = BrickColor.new("Really red")
  359.                         bl.FormFactor = 3
  360.                         bl.TopSurface = 0
  361.                         bl.BottomSurface = 0
  362.                         bl.Size = Vector3.new(1, .1, 1)
  363.                         bl.Position = hit.Parent.Head.Position + Vector3.new(0, 3, 0)
  364.                         local bbg = Instance.new("BillboardGui", bl)
  365.                         bbg.Adornee = bl
  366.                         bbg.Size = UDim2.new(1, 0, 1, 0)
  367.                         bbg.StudsOffset = Vector3.new(0, 1, 0)
  368.                         local txt = Instance.new("TextLabel", bbg)
  369.                         txt.Position = UDim2.new(0.5, 0, 0.5, 0)
  370.                         txt.FontSize = "Size14"
  371.                         txt.TextColor3 = Color3.new(1, 1, 1)
  372.                         txt.Text = hit.Name ~= "Head" and dmg or "HEADSHOT"
  373.                         coroutine.wrap(fade)(bl, 0.005)
  374.                 end
  375.                 if hit and hit.Parent:IsA("Hat") then
  376.                         hit:BreakJoints()
  377.                 end
  378.                 Spawn(function()
  379.                         local tr = traceRay(barrel2.Position, pos, "White", .5)
  380.                         fade(tr, .01)
  381.                 end)
  382.                 repeat wait() until frame4 == 3
  383.                 sound(1, "http://roblox.com/asset/?id=10209881", middle2):play()
  384.         end)
  385. end
  386. function onUnequip()
  387.         repeat wait() until etemp and temp
  388.         etemp = false
  389.         local frame = 1
  390.         coroutine.wrap(function()
  391.                 while rarmweld and animations.runequip[frame] do
  392.                         rarmweld.C0 = interpolateCFrame(rarmweld.C0, animations.runequip[frame])
  393.                         if rarmweld.C0 == animations.runequip[frame] then
  394.                                 frame = frame + 1
  395.                         else
  396.                                 wait()
  397.                         end
  398.                 end
  399.                 etemp = true
  400.         end)()
  401.         coroutine.wrap(function()
  402.                 while larmweld do
  403.                         larmweld.C0 = interpolateCFrame(larmweld.C0, CFrame.new(-1.5, 0, 0))
  404.                         if larmweld.C0 == CFrame.new(-1.5, 0, 0) then
  405.                                 break
  406.                         else
  407.                                 wait()
  408.                         end
  409.                 end
  410.         end)()
  411.         repeat wait() until frame == 4
  412.         handleweld:Remove()
  413.         back1weld:Remove()
  414.         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)
  415.         repeat wait() until frame == 7
  416.         rarmweld.Part1 = nil
  417.         larmweld.Part1 = nil
  418. end
  419. bin.Selected:connect(onEquip)
  420. bin.Deselected:connect(onUnequip)
  421.  
  422. end)
  423.  
  424. BStyle2.Name = "B Style 2"
  425. BStyle2.Parent = StyleMain
  426. BStyle2.BackgroundColor3 = Color3.new(1, 0, 1)
  427. BStyle2.Position = UDim2.new(0.104347825, 0, 0.318452388, 0)
  428. BStyle2.Size = UDim2.new(0, 130, 0, 44)
  429. BStyle2.Font = Enum.Font.SourceSans
  430. BStyle2.Text = "Kar Sniper"
  431. BStyle2.TextColor3 = Color3.new(1, 0.333333, 0)
  432. BStyle2.TextSize = 18
  433. BStyle2.MouseButton:connect(function()
  434. local p = game.Players.LocalPlayer
  435. Player = game:GetService("Players").LocalPlayer
  436. Cha = Player.Character
  437. mouse = game.Players.LocalPlayer:GetMouse()
  438. name = Player.Name
  439. me = game.Players[name]
  440. laydown = false
  441. shoot = false
  442. camo = false
  443. prop = false
  444.  
  445. Cha.Head.Transparency = 1
  446.  
  447. local new = Instance.new("Part", Player.Character)
  448. new.Name = "hed"
  449. new.formFactor = "Symmetric"
  450. new.TopSurface = "Smooth"
  451. new.BottomSurface = "Smooth"
  452. new.Transparency = 0
  453. new.FormFactor = "Custom"
  454. new.Size = Cha.Head.Size
  455. new.CFrame = Player.Character.Head.CFrame
  456. new.BrickColor = Player.Character.Head.BrickColor
  457. newmeshhh = Instance.new("SpecialMesh",new)
  458. newmeshhh.MeshType = "Head"
  459. newmeshhh.Scale = Vector3.new(1.2,1.2,1.2)
  460. weldT = Instance.new("Weld", Player.Character.Torso)
  461. weldT.Part0 = Player.Character.Head
  462. weldT.Part1 = new
  463. weldT.C1 = CFrame.new(0, 0, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  464.  
  465.  
  466. function rand(a)return (math.random()-.5)*2*a end
  467. function q(f,arg)return coroutine.resume(coroutine.create(f),unpack(arg or {}))end
  468. 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
  469. 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
  470. function Part(Name,Parent,Size,CFrame,Color,Trans,Anch,Can,Mat,Ref)
  471.         local p = Instance.new("Part",Parent)p.Name = Name
  472.         p.FormFactor = "Custom"p.Size = Size
  473.         p.Anchored = Anch p.CFrame = CFrame
  474.         p.BrickColor = BrickColor.new(Color)p.Transparency = Trans
  475.         p.TopSurface = 0 p.CanCollide = Can
  476.         p.BottomSurface = 0 p.Material = Mat
  477.         p.Reflectance = Ref or 0;p:BreakJoints()
  478.         p.Locked = true;return p
  479. end
  480. function WedgePart(Name,Parent,Size,CFrame,Color,Trans,Anch,Can,Mat,Ref)
  481.         local p = Instance.new("WedgePart",Parent)p.Name = Name
  482.         p.FormFactor = "Custom"p.Size = Size
  483.         p.Anchored = Anch p.CFrame = CFrame
  484.         p.BrickColor = BrickColor.new(Color)p.Transparency = Trans
  485.         p.TopSurface = 0 p.CanCollide = Can
  486.         p.BottomSurface = 0 p.Material = Mat
  487.         p.Reflectance = Ref or 0;p:BreakJoints()
  488.         p.Locked = true;return p
  489. end
  490. function CornerWedgePart(Name,Parent,Size,CFrame,Color,Trans,Anch,Can,Mat,Ref)
  491.         local p = Instance.new("CornerWedgePart",Parent)p.Name = Name;p.Size = Size
  492.         p.Anchored = Anch p.CFrame = CFrame
  493.         p.BrickColor = BrickColor.new(Color)p.Transparency = Trans
  494.         p.TopSurface = 0 p.CanCollide = Can
  495.         p.BottomSurface = 0 p.Material = Mat
  496.         p.Reflectance = Ref or 0;p:BreakJoints()
  497.         p.Locked = true;return p
  498. end
  499. function Mesh(Parent,Type,Scale,ID,TID)
  500.         local m = Instance.new("SpecialMesh",Parent)m.MeshType = Type
  501.         m.Scale = Scale or Vector3.new(1,1,1)
  502.         if ID then m.MeshId = ID end if TID then m.TextureId = TID end
  503.         return m
  504. end
  505. function Weld(p1,p2,c0,c1)
  506.         local w = Instance.new("Weld",p1)w.Part0 = p1;w.Part1 = p2
  507.         w.C0,w.C1 = c0 or CFrame.new(),c1 or CFrame.new()
  508.         return w
  509. end
  510. function cslerp(start,destination,increment)
  511.         local function s(a,b,c)return (1-c)*a+(c*b)end
  512.         local c1 = {start.X,start.Y,start.Z,start:toEulerAnglesXYZ()}
  513.         local c2 = {destination.X,destination.Y,destination.Z,destination:toEulerAnglesXYZ()}
  514.         for i,v in pairs(c1)do c1[i] = s(v,c2[i],increment)end
  515.         return CFrame.new(c1[1],c1[2],c1[3])*CFrame.Angles(c1[4],c1[5],c1[6])
  516. end
  517. local char
  518. function rayCast(pos,dir,collidedlist,startpos,endpos,distleft)
  519.         collidedlist = collidedlist
  520.         startpos = startpos or pos
  521.         distleft = distleft or dir.unit * dir.magnitude
  522.         endpos = endpos or pos + distleft
  523.         local ray = Ray.new(pos,distleft)
  524.         local hitz,enz = workspace:FindPartOnRayWithIgnoreList(ray,collidedlist)
  525.         if hitz~=nil then
  526.                 if hitz.CanCollide==false then
  527.                         table.insert(collidedlist,hitz)
  528.                         local newpos = enz
  529.                         local newdistleft = distleft-(dir.unit*(pos-newpos).magnitude)
  530.                         if newdistleft~=Vector3.new()then
  531.                                 return rayCast(newpos-(dir*0.01),dir,collidedlist,startpos,endpos,newdistleft+(dir*0.01))
  532.                         end
  533.                 end
  534.         end
  535.         return hitz,enz,ray
  536. end
  537. function findSurface(part,position)
  538.         local obj = part.CFrame:pointToObjectSpace(position)
  539.         local siz = part.Size/2
  540.         for i,v in pairs(Enum.NormalId:GetEnumItems()) do
  541.                 local vec = Vector3.FromNormalId(v)
  542.                 local wvec = part.CFrame:vectorToWorldSpace(vec)
  543.                 local vz = (obj)/(siz*vec)
  544.                 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
  545.                         return wvec,vec
  546.                 end
  547.         end
  548. end
  549. ----------------
  550. Player=game:GetService("Players").LocalPlayer
  551. Character=Player.Character
  552. Cha=Character
  553. PlayerGui=Player.PlayerGui
  554. Backpack=Player.Backpack
  555. Torso=Character.Torso
  556. Head=Character.Head
  557. Humanoid=Character.Humanoid
  558. m=Instance.new('Model',Character)
  559. LeftArm=Character["Left Arm"]
  560. LeftLeg=Character["Left Leg"]
  561. RightArm=Character["Right Arm"]
  562. RightLeg=Character["Right Leg"]
  563. LS=Torso["Left Shoulder"]
  564. LH=Torso["Left Hip"]
  565. RS=Torso["Right Shoulder"]
  566. RH=Torso["Right Hip"]
  567. Face = Head.face
  568. Neck=Torso.Neck
  569. it=Instance.new
  570. attacktype=1
  571. vt=Vector3.new
  572. cf=CFrame.new
  573. euler=CFrame.fromEulerAnglesXYZ
  574. angles=CFrame.Angles
  575. cloaked=false
  576. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  577. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  578. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  579. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  580. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  581. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  582. RootPart=Character.HumanoidRootPart
  583. RootJoint=RootPart.RootJoint
  584. RootCF=euler(-1.57,0,3.14)
  585. attack = false
  586. attackdebounce = false
  587. deb=false
  588. equipped=true
  589. hand=false
  590. MMouse=nil
  591. combo=0
  592. mana=0
  593. trispeed=.2
  594. attackmode='none'
  595. local idle=0
  596. local Anim="Idle"
  597. local Effects={}
  598. local gun=false
  599. local shoot=false
  600. player=nil
  601. mana=0
  602. Attacking=false
  603. asset = "http://www.roblox.com/asset/?id="
  604. meshes = {["blast"] = 20329976,["ring"] = 3270017,["spike"] = 1033714,["cone"] = 1082802,["crown"] = 20329976,["cloud"] = 1095708,["diamond"] = 9756362}
  605.  
  606.  
  607. mouse=Player:GetMouse()
  608. --save shoulders
  609. RSH, LSH=nil, nil
  610. --welds
  611. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  612. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  613. LH=Torso["Left Hip"]
  614. RH=Torso["Right Hip"]
  615. TorsoColor=Torso.BrickColor
  616. function NoOutline(Part)
  617. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  618. end
  619. player=Player
  620. ch=Character
  621. RSH=ch.Torso["Right Shoulder"]
  622. LSH=ch.Torso["Left Shoulder"]
  623. --
  624. --RSH.Parent=nil
  625. --LSH.Parent=nil
  626. --
  627. RW.Name="Right Shoulder"
  628. RW.Part0=ch.Torso
  629. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  630. RW.C1=cf(0, 0.5, 0)
  631. RW.Part1=ch["Right Arm"]
  632. RW.Parent=ch.Torso
  633. --
  634. LW.Name="Left Shoulder"
  635. LW.Part0=ch.Torso
  636. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  637. LW.C1=cf(0, 0.5, 0)
  638. LW.Part1=ch["Left Arm"]
  639. LW.Parent=ch.Torso
  640.  
  641.         Player=game:GetService('Players').LocalPlayer
  642.         Character=Player.Character
  643.         Mouse=Player:GetMouse()
  644.         m=Instance.new('Model',Character)
  645.  
  646.  
  647.         local function weldBetween(a, b)
  648.             local weldd = Instance.new("ManualWeld")
  649.             weldd.Part0 = a
  650.             weldd.Part1 = b
  651.             weldd.C0 = CFrame.new()
  652.             weldd.C1 = b.CFrame:inverse() * a.CFrame
  653.             weldd.Parent = a
  654.             return weldd
  655.         end
  656.        
  657.         it=Instance.new
  658.        
  659.         function nooutline(part)
  660.                 part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  661.         end
  662.        
  663.         function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  664.                 local fp=it("Part")
  665.                 fp.formFactor=formfactor
  666.                 fp.Parent=parent
  667.                 fp.Reflectance=reflectance
  668.                 fp.Transparency=transparency
  669.                 fp.CanCollide=false
  670.                 fp.Locked=true
  671.                 fp.BrickColor=BrickColor.new(tostring(brickcolor))
  672.                 fp.Name=name
  673.                 fp.Size=size
  674.                 fp.Position=Character.Torso.Position
  675.                 nooutline(fp)
  676.                 fp.Material=material
  677.                 fp:BreakJoints()
  678.                 return fp
  679.         end
  680.        
  681.         function mesh(Mesh,part,meshtype,meshid,offset,scale)
  682.                 local mesh=it(Mesh)
  683.                 mesh.Parent=part
  684.                 if Mesh=="SpecialMesh" then
  685.                         mesh.MeshType=meshtype
  686.                         mesh.MeshId=meshid
  687.                 end
  688.                 mesh.Offset=offset
  689.                 mesh.Scale=scale
  690.                 return mesh
  691.         end
  692.        
  693.         function weld(parent,part0,part1,c0,c1)
  694.                 local weld=it("Weld")
  695.                 weld.Parent=parent
  696.                 weld.Part0=part0
  697.                 weld.Part1=part1
  698.                 weld.C0=c0
  699.                 weld.C1=c1
  700.                 return weld
  701.         end    
  702.  
  703.  
  704.     Player=game:GetService('Players').LocalPlayer
  705.         Character=Player.Character
  706.         Mouse=Player:GetMouse()
  707.         m=Instance.new('Model',Character)
  708.  
  709.  
  710.         local function weldBetween(a, b)
  711.             local weldd = Instance.new("ManualWeld")
  712.             weldd.Part0 = a
  713.             weldd.Part1 = b
  714.             weldd.C0 = CFrame.new()
  715.             weldd.C1 = b.CFrame:inverse() * a.CFrame
  716.             weldd.Parent = a
  717.             return weldd
  718.         end
  719.        
  720.         it=Instance.new
  721.        
  722.         function nooutline(part)
  723.                 part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  724.         end
  725.        
  726.         function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  727.                 local fp=it("Part")
  728.                 fp.formFactor=formfactor
  729.                 fp.Parent=parent
  730.                 fp.Reflectance=reflectance
  731.                 fp.Transparency=transparency
  732.                 fp.CanCollide=false
  733.                 fp.Locked=true
  734.                 fp.BrickColor=BrickColor.new(tostring(brickcolor))
  735.                 fp.Name=name
  736.                 fp.Size=size
  737.                 fp.Position=Character.Torso.Position
  738.                 nooutline(fp)
  739.                 fp.Material=material
  740.                 fp:BreakJoints()
  741.                 return fp
  742.         end
  743.        
  744.         function swait(num)
  745.     if num==0 or num==nil then
  746.     game:service'RunService'.Stepped:wait(0)
  747.     else
  748.     for i=0,num do
  749.     game:service'RunService'.Stepped:wait(0)
  750.     end
  751.     end
  752.     end
  753.        
  754.         function mesh(Mesh,part,meshtype,meshid,offset,scale)
  755.                 local mesh=it(Mesh)
  756.                 mesh.Parent=part
  757.                 if Mesh=="SpecialMesh" then
  758.                         mesh.MeshType=meshtype
  759.                         mesh.MeshId=meshid
  760.                 end
  761.                 mesh.Offset=offset
  762.                 mesh.Scale=scale
  763.                 return mesh
  764.         end
  765.        
  766.         function weld(parent,part0,part1,c0,c1)
  767.                 local weld=it("Weld")
  768.                 weld.Parent=parent
  769.                 weld.Part0=part0
  770.                 weld.Part1=part1
  771.                 weld.C0=c0
  772.                 weld.C1=c1
  773.                 return weld
  774.         end
  775.        
  776.        
  777. local function CFrameFromTopBack(at, top, back)
  778. local right = top:Cross(back)
  779. return CFrame.new(at.x, at.y, at.z,
  780. right.x, top.x, back.x,
  781. right.y, top.y, back.y,
  782. right.z, top.z, back.z)
  783. end
  784.  
  785. function Triangle(a, b, c)
  786. local edg1 = (c-a):Dot((b-a).unit)
  787. local edg2 = (a-b):Dot((c-b).unit)
  788. local edg3 = (b-c):Dot((a-c).unit)
  789. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  790. a, b, c = a, b, c
  791. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  792. a, b, c = b, c, a
  793. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  794. a, b, c = c, a, b
  795. else
  796. assert(false, "unreachable")
  797. end
  798.  
  799. local len1 = (c-a):Dot((b-a).unit)
  800. local len2 = (b-a).magnitude - len1
  801. local width = (a + (b-a).unit*len1 - c).magnitude
  802.  
  803. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  804.  
  805. local list = {}
  806.  
  807. local Color = BrickColor.new("Really black")
  808.  
  809. if len1 > 0.01 then
  810. local w1 = Instance.new('WedgePart', m)
  811. game:GetService("Debris"):AddItem(w1,5)
  812. w1.Material = "SmoothPlastic"
  813. w1.FormFactor = 'Custom'
  814. w1.BrickColor = Color
  815. w1.Transparency = 0
  816. w1.Reflectance = 0
  817. w1.Material = "SmoothPlastic"
  818. w1.CanCollide = false
  819. NoOutline(w1)
  820. local sz = Vector3.new(0.2, width, len1)
  821. w1.Size = sz
  822. local sp = Instance.new("SpecialMesh",w1)
  823. sp.MeshType = "Wedge"
  824. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  825. w1:BreakJoints()
  826. w1.Anchored = false
  827. w1.Parent = workspace
  828. w1.Transparency = 0.7
  829. table.insert(Effects,{w1,"Disappear",.01})
  830. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  831. table.insert(list,w1)
  832. end
  833.  
  834. if len2 > 0.01 then
  835. local w2 = Instance.new('WedgePart', m)
  836. game:GetService("Debris"):AddItem(w2,5)
  837. w2.Material = "SmoothPlastic"
  838. w2.FormFactor = 'Custom'
  839. w2.BrickColor = Color
  840. w2.Transparency = 0
  841. w2.Reflectance = 0
  842. w2.Material = "SmoothPlastic"
  843. w2.CanCollide = false
  844. NoOutline(w2)
  845. local sz = Vector3.new(0.2, width, len2)
  846. w2.Size = sz
  847. local sp = Instance.new("SpecialMesh",w2)
  848. sp.MeshType = "Wedge"
  849. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  850. w2:BreakJoints()
  851. w2.Anchored = false
  852. w2.Parent = workspace
  853. w2.Transparency = 0.7
  854. table.insert(Effects,{w2,"Disappear",.01})
  855. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  856. table.insert(list,w2)
  857. end
  858. return unpack(list)
  859. end
  860.        
  861.        
  862. so = function(id,par,vol,pit)
  863. coroutine.resume(coroutine.create(function()
  864. local sou = Instance.new("Sound",par or workspace)
  865. sou.Volume=vol
  866. sou.Pitch=pit or 1
  867. sou.SoundId=id
  868. swait()
  869. sou:play()
  870. game:GetService("Debris"):AddItem(sou,6)
  871. end))
  872. end
  873.  
  874. function clerp(a,b,t)
  875. local qa = {QuaternionFromCFrame(a)}
  876. local qb = {QuaternionFromCFrame(b)}
  877. local ax, ay, az = a.x, a.y, a.z
  878. local bx, by, bz = b.x, b.y, b.z
  879. local _t = 1-t
  880. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  881. end
  882.  
  883. function QuaternionFromCFrame(cf)
  884. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  885. local trace = m00 + m11 + m22
  886. if trace > 0 then
  887. local s = math.sqrt(1 + trace)
  888. local recip = 0.5/s
  889. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  890. else
  891. local i = 0
  892. if m11 > m00 then
  893. i = 1
  894. end
  895. if m22 > (i == 0 and m00 or m11) then
  896. i = 2
  897. end
  898. if i == 0 then
  899. local s = math.sqrt(m00-m11-m22+1)
  900. local recip = 0.5/s
  901. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  902. elseif i == 1 then
  903. local s = math.sqrt(m11-m22-m00+1)
  904. local recip = 0.5/s
  905. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  906. elseif i == 2 then
  907. local s = math.sqrt(m22-m00-m11+1)
  908. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  909. end
  910. end
  911. end
  912.  
  913. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  914. local xs, ys, zs = x + x, y + y, z + z
  915. local wx, wy, wz = w*xs, w*ys, w*zs
  916. local xx = x*xs
  917. local xy = x*ys
  918. local xz = x*zs
  919. local yy = y*ys
  920. local yz = y*zs
  921. local zz = z*zs
  922. 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))
  923. end
  924.  
  925. function QuaternionSlerp(a, b, t)
  926. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  927. local startInterp, finishInterp;
  928. if cosTheta >= 0.0001 then
  929. if (1 - cosTheta) > 0.0001 then
  930. local theta = math.acos(cosTheta)
  931. local invSinTheta = 1/math.sin(theta)
  932. startInterp = math.sin((1-t)*theta)*invSinTheta
  933. finishInterp = math.sin(t*theta)*invSinTheta  
  934. else
  935. startInterp = 1-t
  936. finishInterp = t
  937. end
  938. else
  939. if (1+cosTheta) > 0.0001 then
  940. local theta = math.acos(-cosTheta)
  941. local invSinTheta = 1/math.sin(theta)
  942. startInterp = math.sin((t-1)*theta)*invSinTheta
  943. finishInterp = math.sin(t*theta)*invSinTheta
  944. else
  945. startInterp = t-1
  946. finishInterp = t
  947. end
  948. end
  949. 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
  950. end
  951.  
  952. function rayCast(Pos, Dir, Max, Ignore)  -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  953. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  954. end
  955.  
  956. local function CFrameFromTopBack(at, top, back)
  957. local right = top:Cross(back)
  958. return CFrame.new(at.x, at.y, at.z,
  959. right.x, top.x, back.x,
  960. right.y, top.y, back.y,
  961. right.z, top.z, back.z)
  962. end
  963.  
  964. function Triangle(a, b, c)
  965. local edg1 = (c-a):Dot((b-a).unit)
  966. local edg2 = (a-b):Dot((c-b).unit)
  967. local edg3 = (b-c):Dot((a-c).unit)
  968. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  969. a, b, c = a, b, c
  970. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  971. a, b, c = b, c, a
  972. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  973. a, b, c = c, a, b
  974. else
  975. assert(false, "unreachable")
  976. end
  977.  
  978. local len1 = (c-a):Dot((b-a).unit)
  979. local len2 = (b-a).magnitude - len1
  980. local width = (a + (b-a).unit*len1 - c).magnitude
  981.  
  982. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  983.  
  984. local list = {}
  985.  
  986. if len1 > 0.01 then
  987. local w1 = Instance.new('WedgePart', m)
  988. game:GetService("Debris"):AddItem(w1,5)
  989. w1.Material = "SmoothPlastic"
  990. w1.FormFactor = 'Custom'
  991. w1.BrickColor = BrickColor.new("Really black")
  992. w1.Transparency = 0
  993. w1.Reflectance = 0
  994. w1.Material = "SmoothPlastic"
  995. w1.CanCollide = false
  996. NoOutline(w1)
  997. local sz = Vector3.new(0.2, width, len1)
  998. w1.Size = sz
  999. local sp = Instance.new("SpecialMesh",w1)
  1000. sp.MeshType = "Wedge"
  1001. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  1002. w1:BreakJoints()
  1003. w1.Anchored = false
  1004. w1.Parent = workspace
  1005. w1.Transparency = 0.7
  1006. table.insert(Effects,{w1,"Disappear",.01})
  1007. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  1008. table.insert(list,w1)
  1009. end
  1010.  
  1011. if len2 > 0.01 then
  1012. local w2 = Instance.new('WedgePart', m)
  1013. game:GetService("Debris"):AddItem(w2,5)
  1014. w2.Material = "SmoothPlastic"
  1015. w2.FormFactor = 'Custom'
  1016. w2.BrickColor = BrickColor.new("Really black")
  1017. w2.Transparency = 0
  1018. w2.Reflectance = 0
  1019. w2.Material = "SmoothPlastic"
  1020. w2.CanCollide = false
  1021. NoOutline(w2)
  1022. local sz = Vector3.new(0.2, width, len2)
  1023. w2.Size = sz
  1024. local sp = Instance.new("SpecialMesh",w2)
  1025. sp.MeshType = "Wedge"
  1026. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  1027. w2:BreakJoints()
  1028. w2.Anchored = false
  1029. w2.Parent = workspace
  1030. w2.Transparency = 0.7
  1031. table.insert(Effects,{w2,"Disappear",.01})
  1032. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  1033. table.insert(list,w2)
  1034. end
  1035. return unpack(list)
  1036. end
  1037.  
  1038. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  1039.         if hit.Parent==nil then
  1040.                 return
  1041.         end
  1042.         h=hit.Parent:FindFirstChild("Humanoid")
  1043.         for _,v in pairs(hit.Parent:children()) do
  1044.         if v:IsA("Humanoid") then
  1045.         h=v
  1046.         end
  1047.         end
  1048.         if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  1049.         h=hit.Parent.Parent:FindFirstChild("Humanoid")
  1050.         end
  1051.         if hit.Parent.className=="Hat" then
  1052.         hit=hit.Parent.Parent:findFirstChild("Head")
  1053.         end
  1054.         if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  1055.         if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  1056.         --[[                if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  1057.                         return
  1058.                 end]]
  1059. --                        hs(hit,1.2)
  1060.                         c=Instance.new("ObjectValue")
  1061.                         c.Name="creator"
  1062.                         c.Value=game:service("Players").LocalPlayer
  1063.                         c.Parent=h
  1064.                         game:GetService("Debris"):AddItem(c,.5)
  1065.                 Damage=math.random(minim,maxim)
  1066. --                h:TakeDamage(Damage)
  1067.                 blocked=false
  1068.                 block=hit.Parent:findFirstChild("Block")
  1069.                 if block~=nil then
  1070.                 print(block.className)
  1071.                 if block.className=="NumberValue" then
  1072.                 if block.Value>0 then
  1073.                 blocked=true
  1074.                 if decreaseblock==nil then
  1075.                 block.Value=block.Value-1
  1076.                 end
  1077.                 end
  1078.                 end
  1079.                 if block.className=="IntValue" then
  1080.                 if block.Value>0 then
  1081.                 blocked=true
  1082.                 if decreaseblock~=nil then
  1083.                 block.Value=block.Value-1
  1084.                 end
  1085.                 end
  1086.                 end
  1087.                 end
  1088.                 if blocked==false then
  1089. --                h:TakeDamage(Damage)
  1090.                 h.Health=h.Health-Damage
  1091.                 showDamage(hit.Parent,Damage,.5,BrickColor.new("Dark stone grey"))
  1092.                 else
  1093.                 h.Health=h.Health-(Damage/2)
  1094.                 showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
  1095.                 end
  1096.                 if Type=="Knockdown" then
  1097.                 hum=hit.Parent.Humanoid
  1098. hum.PlatformStand=true
  1099. coroutine.resume(coroutine.create(function(HHumanoid)
  1100. swait(1)
  1101. HHumanoid.PlatformStand=false
  1102. end),hum)
  1103.                 local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  1104. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  1105. local bodvol=Instance.new("BodyVelocity")
  1106. bodvol.velocity=angle*knockback
  1107. bodvol.P=5000
  1108. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  1109. bodvol.Parent=hit
  1110. rl=Instance.new("BodyAngularVelocity")
  1111. rl.P=3000
  1112. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  1113. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  1114. rl.Parent=hit
  1115. game:GetService("Debris"):AddItem(bodvol,.5)
  1116. game:GetService("Debris"):AddItem(rl,.5)
  1117.                 elseif Type=="Normal" then
  1118.                 vp=Instance.new("BodyVelocity")
  1119.                 vp.P=500
  1120.                 vp.maxForce=Vector3.new(math.huge,0,math.huge)
  1121. --                vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  1122.                 if KnockbackType==1 then
  1123.                 vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  1124.                 elseif KnockbackType==2 then
  1125.                 vp.velocity=Property.CFrame.lookVector*knockback
  1126.                 end
  1127.                 if knockback>0 then
  1128.                         vp.Parent=hit.Parent.Torso
  1129.                 end
  1130.                 game:GetService("Debris"):AddItem(vp,.5)
  1131.                 elseif Type=="Up" then
  1132.                 local bodyVelocity=Instance.new("BodyVelocity")
  1133.                 bodyVelocity.velocity=vt(0,60,0)
  1134.                 bodyVelocity.P=5000
  1135.                 bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  1136.                 bodyVelocity.Parent=hit
  1137.                 game:GetService("Debris"):AddItem(bodyVelocity,1)
  1138.                 rl=Instance.new("BodyAngularVelocity")
  1139.                 rl.P=3000
  1140.                 rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  1141.                 rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  1142.                 rl.Parent=hit
  1143.                 game:GetService("Debris"):AddItem(rl,.5)
  1144.                 elseif Type=="Snare" then
  1145.                 bp=Instance.new("BodyPosition")
  1146.                 bp.P=2000
  1147.                 bp.D=100
  1148.                 bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1149.                 bp.position=hit.Parent.Torso.Position
  1150.                 bp.Parent=hit.Parent.Torso
  1151.                 game:GetService("Debris"):AddItem(bp,1)
  1152.                 elseif Type=="Target" then
  1153.                 if Targetting==false then
  1154.                 ZTarget=hit.Parent.Torso
  1155.                 coroutine.resume(coroutine.create(function(Part)
  1156.                 so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  1157.                 swait(5)
  1158.                 so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  1159.                 end),ZTarget)
  1160.                 TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  1161.                 targetgui=Instance.new("BillboardGui")
  1162.                 targetgui.Parent=ZTarget
  1163.                 targetgui.Size=UDim2.new(10,100,10,100)
  1164.                 targ=Instance.new("ImageLabel")
  1165.                 targ.Parent=targetgui
  1166.                 targ.BackgroundTransparency=1
  1167.                 targ.Image="rbxassetid://4834067"
  1168.                 targ.Size=UDim2.new(1,0,1,0)
  1169.                 cam.CameraType="Scriptable"
  1170.                 cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  1171.                 dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  1172.                 workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  1173.                 Targetting=true
  1174.                 RocketTarget=ZTarget
  1175.                 for i=1,Property do
  1176.                 --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  1177.                 if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  1178.                 swait()
  1179.                 end
  1180.                 --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  1181.                 cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  1182.                 dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  1183.                 cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  1184.                 end
  1185.                 Targetting=false
  1186.                 RocketTarget=nil
  1187.                 targetgui.Parent=nil
  1188.                 cam.CameraType="Custom"
  1189.                 end
  1190.                 end
  1191.                         debounce=Instance.new("BoolValue")
  1192.                         debounce.Name="DebounceHit"
  1193.                         debounce.Parent=hit.Parent
  1194.                         debounce.Value=true
  1195.                         game:GetService("Debris"):AddItem(debounce,Delay)
  1196.                         c=Instance.new("ObjectValue")
  1197.                         c.Name="creator"
  1198.                         c.Value=Player
  1199.                         c.Parent=h
  1200.                         game:GetService("Debris"):AddItem(c,.5)
  1201.                 CRIT=false
  1202.                 hitDeb=true
  1203.                 AttackPos=6
  1204.         end
  1205. end
  1206.  
  1207. showDamage=function(Char,Dealt,du,Color)
  1208.         m=Instance.new("Model")
  1209.         m.Name=tostring(Dealt)
  1210.         h=Instance.new("Humanoid")
  1211.         h.Health=0
  1212.         h.MaxHealth=0
  1213.         h.Parent=m
  1214.         c=Instance.new("Part")
  1215.         c.Transparency=0
  1216.         c.BrickColor=Color
  1217.         c.Name="Head"
  1218.         c.TopSurface=0
  1219.         c.BottomSurface=0
  1220.         c.formFactor="Plate"
  1221.         c.Size=Vector3.new(1,.4,1)
  1222.         ms=Instance.new("CylinderMesh")
  1223.         ms.Scale=Vector3.new(.8,.8,.8)
  1224.         if CRIT==true then
  1225.                 ms.Scale=Vector3.new(1,1.25,1)
  1226.         end
  1227.         ms.Parent=c
  1228.         c.Reflectance=0
  1229.         Instance.new("BodyGyro").Parent=c
  1230.         c.Parent=m
  1231.         if Char:findFirstChild("Head")~=nil then
  1232.         c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  1233.         elseif Char.Parent:findFirstChild("Head")~=nil then
  1234.         c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
  1235.         end
  1236.         f=Instance.new("BodyPosition")
  1237.         f.P=2000
  1238.         f.D=100
  1239.         f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1240.         f.position=c.Position+Vector3.new(0,3,0)
  1241.         f.Parent=c
  1242.         game:GetService("Debris"):AddItem(m,.5+du)
  1243.         c.CanCollide=false
  1244.         m.Parent=workspace
  1245.         c.CanCollide=false
  1246. end
  1247. function Smoke(origin,color)
  1248.         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")
  1249.         local m = Mesh(p,"Sphere",Vector3.new(1.25,1.25,1.25))
  1250.         local bp = Instance.new("BodyPosition",p)bp.D = 100 bp.P = 100 bp.position = p.Position+Vector3.new(0,7,0)
  1251.         q(function(pa,me)
  1252.                 fade(pa,.1)
  1253.                 for i=25,100 do
  1254.                         me.Scale = me.Scale+Vector3.new(0.15,0.1,0.15)
  1255.                         wait(1/30)
  1256.                 end
  1257.                 pa:Destroy()
  1258.         end,{p,m})
  1259. end
  1260. function brickMagic(origin,color,size)
  1261.         local p = Part("Effect",workspace,Vector3.new(size,size,size),origin*CFrame.Angles(rand(5),rand(5),rand(5)),color,.2,true,false,"SmoothPlastic")
  1262.         local m = Mesh(p,"Brick")
  1263.         q(function(pa,me)
  1264.                 fade(pa,.2)
  1265.                 for i=20,100 do
  1266.                         me.Scale = me.Scale-Vector3.new(0.05,0.05,0.05)
  1267.                         wait(1/30)
  1268.                 end
  1269.                 pa:Destroy()
  1270.         end,{p,m})
  1271. end
  1272. function spikeMagic(origin,size,color)
  1273.         local p = Part("Effect",workspace,Vector3.new(1,1,1),origin*CFrame.new(0,-size,0),color,1,true,false,"SmoothPlastic")
  1274.         local m = Mesh(p,"FileMesh",Vector3.new(size/2,size*2,size/2),asset..meshes["spike"])
  1275.         q(function(pa,me)
  1276.         appear(pa,1)
  1277.         for i=1,size,.5 do
  1278.                 wait(1/30)
  1279.                 pa.CFrame = pa.CFrame*CFrame.new(0,.5,0)
  1280.         end
  1281.         wait(math.random(2,3))fade(pa,0)
  1282.         Delay(3,function()pa:Destroy()end)
  1283.         end,{p,m})
  1284. end
  1285. function placePart(origin,size,color,material)
  1286.         local p = Part("Effect",workspace,Vector3.new(size,size,size),origin*CFrame.Angles(rand(5),rand(5),rand(5)),color,0,true,true,material)
  1287.         local m = Mesh(p,"Brick")
  1288.         q(function(pa,me)
  1289.                 wait(5)
  1290.                 fade(pa,0)
  1291.                 Delay(1.25,function()pa:Destroy()end)
  1292.         end,{p,m})
  1293. end
  1294. function placePartRandSize(origin,min,max,color,material)
  1295.         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)
  1296.         local m = Mesh(p,"Brick")
  1297.         q(function(pa,me)
  1298.                 wait(5)
  1299.                 fade(pa,0)
  1300.                 Delay(1.25,function()pa:Destroy()end)
  1301.         end,{p,m})
  1302. end
  1303. function crater(origin,dist)
  1304.         local b = workspace.Base
  1305.         local bc = b and tostring(b.BrickColor) or "Bright green"
  1306.         local m = b and b.Material or "Grass"
  1307.         for i=0,360,30 do
  1308.                 local cf = origin*CFrame.Angles(0,math.rad(i),0)*CFrame.new(0,0,dist)*CFrame.Angles(math.rad(i/30),0,rand(5))
  1309.                 placePartRandSize(cf,5,15,bc,m)
  1310.         end
  1311. end
  1312. function cylinderExplode(origin,color,size,ysize)
  1313.         local p = Part("Effect",workspace,Vector3.new(size,ysize or size,size),origin,color,.2,true,false,"SmoothPlastic")
  1314.         local m = Instance.new("CylinderMesh",p)
  1315.         q(function(pa,me)
  1316.                 for i=.2,1,.0075 do
  1317.                         me.Scale = me.Scale+Vector3.new(.1,0,.1)
  1318.                         pa.Transparency = i
  1319.                         wait(1/30)
  1320.                 end
  1321.                 pa:Destroy()
  1322.         end,{p,m})
  1323. end
  1324. function ringExplode(origin,color,size)
  1325.         local p = Part("Effect",workspace,Vector3.new(1,1,1),origin,color,.2,true,false,"SmoothPlastic")
  1326.         local m = Mesh(p,"FileMesh",Vector3.new(size,size,1),asset..meshes["ring"])
  1327.         q(function(pa,me)
  1328.                 for i=.2,1,.0075 do
  1329.                         me.Scale = me.Scale+Vector3.new(0.25,0.25,0)
  1330.                         pa.Transparency = i
  1331.                         wait(1/30)
  1332.                 end
  1333.                 pa:Destroy()
  1334.         end,{p,m})
  1335. end
  1336. function crownExplode(origin,color,size)
  1337.         local p = Part("Effect",workspace,Vector3.new(size,size,size),origin,color,.2,true,false,"SmoothPlastic")
  1338.         local m = Mesh(p,"FileMesh",Vector3.new(size/2,size/2,size/2),asset..meshes["crown"])
  1339.         q(function(pa,me)
  1340.                 for i=.2,1,.025 do
  1341.                         me.Scale = me.Scale+Vector3.new(0.75,0.75,0.75)
  1342.                         pa.Transparency = i
  1343.                         wait(1/30)
  1344.                 end
  1345.                 pa:Destroy()
  1346.         end,{p,m})
  1347. end
  1348. function glitter(origin,color)
  1349.         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")
  1350.         local m = Mesh(p,"Brick",Vector3.new(1,1,1))
  1351.         q(function(pa,me)
  1352.                 fade(pa,0)
  1353.                 for i=0,1,.05 do
  1354.                         me.Scale = me.Scale-Vector3.new(0.05,0.05,0.05)
  1355.                         wait(1/30)
  1356.                 end
  1357.                 pa:Destroy()
  1358.         end,{p,m})
  1359. end
  1360. function sphereExtend(origin,color,size)
  1361.         local p = Part("Effect",workspace,Vector3.new(size,size,size),origin,color,0,true,false,"SmoothPlastic")
  1362.         local m = Mesh(p,"Sphere")
  1363.         q(function(pa,me)
  1364.                 for i=0,1,0.05 do
  1365.                         me.Scale = me.Scale+Vector3.new(0,i*10,0)
  1366.                         pa.Transparency = i
  1367.                         wait(1/30)
  1368.                 end
  1369.                 pa:Destroy()
  1370.         end,{p,m})
  1371. end
  1372. function quickSound(id,v)
  1373.         local s = Instance.new("Sound",workspace)
  1374.         s.SoundId = id
  1375.         s.PlayOnRemove = true
  1376.         s.Volume = v or 1
  1377.         delay(0.025,function()s:remove()end)
  1378. end
  1379. function checkDmgArea(origin,dmg,d)
  1380.         for i,v in pairs(workspace:children())do
  1381.                 if v~=char and v:FindFirstChild("Torso") then
  1382.                         local h;
  1383.                         for _,k in pairs(v:children())do if k:IsA("Humanoid") then h = k end end
  1384.                         local dist = (origin.p - v:FindFirstChild("Torso").CFrame.p).magnitude
  1385.                         if dist < d and h~=nil then
  1386.                                 h.Health = h.Health - dmg
  1387.                         end
  1388.                 end
  1389.         end
  1390. end
  1391.  
  1392.  
  1393.  
  1394. p1 =  Instance.new("Part", Cha)
  1395. p1.BrickColor = BrickColor.new("Really black")
  1396. p1.FormFactor = Enum.FormFactor.Custom
  1397. p1.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  1398. p1.CFrame = CFrame.new(-0.0500000007, 10.3249998, 8.20000172, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  1399. p1.Anchored = false
  1400. p1.CanCollide = false
  1401. p1.BottomSurface = Enum.SurfaceType.Smooth
  1402. p1.TopSurface = Enum.SurfaceType.Smooth
  1403. b1 = Instance.new("SpecialMesh", p1)
  1404. b1.MeshType = Enum.MeshType.Brick
  1405. b1.Name = "Mesh"
  1406. b1.Scale = Vector3.new(0.50000006, 0.75, 0.50000006)
  1407. p2 =  Instance.new("Part", Cha)
  1408. p2.BrickColor = BrickColor.new("Really black")
  1409. p2.FormFactor = Enum.FormFactor.Custom
  1410. p2.Size = Vector3.new(0.200000003, 0.200000003, 2)
  1411. 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)
  1412. p2.Anchored = false
  1413. p2.CanCollide = false
  1414. p2.BottomSurface = Enum.SurfaceType.Smooth
  1415. p2.TopSurface = Enum.SurfaceType.Smooth
  1416. b2 = Instance.new("SpecialMesh", p2)
  1417. b2.MeshType = Enum.MeshType.Brick
  1418. b2.Name = "Mesh"
  1419. b2.Scale = Vector3.new(0.99999994, 0.750000238, 1)
  1420. p3 =  Instance.new("Part", Cha)
  1421. p3.BrickColor = BrickColor.new("Really black")
  1422. p3.FormFactor = Enum.FormFactor.Custom
  1423. p3.Size = Vector3.new(0.200000003, 0.200000003, 0.50000006)
  1424. 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)
  1425. p3.Anchored = false
  1426. p3.CanCollide = false
  1427. p3.BottomSurface = Enum.SurfaceType.Smooth
  1428. p3.TopSurface = Enum.SurfaceType.Smooth
  1429. b3 = Instance.new("SpecialMesh", p3)
  1430. b3.MeshType = Enum.MeshType.Brick
  1431. b3.Name = "Mesh"
  1432. b3.Scale = Vector3.new(0.99999994, 0.750000298, 1)
  1433. p4 =  Instance.new("Part", Cha)
  1434. p4.BrickColor = BrickColor.new("Really black")
  1435. p4.FormFactor = Enum.FormFactor.Custom
  1436. p4.Size = Vector3.new(0.200000003, 0.200000003, 3.40000033)
  1437. 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)
  1438. p4.Anchored = false
  1439. p4.CanCollide = false
  1440. p4.BottomSurface = Enum.SurfaceType.Smooth
  1441. p4.TopSurface = Enum.SurfaceType.Smooth
  1442. b4 = Instance.new("SpecialMesh", p4)
  1443. b4.MeshType = Enum.MeshType.Brick
  1444. b4.Name = "Mesh"
  1445. b4.Scale = Vector3.new(0.99999994, 0.500000179, 1)
  1446. p5 =  Instance.new("Part", Cha)
  1447. p5.BrickColor = BrickColor.new("Really black")
  1448. p5.FormFactor = Enum.FormFactor.Custom
  1449. p5.Size = Vector3.new(0.25, 0.200000003, 0.200000003)
  1450. 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)
  1451. p5.Anchored = false
  1452. p5.CanCollide = false
  1453. p5.BottomSurface = Enum.SurfaceType.Smooth
  1454. p5.TopSurface = Enum.SurfaceType.Smooth
  1455. b5 = Instance.new("SpecialMesh", p5)
  1456. b5.MeshType = Enum.MeshType.Cylinder
  1457. b5.Name = "Mesh"
  1458. b5.Scale = Vector3.new(1, 0.875, 0.875)
  1459. p6 =  Instance.new("Part", Cha)
  1460. p6.BrickColor = BrickColor.new("Really black")
  1461. p6.FormFactor = Enum.FormFactor.Custom
  1462. p6.Size = Vector3.new(1.45000005, 0.200000003, 0.200000003)
  1463. 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)
  1464. p6.Anchored = false
  1465. p6.CanCollide = false
  1466. p6.BottomSurface = Enum.SurfaceType.Smooth
  1467. p6.TopSurface = Enum.SurfaceType.Smooth
  1468. b6 = Instance.new("SpecialMesh", p6)
  1469. b6.MeshType = Enum.MeshType.Cylinder
  1470. b6.Name = "Mesh"
  1471. b6.Scale = Vector3.new(1, 0.5, 0.5)
  1472. p7 =  Instance.new("Part", Cha)
  1473. p7.BrickColor = BrickColor.new("Pastel brown")
  1474. p7.Transparency = 1
  1475. p7.FormFactor = Enum.FormFactor.Custom
  1476. p7.Size = Vector3.new(0.5, 0.5, 1)
  1477. p7.CFrame = CFrame.new(-0.0500000007, 9.75, 12.8249979, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  1478. p7.Anchored = false
  1479. p7.CanCollide = false
  1480. p7.BottomSurface = Enum.SurfaceType.Smooth
  1481. p7.TopSurface = Enum.SurfaceType.Smooth
  1482. b7 = Instance.new("SpecialMesh", p7)
  1483. b7.MeshType = Enum.MeshType.Brick
  1484. b7.Name = "Mesh"
  1485. p8 =  Instance.new("Part", Cha)
  1486. p8.BrickColor = BrickColor.new("Really black")
  1487. p8.FormFactor = Enum.FormFactor.Custom
  1488. p8.Size = Vector3.new(0.200000003, 0.25000003, 3.5)
  1489. 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)
  1490. p8.Anchored = false
  1491. p8.CanCollide = false
  1492. p8.BottomSurface = Enum.SurfaceType.Smooth
  1493. p8.TopSurface = Enum.SurfaceType.Smooth
  1494. b8 = Instance.new("SpecialMesh", p8)
  1495. b8.MeshType = Enum.MeshType.Brick
  1496. b8.Name = "Mesh"
  1497. b8.Scale = Vector3.new(0.99999994, 1, 1)
  1498. p9 =  Instance.new("Part", Cha)
  1499. p9.BrickColor = BrickColor.new("Really black")
  1500. p9.FormFactor = Enum.FormFactor.Custom
  1501. p9.Size = Vector3.new(0.200000003, 0.200000003, 0.300000131)
  1502. 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)
  1503. p9.Anchored = false
  1504. p9.CanCollide = false
  1505. p9.BottomSurface = Enum.SurfaceType.Smooth
  1506. p9.TopSurface = Enum.SurfaceType.Smooth
  1507. b9 = Instance.new("SpecialMesh", p9)
  1508. b9.MeshType = Enum.MeshType.Cylinder
  1509. b9.Name = "Mesh"
  1510. b9.Scale = Vector3.new(0.5, 0.99999994, 1)
  1511. p10 =  Instance.new("Part", Cha)
  1512. p10.BrickColor = BrickColor.new("Really black")
  1513. p10.FormFactor = Enum.FormFactor.Custom
  1514. p10.Size = Vector3.new(0.200000003, 0.5, 0.800000012)
  1515. 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)
  1516. p10.Anchored = false
  1517. p10.CanCollide = false
  1518. p10.BottomSurface = Enum.SurfaceType.Smooth
  1519. p10.TopSurface = Enum.SurfaceType.Smooth
  1520. b10 = Instance.new("SpecialMesh", p10)
  1521. b10.MeshType = Enum.MeshType.Brick
  1522. b10.Name = "Mesh"
  1523. b10.Scale = Vector3.new(0.99999994, 1, 1)
  1524. p11 =  Instance.new("Part", Cha)
  1525. p11.BrickColor = BrickColor.new("Really black")
  1526. p11.FormFactor = Enum.FormFactor.Custom
  1527. p11.Size = Vector3.new(0.200000003, 0.200000003, 0.300000012)
  1528. 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)
  1529. p11.Anchored = false
  1530. p11.CanCollide = false
  1531. p11.BottomSurface = Enum.SurfaceType.Smooth
  1532. p11.TopSurface = Enum.SurfaceType.Smooth
  1533. b11 = Instance.new("SpecialMesh", p11)
  1534. b11.MeshType = Enum.MeshType.Brick
  1535. b11.Name = "Mesh"
  1536. b11.Scale = Vector3.new(0.99999994, 0.500000119, 1)
  1537. p12 =  Instance.new("Part", Cha)
  1538. p12.BrickColor = BrickColor.new("Really black")
  1539. p12.FormFactor = Enum.FormFactor.Custom
  1540. p12.Size = Vector3.new(0.200000003, 0.450000048, 0.200000003)
  1541. 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)
  1542. p12.Anchored = false
  1543. p12.CanCollide = false
  1544. p12.BottomSurface = Enum.SurfaceType.Smooth
  1545. p12.TopSurface = Enum.SurfaceType.Smooth
  1546. b12 = Instance.new("SpecialMesh", p12)
  1547. b12.MeshType = Enum.MeshType.Brick
  1548. b12.Name = "Mesh"
  1549. b12.Scale = Vector3.new(0.99999994, 1, 0.50000006)
  1550. p13 =  Instance.new("Part", Cha)
  1551. p13.BrickColor = BrickColor.new("Really black")
  1552. p13.FormFactor = Enum.FormFactor.Custom
  1553. p13.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  1554. 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)
  1555. p13.Anchored = false
  1556. p13.CanCollide = false
  1557. p13.BottomSurface = Enum.SurfaceType.Smooth
  1558. p13.TopSurface = Enum.SurfaceType.Smooth
  1559. b13 = Instance.new("SpecialMesh", p13)
  1560. b13.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1561. b13.TextureId = ""
  1562. b13.MeshType = Enum.MeshType.FileMesh
  1563. b13.Name = "Mesh"
  1564. b13.Scale = Vector3.new(0.5, 0.5, 0.349999994)
  1565. p14 =  Instance.new("Part", Cha)
  1566. p14.BrickColor = BrickColor.new("Really black")
  1567. p14.FormFactor = Enum.FormFactor.Custom
  1568. p14.Size = Vector3.new(0.600000024, 0.200000003, 0.249999896)
  1569. 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)
  1570. p14.Anchored = false
  1571. p14.CanCollide = false
  1572. p14.BottomSurface = Enum.SurfaceType.Smooth
  1573. p14.TopSurface = Enum.SurfaceType.Smooth
  1574. b14 = Instance.new("SpecialMesh", p14)
  1575. b14.MeshType = Enum.MeshType.Cylinder
  1576. b14.Name = "Mesh"
  1577. b14.Scale = Vector3.new(1, 0.750000179, 1)
  1578. p15 =  Instance.new("Part", Cha)
  1579. p15.BrickColor = BrickColor.new("Really black")
  1580. p15.FormFactor = Enum.FormFactor.Custom
  1581. p15.Size = Vector3.new(0.200000003, 0.200000003, 0.44999975)
  1582. 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)
  1583. p15.Anchored = false
  1584. p15.CanCollide = false
  1585. p15.BottomSurface = Enum.SurfaceType.Smooth
  1586. p15.TopSurface = Enum.SurfaceType.Smooth
  1587. b15 = Instance.new("SpecialMesh", p15)
  1588. b15.MeshType = Enum.MeshType.Brick
  1589. b15.Name = "Mesh"
  1590. b15.Scale = Vector3.new(0.99999994, 0.750000179, 1)
  1591. p16 =  Instance.new("Part", Cha)
  1592. p16.BrickColor = BrickColor.new("Really black")
  1593. p16.FormFactor = Enum.FormFactor.Custom
  1594. p16.Size = Vector3.new(1.20000005, 0.200000003, 0.200000003)
  1595. 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)
  1596. p16.Anchored = false
  1597. p16.CanCollide = false
  1598. p16.BottomSurface = Enum.SurfaceType.Smooth
  1599. p16.TopSurface = Enum.SurfaceType.Smooth
  1600. b16 = Instance.new("SpecialMesh", p16)
  1601. b16.MeshType = Enum.MeshType.Cylinder
  1602. b16.Name = "Mesh"
  1603. p17 =  Instance.new("Part", Cha)
  1604. p17.BrickColor = BrickColor.new("Really black")
  1605. p17.FormFactor = Enum.FormFactor.Custom
  1606. p17.Size = Vector3.new(0.200000003, 0.75, 0.200000003)
  1607. 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)
  1608. p17.Anchored = false
  1609. p17.CanCollide = false
  1610. p17.BottomSurface = Enum.SurfaceType.Smooth
  1611. p17.TopSurface = Enum.SurfaceType.Smooth
  1612. b17 = Instance.new("SpecialMesh", p17)
  1613. b17.MeshType = Enum.MeshType.Brick
  1614. b17.Name = "Mesh"
  1615. b17.Scale = Vector3.new(0.99999994, 1, 0.500000715)
  1616. p18 =  Instance.new("Part", Cha)
  1617. p18.BrickColor = BrickColor.new("Really black")
  1618. p18.FormFactor = Enum.FormFactor.Custom
  1619. p18.Size = Vector3.new(0.200000003, 0.200000003, 0.650000095)
  1620. 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)
  1621. p18.Anchored = false
  1622. p18.CanCollide = false
  1623. p18.BottomSurface = Enum.SurfaceType.Smooth
  1624. p18.TopSurface = Enum.SurfaceType.Smooth
  1625. b18 = Instance.new("SpecialMesh", p18)
  1626. b18.MeshType = Enum.MeshType.Brick
  1627. b18.Name = "Mesh"
  1628. b18.Scale = Vector3.new(0.99999994, 0.500000358, 1)
  1629. p19 =  Instance.new("Part", Cha)
  1630. p19.BrickColor = BrickColor.new("Really black")
  1631. p19.FormFactor = Enum.FormFactor.Custom
  1632. p19.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  1633. p19.CFrame = CFrame.new(-0.0500000007, 10.6750002, 11.3250027, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  1634. p19.Anchored = false
  1635. p19.CanCollide = false
  1636. p19.BottomSurface = Enum.SurfaceType.Smooth
  1637. p19.TopSurface = Enum.SurfaceType.Smooth
  1638. b19 = Instance.new("SpecialMesh", p19)
  1639. b19.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1640. b19.TextureId = ""
  1641. b19.MeshType = Enum.MeshType.FileMesh
  1642. b19.Name = "Mesh"
  1643. b19.Scale = Vector3.new(0.25, 0.25, 0.349999994)
  1644. p20 =  Instance.new("Part", Cha)
  1645. p20.BrickColor = BrickColor.new("Really black")
  1646. p20.FormFactor = Enum.FormFactor.Custom
  1647. p20.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  1648. 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)
  1649. p20.Anchored = false
  1650. p20.CanCollide = false
  1651. p20.BottomSurface = Enum.SurfaceType.Smooth
  1652. p20.TopSurface = Enum.SurfaceType.Smooth
  1653. b20 = Instance.new("SpecialMesh", p20)
  1654. b20.MeshType = Enum.MeshType.Cylinder
  1655. b20.Name = "Mesh"
  1656. b20.Scale = Vector3.new(0.500000358, 1, 1)
  1657. p21 =  Instance.new("Part", Cha)
  1658. p21.BrickColor = BrickColor.new("Really black")
  1659. p21.FormFactor = Enum.FormFactor.Custom
  1660. p21.Size = Vector3.new(0.300000072, 0.200000003, 0.200000003)
  1661. 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)
  1662. p21.Anchored = false
  1663. p21.CanCollide = false
  1664. p21.BottomSurface = Enum.SurfaceType.Smooth
  1665. p21.TopSurface = Enum.SurfaceType.Smooth
  1666. b21 = Instance.new("SpecialMesh", p21)
  1667. b21.MeshType = Enum.MeshType.Cylinder
  1668. b21.Name = "Mesh"
  1669. p22 =  Instance.new("Part", Cha)
  1670. p22.BrickColor = BrickColor.new("Really black")
  1671. p22.FormFactor = Enum.FormFactor.Custom
  1672. p22.Size = Vector3.new(0.5, 0.200000003, 0.5)
  1673. p22.CFrame = CFrame.new(-0.0500000007, 10.7749996, 11.3499994, -1, 8.74227766e-008, 0, 0, 0, -1, -8.74227766e-008, -1, 0)
  1674. p22.Anchored = false
  1675. p22.CanCollide = false
  1676. p22.BottomSurface = Enum.SurfaceType.Smooth
  1677. p22.TopSurface = Enum.SurfaceType.Smooth
  1678. b22 = Instance.new("SpecialMesh", p22)
  1679. b22.MeshId = "http://www.roblox.com/asset/?id=1033714"
  1680. b22.TextureId = ""
  1681. b22.MeshType = Enum.MeshType.FileMesh
  1682. b22.Name = "Mesh"
  1683. b22.VertexColor = Vector3.new(3.00000003e+015, 2.99999995e+031, 3.00000003e+015)
  1684. b22.Scale = Vector3.new(0.100000001, 1, 0.100000001)
  1685. p23 =  Instance.new("Part", Cha)
  1686. p23.BrickColor = BrickColor.new("Really black")
  1687. p23.FormFactor = Enum.FormFactor.Custom
  1688. p23.Size = Vector3.new(0.5, 0.5, 0.5)
  1689. p23.CFrame = CFrame.new(-0.0499995016, 10.7749996, 10.0999994, 1, 0, 0, 0, 0, -1, 0, 1, 0)
  1690. p23.Anchored = false
  1691. p23.CanCollide = false
  1692. p23.BottomSurface = Enum.SurfaceType.Smooth
  1693. p23.TopSurface = Enum.SurfaceType.Smooth
  1694. b23 = Instance.new("SpecialMesh", p23)
  1695. b23.MeshId = "http://www.roblox.com/asset/?id=1033714"
  1696. b23.TextureId = ""
  1697. b23.MeshType = Enum.MeshType.FileMesh
  1698. b23.Name = "Mesh"
  1699. b23.VertexColor = Vector3.new(3.00000003e+015, 2.99999995e+031, 3.00000003e+015)
  1700. b23.Scale = Vector3.new(0.200000003, 1, 0.200000003)
  1701. p24 =  Instance.new("Part", Cha)
  1702. p24.BrickColor = BrickColor.new("Really black")
  1703. p24.FormFactor = Enum.FormFactor.Custom
  1704. p24.Size = Vector3.new(0.200000003, 0.224999994, 0.224999994)
  1705. 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)
  1706. p24.Anchored = false
  1707. p24.CanCollide = false
  1708. p24.BottomSurface = Enum.SurfaceType.Smooth
  1709. p24.TopSurface = Enum.SurfaceType.Smooth
  1710. b24 = Instance.new("SpecialMesh", p24)
  1711. b24.MeshType = Enum.MeshType.Cylinder
  1712. b24.Name = "Mesh"
  1713. b24.Scale = Vector3.new(0.500000119, 1, 1)
  1714. p25 =  Instance.new("Part", Cha)
  1715. p25.BrickColor = BrickColor.new("Really black")
  1716. p25.FormFactor = Enum.FormFactor.Custom
  1717. p25.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  1718. p25.CFrame = CFrame.new(-0.0500000007, 10.5249996, 10.3000031, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  1719. p25.Anchored = false
  1720. p25.CanCollide = false
  1721. p25.BottomSurface = Enum.SurfaceType.Smooth
  1722. p25.TopSurface = Enum.SurfaceType.Smooth
  1723. b25 = Instance.new("SpecialMesh", p25)
  1724. b25.MeshId = "http://www.roblox.com/asset/?id=3270017"
  1725. b25.TextureId = ""
  1726. b25.MeshType = Enum.MeshType.FileMesh
  1727. b25.Name = "Mesh"
  1728. b25.Scale = Vector3.new(0.25, 0.5, 0.349999994)
  1729. p26 =  Instance.new("Part", Cha)
  1730. p26.BrickColor = BrickColor.new("Really black")
  1731. p26.FormFactor = Enum.FormFactor.Custom
  1732. p26.Size = Vector3.new(0.200000003, 1.20000005, 0.5)
  1733. 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)
  1734. p26.Anchored = false
  1735. p26.CanCollide = false
  1736. p26.BottomSurface = Enum.SurfaceType.Smooth
  1737. p26.TopSurface = Enum.SurfaceType.Smooth
  1738. b26 = Instance.new("SpecialMesh", p26)
  1739. b26.MeshType = Enum.MeshType.Brick
  1740. b26.Name = "Mesh"
  1741. b26.Scale = Vector3.new(0.99999994, 1, 1)
  1742. p27 =  Instance.new("Part", Cha)
  1743. p27.BrickColor = BrickColor.new("Really black")
  1744. p27.FormFactor = Enum.FormFactor.Custom
  1745. p27.Size = Vector3.new(0.200000003, 1, 0.200000003)
  1746. 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)
  1747. p27.Anchored = false
  1748. p27.CanCollide = false
  1749. p27.BottomSurface = Enum.SurfaceType.Smooth
  1750. p27.TopSurface = Enum.SurfaceType.Smooth
  1751. b27 = Instance.new("SpecialMesh", p27)
  1752. b27.MeshType = Enum.MeshType.Brick
  1753. b27.Name = "Mesh"
  1754. b27.Scale = Vector3.new(0.5, 1, 0.750000119)
  1755. p28 =  Instance.new("Part", Cha)
  1756. p28.BrickColor = BrickColor.new("Really black")
  1757. p28.FormFactor = Enum.FormFactor.Custom
  1758. p28.Size = Vector3.new(0.200000003, 0.200000003, 0.550000012)
  1759. 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)
  1760. p28.Anchored = false
  1761. p28.CanCollide = false
  1762. p28.BottomSurface = Enum.SurfaceType.Smooth
  1763. p28.TopSurface = Enum.SurfaceType.Smooth
  1764. b28 = Instance.new("SpecialMesh", p28)
  1765. b28.MeshType = Enum.MeshType.Brick
  1766. b28.Name = "Mesh"
  1767. b28.Scale = Vector3.new(0.99999994, 0.750000417, 1)
  1768. p29 =  Instance.new("Part", Cha)
  1769. p29.BrickColor = BrickColor.new("Really black")
  1770. p29.FormFactor = Enum.FormFactor.Custom
  1771. p29.Size = Vector3.new(0.200000003, 0.50000006, 1.25)
  1772. 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)
  1773. p29.Anchored = false
  1774. p29.CanCollide = false
  1775. p29.BottomSurface = Enum.SurfaceType.Smooth
  1776. p29.TopSurface = Enum.SurfaceType.Smooth
  1777. b29 = Instance.new("SpecialMesh", p29)
  1778. b29.MeshType = Enum.MeshType.Brick
  1779. b29.Name = "Mesh"
  1780. b29.Scale = Vector3.new(0.99999994, 1, 1)
  1781. p30 =  Instance.new("Part", Cha)
  1782. p30.BrickColor = BrickColor.new("Really black")
  1783. p30.FormFactor = Enum.FormFactor.Custom
  1784. p30.Size = Vector3.new(0.200000003, 0.450000018, 0.200000003)
  1785. 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)
  1786. p30.Anchored = false
  1787. p30.CanCollide = false
  1788. p30.BottomSurface = Enum.SurfaceType.Smooth
  1789. p30.TopSurface = Enum.SurfaceType.Smooth
  1790. b30 = Instance.new("SpecialMesh", p30)
  1791. b30.MeshType = Enum.MeshType.Brick
  1792. b30.Name = "Mesh"
  1793. b30.Scale = Vector3.new(0.625, 1, 0.875)
  1794. p31 =  Instance.new("Part", Cha)
  1795. p31.BrickColor = BrickColor.new("Really black")
  1796. p31.FormFactor = Enum.FormFactor.Custom
  1797. p31.Size = Vector3.new(0.200000003, 0.899999976, 0.5)
  1798. 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)
  1799. p31.Anchored = false
  1800. p31.CanCollide = false
  1801. p31.BottomSurface = Enum.SurfaceType.Smooth
  1802. p31.TopSurface = Enum.SurfaceType.Smooth
  1803. b31 = Instance.new("SpecialMesh", p31)
  1804. b31.MeshType = Enum.MeshType.Brick
  1805. b31.Name = "Mesh"
  1806. b31.Scale = Vector3.new(0.99999994, 1, 1)
  1807. p32 =  Instance.new("Part", Cha)
  1808. p32.BrickColor = BrickColor.new("Really black")
  1809. p32.FormFactor = Enum.FormFactor.Custom
  1810. p32.Size = Vector3.new(0.425000012, 0.200000003, 0.275000006)
  1811. 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)
  1812. p32.Anchored = false
  1813. p32.CanCollide = false
  1814. p32.BottomSurface = Enum.SurfaceType.Smooth
  1815. p32.TopSurface = Enum.SurfaceType.Smooth
  1816. b32 = Instance.new("SpecialMesh", p32)
  1817. b32.MeshType = Enum.MeshType.Brick
  1818. b32.Name = "Mesh"
  1819. b32.Scale = Vector3.new(1, 0.500000119, 1)
  1820. p33 =  Instance.new("Part", Cha)
  1821. p33.BrickColor = BrickColor.new("Black")
  1822. p33.FormFactor = Enum.FormFactor.Custom
  1823. p33.Size = Vector3.new(0.899999976, 0.200000003, 0.200000003)
  1824. 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)
  1825. p33.Anchored = false
  1826. p33.CanCollide = false
  1827. p33.BottomSurface = Enum.SurfaceType.Smooth
  1828. p33.TopSurface = Enum.SurfaceType.Smooth
  1829. b33 = Instance.new("SpecialMesh", p33)
  1830. b33.MeshType = Enum.MeshType.Cylinder
  1831. b33.Name = "Mesh"
  1832. b33.Scale = Vector3.new(1, 0.875, 0.875)
  1833. p34 =  Instance.new("Part", Cha)
  1834. p34.BrickColor = BrickColor.new("Really black")
  1835. p34.FormFactor = Enum.FormFactor.Custom
  1836. p34.Size = Vector3.new(0.200000003, 1, 0.200000003)
  1837. 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)
  1838. p34.Anchored = false
  1839. p34.CanCollide = false
  1840. p34.BottomSurface = Enum.SurfaceType.Smooth
  1841. p34.TopSurface = Enum.SurfaceType.Smooth
  1842. b34 = Instance.new("SpecialMesh", p34)
  1843. b34.MeshType = Enum.MeshType.Brick
  1844. b34.Name = "Mesh"
  1845. b34.Scale = Vector3.new(0.5, 1, 0.750000119)
  1846. p35 =  Instance.new("Part", Cha)
  1847. p35.BrickColor = BrickColor.new("Really black")
  1848. p35.FormFactor = Enum.FormFactor.Custom
  1849. p35.Size = Vector3.new(0.200000003, 0.450000018, 0.200000003)
  1850. 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)
  1851. p35.Anchored = false
  1852. p35.CanCollide = false
  1853. p35.BottomSurface = Enum.SurfaceType.Smooth
  1854. p35.TopSurface = Enum.SurfaceType.Smooth
  1855. b35 = Instance.new("SpecialMesh", p35)
  1856. b35.MeshType = Enum.MeshType.Brick
  1857. b35.Name = "Mesh"
  1858. b35.Scale = Vector3.new(0.625, 1, 0.875)
  1859. p36 =  Instance.new("Part", Cha)
  1860. p36.BrickColor = BrickColor.new("Really black")
  1861. p36.FormFactor = Enum.FormFactor.Custom
  1862. p36.Size = Vector3.new(0.299999982, 0.200000003, 0.700000048)
  1863. 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)
  1864. p36.Anchored = false
  1865. p36.CanCollide = false
  1866. p36.BottomSurface = Enum.SurfaceType.Smooth
  1867. p36.TopSurface = Enum.SurfaceType.Smooth
  1868. b36 = Instance.new("SpecialMesh", p36)
  1869. b36.MeshType = Enum.MeshType.Brick
  1870. b36.Name = "Mesh"
  1871. b36.Scale = Vector3.new(1, 0.749999881, 1)
  1872. p37 =  Instance.new("Part", Cha)
  1873. p37.BrickColor = BrickColor.new("Really black")
  1874. p37.FormFactor = Enum.FormFactor.Custom
  1875. p37.Size = Vector3.new(0.425000012, 0.200000003, 0.275000006)
  1876. 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)
  1877. p37.Anchored = false
  1878. p37.CanCollide = false
  1879. p37.BottomSurface = Enum.SurfaceType.Smooth
  1880. p37.TopSurface = Enum.SurfaceType.Smooth
  1881. b37 = Instance.new("SpecialMesh", p37)
  1882. b37.MeshType = Enum.MeshType.Brick
  1883. b37.Name = "Mesh"
  1884. b37.Scale = Vector3.new(1, 0.500000119, 1)
  1885. p38 =  Instance.new("Part", Cha)
  1886. p38.BrickColor = BrickColor.new("Really black")
  1887. p38.FormFactor = Enum.FormFactor.Custom
  1888. p38.Size = Vector3.new(1.35000002, 0.200000003, 0.200000003)
  1889. 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)
  1890. p38.Anchored = false
  1891. p38.CanCollide = false
  1892. p38.BottomSurface = Enum.SurfaceType.Smooth
  1893. p38.TopSurface = Enum.SurfaceType.Smooth
  1894. b38 = Instance.new("SpecialMesh", p38)
  1895. b38.MeshType = Enum.MeshType.Cylinder
  1896. b38.Name = "Mesh"
  1897. b38.Scale = Vector3.new(1, 0.5, 0.5)
  1898. p39 =  Instance.new("Part", Cha)
  1899. p39.BrickColor = BrickColor.new("Really black")
  1900. p39.FormFactor = Enum.FormFactor.Custom
  1901. p39.Size = Vector3.new(0.75, 0.200000003, 0.200000003)
  1902. 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)
  1903. p39.Anchored = false
  1904. p39.CanCollide = false
  1905. p39.BottomSurface = Enum.SurfaceType.Smooth
  1906. p39.TopSurface = Enum.SurfaceType.Smooth
  1907. b39 = Instance.new("SpecialMesh", p39)
  1908. b39.MeshType = Enum.MeshType.Cylinder
  1909. b39.Name = "Mesh"
  1910. b39.Scale = Vector3.new(1, 0.75, 0.75)
  1911. p40 =  Instance.new("Part", Cha)
  1912. p40.BrickColor = BrickColor.new("Really black")
  1913. p40.FormFactor = Enum.FormFactor.Custom
  1914. p40.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  1915. 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)
  1916. p40.Anchored = false
  1917. p40.CanCollide = false
  1918. p40.BottomSurface = Enum.SurfaceType.Smooth
  1919. p40.TopSurface = Enum.SurfaceType.Smooth
  1920. b40 = Instance.new("SpecialMesh", p40)
  1921. b40.MeshType = Enum.MeshType.Cylinder
  1922. b40.Name = "Mesh"
  1923. b40.Scale = Vector3.new(0.5, 0.875, 0.875)
  1924. p41 =  Instance.new("Part", Cha)
  1925. p41.BrickColor = BrickColor.new("Really black")
  1926. p41.FormFactor = Enum.FormFactor.Custom
  1927. p41.Size = Vector3.new(0.899999976, 0.200000003, 0.200000003)
  1928. 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)
  1929. p41.Anchored = false
  1930. p41.CanCollide = false
  1931. p41.BottomSurface = Enum.SurfaceType.Smooth
  1932. p41.TopSurface = Enum.SurfaceType.Smooth
  1933. b41 = Instance.new("SpecialMesh", p41)
  1934. b41.MeshType = Enum.MeshType.Cylinder
  1935. b41.Name = "Mesh"
  1936. b41.Scale = Vector3.new(1, 0.875, 0.875)
  1937. p42 = Instance.new("Part", Cha)
  1938. p42.BrickColor = BrickColor.new("Really black")
  1939. p42.FormFactor = Enum.FormFactor.Custom
  1940. p42.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  1941. 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)
  1942. p42.Anchored = false
  1943. p42.CanCollide = false
  1944. p42.BottomSurface = Enum.SurfaceType.Smooth
  1945. p42.TopSurface = Enum.SurfaceType.Smooth
  1946. b42 = Instance.new("SpecialMesh", p42)
  1947. b42.MeshType = Enum.MeshType.Cylinder
  1948. b42.Name = "Mesh"
  1949. b42.Scale = Vector3.new(0.500000119, 1, 1)
  1950. p43 = Instance.new("Part", Cha)
  1951. p43.BrickColor = BrickColor.new("Really black")
  1952. p43.FormFactor = Enum.FormFactor.Custom
  1953. p43.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003)
  1954. 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)
  1955. p43.Anchored = false
  1956. p43.CanCollide = false
  1957. p43.BottomSurface = Enum.SurfaceType.Smooth
  1958. p43.TopSurface = Enum.SurfaceType.Smooth
  1959. b43 = Instance.new("SpecialMesh", p43)
  1960. b43.MeshType = Enum.MeshType.Cylinder
  1961. b43.Name = "Mesh"
  1962. b43.Scale = Vector3.new(0.749999881, 0.75, 0.75)
  1963. w1 = Instance.new("Weld", p7)
  1964. w1.Name = "BTWeld"
  1965. w1.Part0 = p7
  1966. w1.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1967. w1.Part1 = p1
  1968. w1.C1 = CFrame.new(-4.62499619, -0.574999809, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  1969. w2 = Instance.new("Weld", p7)
  1970. w2.Name = "BTWeld"
  1971. w2.Part0 = p7
  1972. w2.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1973. w2.Part1 = p2
  1974. 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)
  1975. w3 = Instance.new("Weld", p7)
  1976. w3.Name = "BTWeld"
  1977. w3.Part0 = p7
  1978. w3.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1979. w3.Part1 = p3
  1980. 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)
  1981. w4 = Instance.new("Weld", p7)
  1982. w4.Name = "BTWeld"
  1983. w4.Part0 = p7
  1984. w4.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1985. w4.Part1 = p4
  1986. 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)
  1987. w5 = Instance.new("Weld", p7)
  1988. w5.Name = "BTWeld"
  1989. w5.Part0 = p7
  1990. w5.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1991. w5.Part1 = p5
  1992. 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)
  1993. w6 = Instance.new("Weld", p7)
  1994. w6.Name = "BTWeld"
  1995. w6.Part0 = p7
  1996. w6.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1997. w6.Part1 = p6
  1998. 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)
  1999. w7 = Instance.new("Weld", p7)
  2000. w7.Name = "BTWeld"
  2001. w7.Part0 = p7
  2002. w7.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2003. w7.Part1 = p8
  2004. 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)
  2005. w8 = Instance.new("Weld", p7)
  2006. w8.Name = "BTWeld"
  2007. w8.Part0 = p7
  2008. w8.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2009. w8.Part1 = p9
  2010. 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)
  2011. w9 = Instance.new("Weld", p7)
  2012. w9.Name = "BTWeld"
  2013. w9.Part0 = p7
  2014. w9.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2015. w9.Part1 = p10
  2016. 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)
  2017. w10 = Instance.new("Weld", p7)
  2018. w10.Name = "BTWeld"
  2019. w10.Part0 = p7
  2020. w10.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2021. w10.Part1 = p11
  2022. 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)
  2023. w11 = Instance.new("Weld", p7)
  2024. w11.Name = "BTWeld"
  2025. w11.Part0 = p7
  2026. w11.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2027. w11.Part1 = p12
  2028. 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)
  2029. w12 = Instance.new("Weld", p7)
  2030. w12.Name = "BTWeld"
  2031. w12.Part0 = p7
  2032. w12.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2033. w12.Part1 = p13
  2034. 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)
  2035. w13 = Instance.new("Weld", p7)
  2036. w13.Name = "BTWeld"
  2037. w13.Part0 = p7
  2038. w13.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2039. w13.Part1 = p14
  2040. 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)
  2041. w14 = Instance.new("Weld", p7)
  2042. w14.Name = "BTWeld"
  2043. w14.Part0 = p7
  2044. w14.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2045. w14.Part1 = p15
  2046. 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)
  2047. w15 = Instance.new("Weld", p7)
  2048. w15.Name = "BTWeld"
  2049. w15.Part0 = p7
  2050. w15.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2051. w15.Part1 = p16
  2052. 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)
  2053. w16 = Instance.new("Weld", p7)
  2054. w16.Name = "BTWeld"
  2055. w16.Part0 = p7
  2056. w16.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2057. w16.Part1 = p17
  2058. 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)
  2059. w17 = Instance.new("Weld", p7)
  2060. w17.Name = "BTWeld"
  2061. w17.Part0 = p7
  2062. w17.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2063. w17.Part1 = p18
  2064. 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)
  2065. w18 = Instance.new("Weld", p7)
  2066. w18.Name = "BTWeld"
  2067. w18.Part0 = p7
  2068. w18.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2069. w18.Part1 = p19
  2070. w18.C1 = CFrame.new(0, -0.925000191, -1.49999523, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2071. w19 = Instance.new("Weld", p7)
  2072. w19.Name = "BTWeld"
  2073. w19.Part0 = p7
  2074. w19.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2075. w19.Part1 = p20
  2076. 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)
  2077. w20 = Instance.new("Weld", p7)
  2078. w20.Name = "BTWeld"
  2079. w20.Part0 = p7
  2080. w20.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2081. w20.Part1 = p21
  2082. 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)
  2083. w21 = Instance.new("Weld", p7)
  2084. w21.Name = "BTWeld"
  2085. w21.Part0 = p7
  2086. w21.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2087. w21.Part1 = p22
  2088. w21.C1 = CFrame.new(-1.3038516e-007, -1.47499847, 1.02499962, 1, 0, 8.74227766e-008, -8.74227766e-008, 0, 1, 0, -1, 0)
  2089. w22 = Instance.new("Weld", p7)
  2090. w22.Name = "BTWeld"
  2091. w22.Part0 = p7
  2092. w22.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2093. w22.Part1 = p23
  2094. w22.C1 = CFrame.new(-4.991889e-007, 2.72499847, 1.02499962, -1, 0, 0, 0, 0, -1, 0, -1, 0)
  2095. w23 = Instance.new("Weld", p7)
  2096. w23.Name = "BTWeld"
  2097. w23.Part0 = p7
  2098. w23.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2099. w23.Part1 = p24
  2100. 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)
  2101. w24 = Instance.new("Weld", p7)
  2102. w24.Name = "BTWeld"
  2103. w24.Part0 = p7
  2104. w24.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2105. w24.Part1 = p25
  2106. w24.C1 = CFrame.new(0, -0.774999619, -2.52499485, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2107. w25 = Instance.new("Weld", p7)
  2108. w25.Name = "BTWeld"
  2109. w25.Part0 = p7
  2110. w25.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2111. w25.Part1 = p26
  2112. 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)
  2113. w26 = Instance.new("Weld", p7)
  2114. w26.Name = "BTWeld"
  2115. w26.Part0 = p7
  2116. w26.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2117. w26.Part1 = p27
  2118. 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)
  2119. w27 = Instance.new("Weld", p7)
  2120. w27.Name = "BTWeld"
  2121. w27.Part0 = p7
  2122. w27.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2123. w27.Part1 = p28
  2124. 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)
  2125. w28 = Instance.new("Weld", p7)
  2126. w28.Name = "BTWeld"
  2127. w28.Part0 = p7
  2128. w28.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2129. w28.Part1 = p29
  2130. 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)
  2131. w29 = Instance.new("Weld", p7)
  2132. w29.Name = "BTWeld"
  2133. w29.Part0 = p7
  2134. w29.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2135. w29.Part1 = p30
  2136. 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)
  2137. w30 = Instance.new("Weld", p7)
  2138. w30.Name = "BTWeld"
  2139. w30.Part0 = p7
  2140. w30.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2141. w30.Part1 = p31
  2142. 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)
  2143. w31 = Instance.new("Weld", p7)
  2144. w31.Name = "BTWeld"
  2145. w31.Part0 = p7
  2146. w31.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2147. w31.Part1 = p32
  2148. 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)
  2149. w32 = Instance.new("Weld", p7)
  2150. w32.Name = "BTWeld"
  2151. w32.Part0 = p7
  2152. w32.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2153. w32.Part1 = p33
  2154. 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)
  2155. w33 = Instance.new("Weld", p7)
  2156. w33.Name = "BTWeld"
  2157. w33.Part0 = p7
  2158. w33.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2159. w33.Part1 = p34
  2160. 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)
  2161. w34 = Instance.new("Weld", p7)
  2162. w34.Name = "BTWeld"
  2163. w34.Part0 = p7
  2164. w34.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2165. w34.Part1 = p35
  2166. 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)
  2167. w35 = Instance.new("Weld", p7)
  2168. w35.Name = "BTWeld"
  2169. w35.Part0 = p7
  2170. w35.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2171. w35.Part1 = p36
  2172. 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)
  2173. w36 = Instance.new("Weld", p7)
  2174. w36.Name = "BTWeld"
  2175. w36.Part0 = p7
  2176. w36.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2177. w36.Part1 = p37
  2178. 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)
  2179. w37 = Instance.new("Weld", p7)
  2180. w37.Name = "BTWeld"
  2181. w37.Part0 = p7
  2182. w37.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2183. w37.Part1 = p38
  2184. 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)
  2185. w38 = Instance.new("Weld", p7)
  2186. w38.Name = "BTWeld"
  2187. w38.Part0 = p7
  2188. w38.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2189. w38.Part1 = p39
  2190. 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)
  2191. w39 = Instance.new("Weld", p7)
  2192. w39.Name = "BTWeld"
  2193. w39.Part0 = p7
  2194. w39.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2195. w39.Part1 = p40
  2196. 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)
  2197. w40 = Instance.new("Weld", p7)
  2198. w40.Name = "BTWeld"
  2199. w40.Part0 = p7
  2200. w40.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2201. w40.Part1 = p41
  2202. 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)
  2203. w41 = Instance.new("Weld", p7)
  2204. w41.Name = "BTWeld"
  2205. w41.Part0 = p7
  2206. w41.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2207. w41.Part1 = p42
  2208. 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)
  2209. w42 = Instance.new("Weld", p7)
  2210. w42.Name = "BTWeld"
  2211. w42.Part0 = p7
  2212. w42.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2213. w42.Part1 = p43
  2214. 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)
  2215.  
  2216.  
  2217. rlwww = Instance.new("Weld", Cha)
  2218. rlwww.Part0 = Cha["Right Arm"]
  2219. rlwww.C0 = CFrame.new(0,-.5,0)*CFrame.fromEulerAnglesXYZ(-1.55,2.7,0)
  2220. rlwww.Part1 = p7
  2221.  
  2222. mouse.KeyDown:connect(function(key)
  2223. key:lower()
  2224. if key == "z" and laydown == false and prop == false then
  2225. laydown = true
  2226. prop = true
  2227. Cha.Humanoid.WalkSpeed = 10
  2228. end
  2229. end)
  2230.  
  2231. mouse.KeyDown:connect(function(key)
  2232. key:lower()
  2233. if key == "x" and laydown == true and prop == true then
  2234. laydown = false
  2235. prop = false
  2236. Cha.Humanoid.WalkSpeed = 16
  2237. end
  2238. end)
  2239.  
  2240. s = Instance.new("Sound")
  2241. s.SoundId = "http://www.roblox.com/asset?id=151112832"
  2242. s.Parent = Cha
  2243. s.Volume = 5
  2244.  
  2245. s2 = Instance.new("Sound")
  2246. s2.SoundId = "http://www.roblox.com/asset?id=200289883"
  2247. s2.Parent = Cha
  2248. s2.Volume = 5
  2249.  
  2250.  
  2251. mouse.Button1Down:connect(function()
  2252. if (not vDebounce) and shoot == false then
  2253. shoot = true
  2254.  
  2255.  
  2256. Bullet1=Instance.new('Part',Workspace)
  2257. Bullet1.BrickColor=BrickColor.new("Medium stone grey")
  2258. Bullet1.CanCollide = True
  2259. Bullet1.TopSurface = "Smooth"
  2260. Bullet1.BottomSurface = "Smooth"
  2261. Bullet1.Transparency = 0.2
  2262. Bullet1.Size = Vector3.new(.2,.2,3)
  2263. Bullet1.CFrame = p33.CFrame *CFrame.new(0, -2, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  2264. game.Debris:AddItem(Bullet1, 10)
  2265. Bullet1Mesh = Instance.new("SpecialMesh",Bullet1)
  2266. Bullet1Mesh.MeshType = "Sphere"
  2267. Bullet1Mesh.Scale = Vector3.new(.5,1,.5)
  2268.  
  2269. Bullet1shoot = Instance.new('BodyVelocity',Bullet1)
  2270. Bullet1shoot.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  2271. Bullet1shoot.velocity = Cha.Head.CFrame.lookVector*1000
  2272.  
  2273. Bullet1:BreakJoints()
  2274.  
  2275.  
  2276.  
  2277. Bullet1.Touched:connect(function(hit)
  2278. Damagefunc(hit,1,80,math.random(1,3),"Normal",RootPart,.2,1)
  2279. end)
  2280.  
  2281. s:Play()
  2282.  
  2283. Blast=Instance.new('Part',Workspace)
  2284. Blast.BrickColor=BrickColor.new("Medium stone grey")
  2285. Blast.CanCollide = True
  2286. Blast.TopSurface = "Smooth"
  2287. Blast.BottomSurface = "Smooth"
  2288. Blast.Transparency = 0
  2289. Blast.Anchored = false
  2290. Blast.Size = Vector3.new(3,3,3)
  2291. Blast.CFrame = p33.CFrame *CFrame.new(0, 0, 0)*CFrame.fromEulerAnglesXYZ(math.random(), math.random(), math.random())
  2292. game.Debris:AddItem(Blast, 4)
  2293. BlastMesh = Instance.new("SpecialMesh",Blast)
  2294. BlastMesh.MeshType = "Brick"
  2295. BlastMesh.Scale = Vector3.new(.1,.1,.1)
  2296.  
  2297. Ammo=Instance.new('Part',Workspace)
  2298. Ammo.BrickColor=BrickColor.new("Medium stone grey")
  2299. Ammo.CanCollide = true
  2300. Ammo.TopSurface = "Smooth"
  2301. Ammo.BottomSurface = "Smooth"
  2302. Ammo.Transparency = 0.3
  2303. Ammo.Size = Vector3.new(.2,.2,.2)
  2304. Ammo.CFrame = p21.CFrame *CFrame.new(0, -1, 0)
  2305. game.Debris:AddItem(Ammo, 10)
  2306. AmmoMesh = Instance.new("SpecialMesh",Ammo)
  2307. AmmoMesh.MeshType = "Sphere"
  2308. AmmoMesh.Scale = Vector3.new(.1,.4,.1)
  2309.  
  2310. for i = 1,10 do
  2311. BlastMesh.Scale = BlastMesh.Scale + Vector3.new(.1,.1,.1)
  2312. Blast.Transparency = Blast.Transparency + 0.1
  2313. swait(0.1)
  2314. end
  2315.  
  2316. s2:Play()
  2317.  
  2318.  
  2319. wait(1)
  2320. shoot = false
  2321. end
  2322. end)
  2323.  
  2324. colours = {"Tr. Red","Black","Tr. Blue","Black","Phosph. White","Royal purple"}
  2325. mouse.KeyDown:connect(function(k)
  2326.     if k == " " then
  2327.         if hitfloor==nil then
  2328.             Cha.Torso.Velocity = Vector3.new(0,100,0)
  2329.             ringExplode(Torso.CFrame*CFrame.Angles(math.pi/2,0,0),colours[4],5)
  2330.         end
  2331.     end
  2332. end)
  2333.  
  2334. mouse.KeyDown:connect(function(key)
  2335. key:lower()
  2336. if key == "e" and camo == false and prop == true then
  2337. camo = true
  2338.  
  2339. Camoflauge=Instance.new('Part',Cha)
  2340. Camoflauge.BrickColor=game.Workspace.Base.BrickColor
  2341. Camoflauge.CanCollide = true
  2342. Camoflauge.TopSurface = "Smooth"
  2343. Camoflauge.BottomSurface = "Smooth"
  2344. Camoflauge.Material = "Grass"
  2345. Camoflauge.Transparency = 0
  2346. Camoflauge.Size = Vector3.new(1,1,1)
  2347. CamoflaugeMesh = Instance.new("SpecialMesh",Camoflauge)
  2348. CamoflaugeMesh.MeshType = "Brick"
  2349. CamoflaugeMesh.Scale = Vector3.new(4,13,6)
  2350. CaWeld = Instance.new("Weld",Cha)
  2351. CaWeld.Part0 = Cha.Torso
  2352. CaWeld.Part1 = Camoflauge
  2353. CaWeld.C1 = CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(.35, 0, 0)
  2354.  
  2355. end
  2356. end)
  2357.  
  2358. mouse.KeyDown:connect(function(key)
  2359. key:lower()
  2360. if key == "e" and camo == false and prop == false then
  2361. camo = true
  2362.  
  2363.  
  2364. ac = math.random(1,6)
  2365.  
  2366. if ac == 1 then
  2367. Camoflauge=Instance.new('Part',Cha)
  2368. Camoflauge.BrickColor=game.Workspace.Base.BrickColor
  2369. Camoflauge.CanCollide = true
  2370. Camoflauge.TopSurface = "Smooth"
  2371. Camoflauge.BottomSurface = "Smooth"
  2372. Camoflauge.Material = "Grass"
  2373. Camoflauge.Transparency = 0
  2374. Camoflauge.Size = Vector3.new(1,1,1)
  2375. CamoflaugeMesh = Instance.new("SpecialMesh",Camoflauge)
  2376. CamoflaugeMesh.MeshType = "Brick"
  2377. CamoflaugeMesh.Scale = Vector3.new(8,8,10)
  2378. CaWeld = Instance.new("Weld",Cha)
  2379. CaWeld.Part0 = Cha.Torso
  2380. CaWeld.Part1 = Camoflauge
  2381. CaWeld.C1 = CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  2382. end
  2383.  
  2384.  
  2385. if ac == 2 then
  2386. Camoflauge=Instance.new('Part',Cha)
  2387. Camoflauge.BrickColor=game.Workspace.Base.BrickColor
  2388. Camoflauge.CanCollide = true
  2389. Camoflauge.TopSurface = "Smooth"
  2390. Camoflauge.BottomSurface = "Smooth"
  2391. Camoflauge.Transparency = 0
  2392. Camoflauge.Size = Vector3.new(1,1,1)
  2393. CamoflaugeMesh = Instance.new("SpecialMesh",Camoflauge)
  2394. CamoflaugeMesh.MeshType = "FileMesh"
  2395. CamoflaugeMesh.MeshId = "http://www.roblox.com/asset/?id=19106014"
  2396. CamoflaugeMesh.TextureId = "http://www.roblox.com/asset/?id=142039906"
  2397. CamoflaugeMesh.Scale = Vector3.new(10,10,10)
  2398. CaWeld = Instance.new("Weld",Cha)
  2399. CaWeld.Part0 = Cha.Torso
  2400. CaWeld.Part1 = Camoflauge
  2401. CaWeld.C1 = CFrame.new(0,-2,0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  2402. end
  2403.  
  2404. if ac == 3 then
  2405. Camoflauge=Instance.new('Part',Cha)
  2406. Camoflauge.BrickColor=game.Workspace.Base.BrickColor
  2407. Camoflauge.CanCollide = true
  2408. Camoflauge.TopSurface = "Smooth"
  2409. Camoflauge.BottomSurface = "Smooth"
  2410. Camoflauge.Transparency = 0
  2411. Camoflauge.Size = Vector3.new(1,1,1)
  2412. CamoflaugeMesh = Instance.new("SpecialMesh",Camoflauge)
  2413. CamoflaugeMesh.MeshType = "FileMesh"
  2414. CamoflaugeMesh.MeshId = "http://www.roblox.com/asset/?id=92598630"
  2415. CamoflaugeMesh.TextureId = "http://www.roblox.com/asset/?id=92599263"
  2416. CamoflaugeMesh.Scale = Vector3.new(10,10,10)
  2417. CaWeld = Instance.new("Weld",Cha)
  2418. CaWeld.Part0 = Cha.Torso
  2419. CaWeld.Part1 = Camoflauge
  2420. CaWeld.C1 = CFrame.new(0,-2,0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  2421. end
  2422.  
  2423. if ac == 4 then
  2424. Camoflauge=Instance.new('Part',Cha)
  2425. Camoflauge.BrickColor=game.Workspace.Base.BrickColor
  2426. Camoflauge.CanCollide = true
  2427. Camoflauge.TopSurface = "Smooth"
  2428. Camoflauge.BottomSurface = "Smooth"
  2429. Camoflauge.Transparency = 0
  2430. Camoflauge.Size = Vector3.new(1,1,1)
  2431. CamoflaugeMesh = Instance.new("SpecialMesh",Camoflauge)
  2432. CamoflaugeMesh.MeshType = "FileMesh"
  2433. CamoflaugeMesh.MeshId = "http://www.roblox.com/asset/?id=10470609"
  2434. CamoflaugeMesh.TextureId = "http://www.roblox.com/asset/?id=29796694"
  2435. CamoflaugeMesh.Scale = Vector3.new(10,10,10)
  2436. CaWeld = Instance.new("Weld",Cha)
  2437. CaWeld.Part0 = Cha.Torso
  2438. CaWeld.Part1 = Camoflauge
  2439. CaWeld.C1 = CFrame.new(0,-2,0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  2440. end
  2441.  
  2442. if ac == 5 then
  2443. Camoflauge=Instance.new('Part',Cha)
  2444. Camoflauge.BrickColor=game.Workspace.Base.BrickColor
  2445. Camoflauge.CanCollide = true
  2446. Camoflauge.TopSurface = "Smooth"
  2447. Camoflauge.BottomSurface = "Smooth"
  2448. Camoflauge.Transparency = 0
  2449. Camoflauge.Size = Vector3.new(1,1,1)
  2450. CamoflaugeMesh = Instance.new("SpecialMesh",Camoflauge)
  2451. CamoflaugeMesh.MeshType = "FileMesh"
  2452. CamoflaugeMesh.MeshId = "http://www.roblox.com/asset?id=220616206"
  2453. CamoflaugeMesh.TextureId = "http://www.roblox.com/asset?id=220616251"
  2454. CamoflaugeMesh.Scale = Vector3.new(5,5,5)
  2455. CaWeld = Instance.new("Weld",Cha)
  2456. CaWeld.Part0 = Cha.Torso
  2457. CaWeld.Part1 = Camoflauge
  2458. CaWeld.C1 = CFrame.new(0,1,0)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
  2459. end
  2460.  
  2461.  
  2462. if ac == 6 then
  2463.  
  2464.  
  2465. Camoflauge = Instance.new("Model")
  2466. p1 = Instance.new("Part", Camoflauge)
  2467. p1.BrickColor = BrickColor.new("White")
  2468. p1.FormFactor = Enum.FormFactor.Custom
  2469. p1.Size = Vector3.new(0.399999708, 6.30000019, 1.4000001)
  2470. p1.CFrame = CFrame.new(-21.8000011, 1.85000002, -9.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2471. p1.Anchored = false
  2472. p1.BottomSurface = Enum.SurfaceType.Smooth
  2473. p1.TopSurface = Enum.SurfaceType.Smooth
  2474. p2 = Instance.new("Part", Camoflauge)
  2475. p2.BrickColor = BrickColor.new("Institutional white")
  2476. p2.FormFactor = Enum.FormFactor.Custom
  2477. p2.Size = Vector3.new(5.79999971, 0.399999946, 1.4000001)
  2478. p2.CFrame = CFrame.new(-24.5, 5.0999999, -9.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2479. p2.Anchored = false
  2480. p2.BottomSurface = Enum.SurfaceType.Smooth
  2481. p2.TopSurface = Enum.SurfaceType.Smooth
  2482. p3 = Instance.new("Part", Camoflauge)
  2483. p3.BrickColor = BrickColor.new("Brown")
  2484. p3.FormFactor = Enum.FormFactor.Custom
  2485. p3.Size = Vector3.new(5.5999999, 0.299999952, 5.5999999)
  2486. p3.CFrame = CFrame.new(-24.5, 5.04999971, -9.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2487. p3.Anchored = false
  2488. p3.BottomSurface = Enum.SurfaceType.Smooth
  2489. p3.TopSurface = Enum.SurfaceType.Smooth
  2490. p4 = Instance.new("Part", Camoflauge)
  2491. p4.BrickColor = BrickColor.new("Brown")
  2492. p4.FormFactor = Enum.FormFactor.Custom
  2493. p4.Size = Vector3.new(1.20000005, 1.30000007, 0.299999714)
  2494. p4.CFrame = CFrame.new(-26.7000027, 2.54999995, -12.1499996, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2495. p4.Anchored = false
  2496. p4.BottomSurface = Enum.SurfaceType.Smooth
  2497. p4.TopSurface = Enum.SurfaceType.Smooth
  2498. p5 = Instance.new("Part", Camoflauge)
  2499. p5.BrickColor = BrickColor.new("Brown")
  2500. p5.FormFactor = Enum.FormFactor.Custom
  2501. p5.Size = Vector3.new(1.20000005, 1.30000007, 0.299999714)
  2502. p5.CFrame = CFrame.new(-22.3000011, 2.54999995, -12.1499996, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2503. p5.Anchored = false
  2504. p5.BottomSurface = Enum.SurfaceType.Smooth
  2505. p5.TopSurface = Enum.SurfaceType.Smooth
  2506. p6 = Instance.new("Part", Camoflauge)
  2507. p6.BrickColor = BrickColor.new("White")
  2508. p6.FormFactor = Enum.FormFactor.Custom
  2509. p6.Size = Vector3.new(0.399999708, 6.30000019, 1.4000001)
  2510. p6.CFrame = CFrame.new(-27.2000027, 1.85000002, -9.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2511. p6.Anchored = false
  2512. p6.BottomSurface = Enum.SurfaceType.Smooth
  2513. p6.TopSurface = Enum.SurfaceType.Smooth
  2514. p7 = Instance.new("Part", Camoflauge)
  2515. p7.BrickColor = BrickColor.new("Medium stone grey")
  2516. p7.Transparency = 1
  2517. p7.Name = "Handle"
  2518. p7.FormFactor = Enum.FormFactor.Custom
  2519. p7.Size = Vector3.new(5, 5, 5)
  2520. p7.CFrame = CFrame.new(-24.5, 2.5, -9.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2521. p7.Anchored = false
  2522. p7.BottomSurface = Enum.SurfaceType.Smooth
  2523. p7.TopSurface = Enum.SurfaceType.Smooth
  2524. p8 = Instance.new("Part", Camoflauge)
  2525. p8.BrickColor = BrickColor.new("Brown")
  2526. p8.FormFactor = Enum.FormFactor.Custom
  2527. p8.Size = Vector3.new(5.5999999, 1.79999995, 0.299999714)
  2528. p8.CFrame = CFrame.new(-24.5, 4.0999999, -12.1499996, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2529. p8.Anchored = false
  2530. p8.BottomSurface = Enum.SurfaceType.Smooth
  2531. p8.TopSurface = Enum.SurfaceType.Smooth
  2532. p9 = Instance.new("Part", Camoflauge)
  2533. p9.BrickColor = BrickColor.new("Brown")
  2534. p9.FormFactor = Enum.FormFactor.Custom
  2535. p9.Size = Vector3.new(0.299999714, 6.30000019, 5)
  2536. p9.CFrame = CFrame.new(-21.8500004, 1.85000002, -9.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2537. p9.Anchored = false
  2538. p9.BottomSurface = Enum.SurfaceType.Smooth
  2539. p9.TopSurface = Enum.SurfaceType.Smooth
  2540. p10 = Instance.new("Part", Camoflauge)
  2541. p10.BrickColor = BrickColor.new("Brown")
  2542. p10.FormFactor = Enum.FormFactor.Custom
  2543. p10.Size = Vector3.new(5.5999999, 3.20000005, 0.299999714)
  2544. p10.CFrame = CFrame.new(-24.5, 0.300000072, -12.1499996, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2545. p10.Anchored = false
  2546. p10.BottomSurface = Enum.SurfaceType.Smooth
  2547. p10.TopSurface = Enum.SurfaceType.Smooth
  2548. p11 = Instance.new("Part", Camoflauge)
  2549. p11.BrickColor = BrickColor.new("Brown")
  2550. p11.FormFactor = Enum.FormFactor.Custom
  2551. p11.Size = Vector3.new(5.5999999, 6.30000019, 0.299999714)
  2552. p11.CFrame = CFrame.new(-24.5, 1.85000002, -6.8499999, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2553. p11.Anchored = false
  2554. p11.BottomSurface = Enum.SurfaceType.Smooth
  2555. p11.TopSurface = Enum.SurfaceType.Smooth
  2556. p12 = Instance.new("Part", Camoflauge)
  2557. p12.BrickColor = BrickColor.new("Brown")
  2558. p12.FormFactor = Enum.FormFactor.Custom
  2559. p12.Size = Vector3.new(0.299999714, 6.30000019, 5)
  2560. p12.CFrame = CFrame.new(-27.1500015, 1.85000002, -9.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2561. p12.Anchored = false
  2562. p12.BottomSurface = Enum.SurfaceType.Smooth
  2563. p12.TopSurface = Enum.SurfaceType.Smooth
  2564. w1 = Instance.new("Weld", p7)
  2565. w1.Name = "BTWeld"
  2566. w1.Part0 = p7
  2567. w1.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2568. w1.Part1 = p1
  2569. w1.C1 = CFrame.new(-2.69999886, 0.649999976, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2570. w2 = Instance.new("Weld", p7)
  2571. w2.Name = "BTWeld"
  2572. w2.Part0 = p7
  2573. w2.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2574. w2.Part1 = p2
  2575. w2.C1 = CFrame.new(0, -2.5999999, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2576. w3 = Instance.new("Weld", p7)
  2577. w3.Name = "BTWeld"
  2578. w3.Part0 = p7
  2579. w3.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2580. w3.Part1 = p3
  2581. w3.C1 = CFrame.new(0, -2.54999971, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2582. w4 = Instance.new("Weld", p7)
  2583. w4.Name = "BTWeld"
  2584. w4.Part0 = p7
  2585. w4.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2586. w4.Part1 = p4
  2587. w4.C1 = CFrame.new(2.20000267, -0.0499999523, 2.64999962, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2588. w5 = Instance.new("Weld", p7)
  2589. w5.Name = "BTWeld"
  2590. w5.Part0 = p7
  2591. w5.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2592. w5.Part1 = p5
  2593. w5.C1 = CFrame.new(-2.19999886, -0.0499999523, 2.64999962, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2594. w6 = Instance.new("Weld", p7)
  2595. w6.Name = "BTWeld"
  2596. w6.Part0 = p7
  2597. w6.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2598. w6.Part1 = p6
  2599. w6.C1 = CFrame.new(2.70000267, 0.649999976, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2600. w7 = Instance.new("Weld", p7)
  2601. w7.Name = "BTWeld"
  2602. w7.Part0 = p7
  2603. w7.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2604. w7.Part1 = p8
  2605. w7.C1 = CFrame.new(0, -1.5999999, 2.64999962, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2606. w8 = Instance.new("Weld", p7)
  2607. w8.Name = "BTWeld"
  2608. w8.Part0 = p7
  2609. w8.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2610. w8.Part1 = p9
  2611. w8.C1 = CFrame.new(-2.64999962, 0.649999976, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2612. w9 = Instance.new("Weld", p7)
  2613. w9.Name = "BTWeld"
  2614. w9.Part0 = p7
  2615. w9.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2616. w9.Part1 = p10
  2617. w9.C1 = CFrame.new(0, 2.19999981, 2.64999962, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2618. w10 = Instance.new("Weld", p7)
  2619. w10.Name = "BTWeld"
  2620. w10.Part0 = p7
  2621. w10.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2622. w10.Part1 = p11
  2623. w10.C1 = CFrame.new(0, 0.649999976, -2.6500001, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2624. w11 = Instance.new("Weld", p7)
  2625. w11.Name = "BTWeld"
  2626. w11.Part0 = p7
  2627. w11.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2628. w11.Part1 = p12
  2629. w11.C1 = CFrame.new(2.65000153, 0.649999976, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2630.  
  2631. rlwwww = Instance.new("Weld", Cha)
  2632. rlwwww.Part0 = Cha.Torso
  2633. rlwwww.C0 = CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(0,0,0)
  2634. rlwwww.Part1 = p7
  2635.  
  2636. Camoflauge.Parent = Cha
  2637. Camoflauge:MakeJoints()
  2638.  
  2639. for i, v in pairs(Camoflauge:GetChildren()) do
  2640. if v:IsA('Part') then
  2641. v.CanCollide = False
  2642. end
  2643. end
  2644.  
  2645.  
  2646. end
  2647.  
  2648.  
  2649.  
  2650. end
  2651. end)
  2652.  
  2653. mouse.KeyDown:connect(function(key)
  2654. key:lower()
  2655. if key == "q" and camo == true then
  2656. camo = false
  2657.  
  2658. Camoflauge:Destroy()
  2659.  
  2660. end
  2661. end)
  2662.  
  2663.  
  2664. mouse.KeyDown:connect(function(key)
  2665. key:lower()
  2666. if key == "c" then
  2667.  
  2668. for i,v in pairs(game.Players:getPlayers()) do
  2669. if v.Name~=Cha.Name then
  2670. for j,k in pairs(v.Character:GetChildren()) do
  2671. if k:IsA("BasePart") and k.Transparency <= 1 then
  2672. D = Instance.new("FloorWire",Cha.Torso)
  2673. D.From = Cha.Torso
  2674. D.To = k
  2675. D.Parent = Workspace.Camera
  2676. D.Transparency = 0.4
  2677. end
  2678. end
  2679. end
  2680. end
  2681.  
  2682. end
  2683. end)
  2684.  
  2685.  
  2686. mouse.KeyDown:connect(function(key)
  2687. key:lower()
  2688. if key:byte() == 48 and laydown == false then
  2689. Humanoid.WalkSpeed=50
  2690. end
  2691. end)
  2692. mouse.KeyUp:connect(function(key)
  2693. key:lower()
  2694. if key:byte() == 48 and laydown == false then
  2695. Humanoid.WalkSpeed=16
  2696. end
  2697. end)
  2698.  
  2699. mouse.KeyDown:connect(function(key)
  2700. key:lower()
  2701. if key:byte() == 48 and laydown == true then
  2702. Humanoid.WalkSpeed=20
  2703. end
  2704. end)
  2705. mouse.KeyUp:connect(function(key)
  2706. key:lower()
  2707. if key:byte() == 48 and laydown == true then
  2708. Humanoid.WalkSpeed=10
  2709. end
  2710. end)
  2711.  
  2712.  
  2713. local sine = 0
  2714. local change = 1
  2715. local val = 0
  2716.  
  2717.  
  2718. coroutine.resume(coroutine.create(function()
  2719. while true do
  2720. swait()
  2721. sine = sine + change
  2722. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  2723. local velderp=RootPart.Velocity.y
  2724. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  2725. if equipped==true or equipped==false then
  2726. if attack==false then
  2727. idle=idle+1
  2728. else
  2729. idle=0
  2730. end
  2731. if idle>=500 then
  2732. if attack==false then
  2733. --Sheath()
  2734. end
  2735. end
  2736. if RootPart.Velocity.y > 1 and hitfloor==nil and laydown == false then
  2737. Anim="Jump"
  2738. if attack==false then
  2739. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2740. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  2741. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(20),math.rad(-10),math.rad(30)),.3)
  2742. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(20),math.rad(0),math.rad(-30)),.3)
  2743. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  2744. end
  2745. elseif RootPart.Velocity.y < -1 and hitfloor==nil and laydown == false then
  2746. Anim="Fall"
  2747. if attack==false then
  2748. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2749. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
  2750. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(-50),math.rad(-100),math.rad(30)),.3)
  2751. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(-50),math.rad(100),math.rad(-30)),.3)
  2752. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  2753. end
  2754. elseif torvel<1 and hitfloor~=nil and laydown == false then
  2755. Anim="Idle"
  2756. if attack==false then
  2757. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2758. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(-20),math.rad(0)),.3)
  2759. RW.C0=clerp(RW.C0,cf(1,0.5,0)*euler(math.rad(90),math.rad(0),math.rad(-30)),.3)
  2760. LW.C0=clerp(LW.C0,cf(-1,0.5,0)*euler(math.rad(90),math.rad(0),math.rad(50)),.3)
  2761. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  2762. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  2763. end
  2764. elseif torvel>2 and torvel<22 and hitfloor~=nil and laydown == false then
  2765. Anim="Walk"
  2766. if attack==false then
  2767. change=3
  2768. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2769. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2770. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(-20),math.rad(-10),math.rad(30)),.3)
  2771. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(-20),math.rad(10),math.rad(-30)),.3)
  2772. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  2773. end
  2774. elseif torvel>=22 and hitfloor~=nil and laydown == false then
  2775. Anim="Run"
  2776. if attack==false then
  2777. change=5
  2778. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  2779. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  2780. RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(math.rad(-20),math.rad(-70),math.rad(30)),.3)
  2781. LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(math.rad(-20),math.rad(70),math.rad(-30)),.3)
  2782. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  2783. end
  2784. end
  2785. end
  2786. end
  2787. end))
  2788.  
  2789. coroutine.resume(coroutine.create(function()
  2790. while true do
  2791. swait()
  2792. sine = sine + change
  2793. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  2794. local velderp=RootPart.Velocity.y
  2795. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  2796. if equipped==true or equipped==false then
  2797. if attack==false then
  2798. idle=idle+1
  2799. else
  2800. idle=0
  2801. end
  2802. if idle>=500 then
  2803. if attack==false then
  2804. --Sheath()
  2805. end
  2806. end
  2807. if RootPart.Velocity.y > 1 and hitfloor==nil and laydown == true then
  2808. Anim="Jump"
  2809. if attack==false then
  2810. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-2.5)*angles(math.rad(70),math.rad(0),math.rad(0)),.3)
  2811. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-70),math.rad(0),math.rad(0)),.3)
  2812. RW.C0=clerp(RW.C0,cf(1,0.5,0)*euler(math.rad(160),math.rad(0),math.rad(-30)),.3)
  2813. LW.C0=clerp(LW.C0,cf(-1,0.5,0)*euler(math.rad(160),math.rad(0),math.rad(50)),.3)
  2814. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  2815. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  2816. end
  2817. elseif RootPart.Velocity.y < -1 and hitfloor==nil and laydown == true then
  2818. Anim="Fall"
  2819. if attack==false then
  2820. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-2.5)*angles(math.rad(70),math.rad(0),math.rad(0)),.3)
  2821. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-70),math.rad(0),math.rad(0)),.3)
  2822. RW.C0=clerp(RW.C0,cf(1,0.5,0)*euler(math.rad(160),math.rad(0),math.rad(-30)),.3)
  2823. LW.C0=clerp(LW.C0,cf(-1,0.5,0)*euler(math.rad(160),math.rad(0),math.rad(50)),.3)
  2824. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  2825. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  2826. end
  2827. elseif torvel<1 and hitfloor~=nil and laydown == true then
  2828. Anim="Idle"
  2829. if attack==false then
  2830. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-2.5)*angles(math.rad(70),math.rad(0),math.rad(0)),.3)
  2831. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-70),math.rad(0),math.rad(0)),.3)
  2832. RW.C0=clerp(RW.C0,cf(1,0.5,0)*euler(math.rad(160),math.rad(0),math.rad(-30)),.3)
  2833. LW.C0=clerp(LW.C0,cf(-1,0.5,0)*euler(math.rad(160),math.rad(0),math.rad(50)),.3)
  2834. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  2835. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  2836. end
  2837. elseif torvel>2 and torvel<22 and hitfloor~=nil and laydown == true then
  2838. Anim="Walk"
  2839. if attack==false then
  2840. change=3
  2841. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-2.5)*angles(math.rad(70),math.rad(0),math.rad(0)),.3)
  2842. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-70),math.rad(0),math.rad(0)),.3)
  2843. RW.C0=clerp(RW.C0,cf(1,0.5,0)*euler(math.rad(160),math.rad(0),math.rad(-30)),.3)
  2844. LW.C0=clerp(LW.C0,cf(-1,0.5,0)*euler(math.rad(160),math.rad(0),math.rad(50)),.3)
  2845. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  2846. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  2847. end
  2848. elseif torvel>=22 and hitfloor~=nil and laydown == true then
  2849. Anim="Run"
  2850. if attack==false then
  2851. change=5
  2852. RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-2.5)*angles(math.rad(70),math.rad(0),math.rad(0)),.3)
  2853. Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-70),math.rad(0),math.rad(0)),.3)
  2854. RW.C0=clerp(RW.C0,cf(1,0.5,0)*euler(math.rad(160),math.rad(0),math.rad(-30)),.3)
  2855. LW.C0=clerp(LW.C0,cf(-1,0.5,0)*euler(math.rad(160),math.rad(0),math.rad(50)),.3)
  2856. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  2857. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  2858. end
  2859. end
  2860. end
  2861. end
  2862. end))
  2863. end)
  2864.  
  2865. BStyle3.Name = "B Style 3"
  2866. BStyle3.Parent = StyleMain
  2867. BStyle3.BackgroundColor3 = Color3.new(1, 0, 1)
  2868. BStyle3.Position = UDim2.new(0.104347825, 0, 0.502976179, 0)
  2869. BStyle3.Size = UDim2.new(0, 130, 0, 44)
  2870. BStyle3.Font = Enum.Font.SourceSans
  2871. BStyle3.Text = "M249"
  2872. BStyle3.TextColor3 = Color3.new(1, 0.333333, 0)
  2873. BStyle3.TextSize = 18
  2874. BStyle3.MouseButton:connect(function()
  2875. if script == nil then return end
  2876.  
  2877.  
  2878. Player = script:FindFirstChild("Player") ~= nil and script.Player.Value or game.Players.LocalPlayer
  2879. Name = "M249"
  2880. MC = BrickColor.new("Black")
  2881. DC = BrickColor.new("Black")
  2882. GC = BrickColor.new("Dark stone grey")
  2883. MR = 0
  2884. GR = 0
  2885. Holstered = true
  2886. Spread = 90000
  2887. WSPenalty = 10
  2888. selected = false
  2889. canDual = false
  2890. dual = false
  2891. Button1Down = false
  2892. damage = 999999999
  2893. canFire = true
  2894. canFire2 = false
  2895. readyTime = 0.1
  2896. automatic = true
  2897. burst = false
  2898. burstCount = 0
  2899. burstCountMax = 3
  2900. canSilence = true
  2901. silenced = false
  2902. canZoom = false
  2903. zoom = false
  2904. switchToSingle = true
  2905. switchToBurst = false
  2906. switchToAutomatic = true
  2907.  
  2908.  
  2909. ammoGui = Instance.new("ScreenGui")
  2910. ammoGui.Name = Name
  2911. local frame = Instance.new("Frame")
  2912. frame.Name = "Frame"
  2913. frame.Size = UDim2.new(0, 165, 0, 60)
  2914. frame.Position = UDim2.new(0, 0, 1, -400)
  2915. frame.BackgroundColor3 = Color3.new(1, 1, 1)
  2916. frame.BorderColor3 = Color3.new(0, 0, 0)
  2917. frame.Parent = ammoGui
  2918. local label = Instance.new("TextLabel")
  2919. label.Name = "Weapon"
  2920. label.Text = "Weapon: " ..Name
  2921. label.Size = UDim2.new(1, 0, 0, 20)
  2922. label.Position = UDim2.new(0, 0, 0, 0)
  2923. label.BackgroundColor3 = Color3.new(1, 0, 0)
  2924. label.BorderColor3 = Color3.new(0, 0, 0)
  2925. label.Parent = frame
  2926. local label = Instance.new("TextLabel")
  2927. label.Name = "MagazinePrefix"
  2928. label.Text = "    Magazine:"
  2929. label.TextXAlignment = "Left"
  2930. label.Size = UDim2.new(1, 0, 0, 20)
  2931. label.Position = UDim2.new(0, 0, 0, 20)
  2932. label.BackgroundColor3 = Color3.new(1, 1, 1)
  2933. label.BorderColor3 = Color3.new(0, 0, 0)
  2934. label.Parent = frame
  2935. local label = Instance.new("TextLabel")
  2936. label.Name = "Magazine"
  2937. label.Text = "0/0"
  2938. label.TextXAlignment = "Right"
  2939. label.Size = UDim2.new(1, 0, 0, 20)
  2940. label.Position = UDim2.new(0, -10, 0, 20)
  2941. label.BackgroundTransparency = 1
  2942. label.BorderSizePixel = 0
  2943. label.Parent = frame
  2944. local label = Instance.new("TextLabel")
  2945. label.Name = "AmmoPrefix"
  2946. label.Text = "    5.56x45mm NATO:"
  2947. label.TextXAlignment = "Left"
  2948. label.Size = UDim2.new(1, 0, 0, 20)
  2949. label.Position = UDim2.new(0, 0, 0, 40)
  2950. label.BackgroundColor3 = Color3.new(1, 1, 1)
  2951. label.BorderColor3 = Color3.new(0, 0, 0)
  2952. label.Parent = frame
  2953. local label = Instance.new("TextLabel")
  2954. label.Name = "Ammo"
  2955. label.Text = "0/0"
  2956. label.TextXAlignment = "Right"
  2957. label.Size = UDim2.new(1, 0, 0, 20)
  2958. label.Position = UDim2.new(0, -10, 0, 40)
  2959. label.BackgroundTransparency = 1
  2960. label.BorderSizePixel = 0
  2961. label.Parent = frame
  2962.  
  2963.  
  2964. function updateGui()
  2965.     if selected == false then return end
  2966.     if Player:FindFirstChild("PlayerGui") == nil then Instance.new("PlayerGui").Parent = Player end
  2967.     if Player.PlayerGui:FindFirstChild(Name) == nil then
  2968.         ammoGui:Clone().Parent = Player.PlayerGui
  2969.     end
  2970.     Player.PlayerGui[Name].Frame.Magazine.Text = tostring(magazine.Value).. "/" ..tostring(magazineMax.Value)
  2971.     Player.PlayerGui[Name].Frame.Ammo.Text = tostring(ammo.Value).. "/" ..tostring(ammoMax.Value)
  2972. end
  2973.  
  2974.  
  2975. function makeParts(format)
  2976.     local model = Instance.new("Model")
  2977.     model.Name = Name
  2978.     local pm = Instance.new("Part")
  2979.     pm.Name = "Handle"
  2980.     pm.formFactor = "Symmetric"
  2981.     pm.Size = Vector3.new(1, 1, 1)
  2982.     pm.BrickColor = MC
  2983.     pm.Reflectance = MR
  2984.     pm.CanCollide = false
  2985.     pm.Locked = true
  2986.     pm.TopSurface = 0
  2987.     pm.BottomSurface = 0
  2988.     pm.Parent = model
  2989.     local m = Instance.new("BlockMesh")
  2990.     m.Scale = Vector3.new(0.35, 1.4, 0.41)
  2991.     m.Offset = Vector3.new(0, 0.01, 0.07)
  2992.     m.Parent = pm
  2993.     if format ~= nil then
  2994.         local w = Instance.new("Weld")
  2995.         w.Part0 = pm
  2996.         if format == "RightHand" then
  2997.             w.Part1 = Player.Character:FindFirstChild("Right Arm")
  2998.             w.C0 = CFrame.new(0, 1.15, 0.7)
  2999.             w.C1 = CFrame.new()
  3000.         elseif format == "RightHolster" then
  3001.             w.Part1 = Player.Character:FindFirstChild("Torso")
  3002.             w.C0 = CFrame.new(-0.65, 0, 0) * CFrame.fromEulerAnglesXYZ(math.rad(-40), math.rad(90), 0)
  3003.             w.C1 = CFrame.new()
  3004.             model.Name = Name.. " (Holstered)"
  3005.         end
  3006.         w.Parent = pm
  3007.         model.Parent = Player.Character
  3008.     end
  3009.     --[[
  3010.     sniper1  http://www.roblox.com/asset/?id=1868836
  3011.     equip    http://www.roblox.com/asset/?id=13510737
  3012.     fire1     http://www.roblox.com/asset/?id=2760979
  3013.     fire2    http://www.roblox.com/asset/?id=13510352
  3014.     fire3    http://www.roblox.com/asset/?id=2692806
  3015.     fire4    http://www.roblox.com/asset/?id=2691586
  3016.     fire5    http://www.roblox.com/asset/?id=2920959
  3017.     fire6    http://www.roblox.com/asset/?id=2697431
  3018.     fire7    http://www.roblox.com/asset/?id=2920959
  3019.     reload1   http://www.roblox.com/asset/?id=2691591
  3020.     reload2   http://www.roblox.com/asset/?id=2697432
  3021.     reload3  http://www.roblox.com/asset/?id=2920960
  3022.     reload4  http://www.roblox.com/asset/?id=2761842
  3023.     shotgun1 http://www.roblox.com/asset/?id=2697294
  3024.     --]]
  3025.     local s = Instance.new("Sound")
  3026.     s.Name = "Fire"
  3027.     s.SoundId = "http://www.roblox.com/Asset/?id=10209798"
  3028.     s.Volume = 1
  3029.     s.Pitch = 1.8
  3030.     s.Looped = false
  3031.     s.Parent = pm
  3032.     local s = Instance.new("Sound")
  3033.     s.Name = "Fire2"
  3034.     s.SoundId = "http://www.roblox.com/Asset/?id=16211041"
  3035.     s.Volume = 1
  3036.     s.Pitch = 3
  3037.     s.Looped = false
  3038.     s.Parent = pm
  3039.     local s = Instance.new("Sound")
  3040.     s.Name = "Lock"
  3041.     s.SoundId = "http://www.roblox.com/Asset/?id=10209845"
  3042.     s.Volume = 1
  3043.     s.Pitch = 3
  3044.     s.Looped = false
  3045.     s.Parent = pm
  3046.     local s = Instance.new("Sound")
  3047.     s.Name = "Release"
  3048.     s.SoundId = "http://www.roblox.com/Asset/?id=10209813"
  3049.     s.Volume = 1
  3050.     s.Pitch = 4
  3051.     s.Looped = false
  3052.     s.Parent = pm
  3053.     local s = Instance.new("Sound")
  3054.     s.Name = "Reload"
  3055.     s.SoundId = "http://www.roblox.com/asset/?id=2761842"
  3056.     s.Volume = 1
  3057.     s.Pitch = 1.1
  3058.     s.Looped = false
  3059.     s.Parent = pm
  3060.     local s = Instance.new("Sound")
  3061.     s.Name = "Empty"
  3062.     s.SoundId = "http://www.roblox.com/asset/?id=2697295"
  3063.     s.Volume = 1
  3064.     s.Pitch = 5
  3065.     s.Looped = false
  3066.     s.Parent = pm
  3067.     local s = Instance.new("Sound")
  3068.     s.Name = "Switch"
  3069.     s.SoundId = "http://www.roblox.com/asset/?id=2697295"
  3070.     s.Volume = 1
  3071.     s.Pitch = 10
  3072.     s.Looped = false
  3073.     s.Parent = pm
  3074.     local s = Instance.new("Sound")
  3075.     s.Name = "Equip"
  3076.     s.SoundId = "http://www.roblox.com/Asset/?id=10209845"
  3077.     s.Volume = 1
  3078.     s.Pitch = 1.2
  3079.     s.Looped = false
  3080.     s.Parent = pm
  3081.     local p = Instance.new("Part")
  3082.     p.Name = "ShellOut"
  3083.     p.formFactor = "Symmetric"
  3084.     p.Size = Vector3.new(1, 1, 1)
  3085.     p.Transparency = 1
  3086.     p.Locked = true
  3087.     p.CanCollide = false
  3088.     p.TopSurface = 0
  3089.     p.BottomSurface = 0
  3090.     p.Parent = model
  3091.     local w = Instance.new("Weld")
  3092.     w.Part0 = p
  3093.     w.Part1 = pm
  3094.     w.C0 = CFrame.new(0, 0.46, 1) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0)
  3095.     w.C1 = CFrame.new()
  3096.     w.Parent = p
  3097.     local p = Instance.new("Part")
  3098.     p.Name = "Grip"
  3099.     p.formFactor = "Symmetric"
  3100.     p.Size = Vector3.new(1, 1, 1)
  3101.     p.BrickColor = MC
  3102.     p.Reflectance = MR
  3103.     p.CanCollide = false
  3104.     p.Locked = true
  3105.     p.TopSurface = 0
  3106.     p.BottomSurface = 0
  3107.     p.Parent = model
  3108.     local m = Instance.new("BlockMesh")
  3109.     m.Scale = Vector3.new(0.29, 0.38, 0.8)
  3110.     m.Parent = p
  3111.     local w = Instance.new("Weld")
  3112.     w.Part0 = p
  3113.     w.Part1 = pm
  3114.     w.C0 = CFrame.new(0, -0.15, -0.5) * CFrame.fromEulerAnglesXYZ(math.rad(15), 0, 0)
  3115.     w.C1 = CFrame.new()
  3116.     w.Parent = p
  3117.     local p = Instance.new("Part")
  3118.     p.Name = "Body"
  3119.     p.formFactor = "Symmetric"
  3120.     p.Size = Vector3.new(1, 1, 1)
  3121.     p.BrickColor = MC
  3122.     p.Reflectance = MR
  3123.     p.CanCollide = false
  3124.     p.Locked = true
  3125.     p.TopSurface = 0
  3126.     p.BottomSurface = 0
  3127.     p.Parent = model
  3128.     local m = Instance.new("BlockMesh")
  3129.     m.Scale = Vector3.new(0.35, 0.3, 0.44)
  3130.     m.Parent = p
  3131.     local w = Instance.new("Weld")
  3132.     w.Part0 = p
  3133.     w.Part1 = pm
  3134.     w.C0 = CFrame.new(0, -0.56, -0.06)
  3135.     w.C1 = CFrame.new()
  3136.     w.Parent = p   
  3137.     local p = Instance.new("Part")
  3138.     p.Name = "Rearsight"
  3139.     p.formFactor = "Symmetric"
  3140.     p.Size = Vector3.new(1, 1, 1)
  3141.     p.BrickColor = MC
  3142.     p.Reflectance = MR
  3143.     p.CanCollide = false
  3144.     p.Locked = true
  3145.     p.TopSurface = 0
  3146.     p.BottomSurface = 0
  3147.     p.Parent = model
  3148.     local m = Instance.new("BlockMesh")
  3149.     m.Scale = Vector3.new(0.08, 0.2, 0.44)
  3150.     m.Offset = Vector3.new(0.12, 0, 0)
  3151.     m.Parent = p
  3152.     local w = Instance.new("Weld")
  3153.     w.Part0 = p
  3154.     w.Part1 = pm
  3155.     w.C0 = CFrame.new(0, -0.56, 0)
  3156.     w.C1 = CFrame.new()
  3157.     w.Parent = p
  3158.     local p = Instance.new("Part")
  3159.     p.Name = "Rearsight"
  3160.     p.formFactor = "Symmetric"
  3161.     p.Size = Vector3.new(1, 1, 1)
  3162.     p.BrickColor = MC
  3163.     p.Reflectance = MR
  3164.     p.CanCollide = false
  3165.     p.Locked = true
  3166.     p.TopSurface = 0
  3167.     p.BottomSurface = 0
  3168.     p.Parent = model
  3169.     local m = Instance.new("BlockMesh")
  3170.     m.Scale = Vector3.new(0.08, 0.2, 0.44)
  3171.     m.Offset = Vector3.new(-0.12, 0, 0)
  3172.     m.Parent = p
  3173.     local w = Instance.new("Weld")
  3174.     w.Part0 = p
  3175.     w.Part1 = pm
  3176.     w.C0 = CFrame.new(0, -0.56, 0)
  3177.     w.C1 = CFrame.new()
  3178.     w.Parent = p
  3179.     local p = Instance.new("Part")
  3180.     p.Name = "Frontsight"
  3181.     p.formFactor = "Symmetric"
  3182.     p.Size = Vector3.new(1, 1, 1)
  3183.     p.BrickColor = MC
  3184.     p.Reflectance = MR
  3185.     p.CanCollide = false
  3186.     p.Locked = true
  3187.     p.TopSurface = 0
  3188.     p.BottomSurface = 0
  3189.     p.Parent = model
  3190.     local m = Instance.new("BlockMesh")
  3191.     m.Scale = Vector3.new(0.08, 0.1, 0.3)
  3192.     m.Parent = p
  3193.     local w = Instance.new("Weld")
  3194.     w.Part0 = p
  3195.     w.Part1 = pm
  3196.     w.C0 = CFrame.new(0, 2, 0.07)
  3197.     w.C1 = CFrame.new()
  3198.     w.Parent = p       
  3199.     local p = Instance.new("Part")
  3200.     p.Name = "Top2C"
  3201.     p.formFactor = "Symmetric"
  3202.     p.Size = Vector3.new(1, 1, 1)
  3203.     p.BrickColor = MC
  3204.     p.Reflectance = MR
  3205.     p.CanCollide = false
  3206.     p.Locked = true
  3207.     p.TopSurface = 0
  3208.     p.BottomSurface = 0
  3209.     p.Parent = model
  3210.     local m = Instance.new("BlockMesh")
  3211.     m.Scale = Vector3.new(0.42, 0.46, 0.12)
  3212.     m.Parent = p
  3213.     local w = Instance.new("Weld")
  3214.     w.Part0 = p
  3215.     w.Part1 = pm
  3216.     w.C0 = CFrame.new(0.035, 0.46, 0.1)
  3217.     w.C1 = CFrame.new()
  3218.     w.Parent = p
  3219.     local p = Instance.new("Part")
  3220.     p.Name = "Top2O"
  3221.     p.formFactor = "Symmetric"
  3222.     p.Size = Vector3.new(1, 1, 1)
  3223.     p.BrickColor = MC
  3224.     p.Reflectance = MR
  3225.     p.CanCollide = false
  3226.     p.Transparency = 1
  3227.     p.Locked = true
  3228.     p.TopSurface = 0
  3229.     p.BottomSurface = 0
  3230.     p.Parent = model
  3231.     local m = Instance.new("BlockMesh")
  3232.     m.Scale = Vector3.new(0.42, 0.46, 0.12)
  3233.     m.Parent = p
  3234.     local w = Instance.new("Weld")
  3235.     w.Part0 = p
  3236.     w.Part1 = pm
  3237.     w.C0 = CFrame.new(0.035, 0.4, 0.38) * CFrame.fromEulerAnglesXYZ(math.rad(20), 0, 0)
  3238.     w.C1 = CFrame.new()
  3239.     w.Parent = p   
  3240.     local p = Instance.new("Part")
  3241.     p.Name = "TopC"
  3242.     p.formFactor = "Symmetric"
  3243.     p.Size = Vector3.new(1, 1, 1)
  3244.     p.BrickColor = MC
  3245.     p.Reflectance = MR
  3246.     p.CanCollide = false
  3247.     p.Locked = true
  3248.     p.TopSurface = 0
  3249.     p.BottomSurface = 0
  3250.     p.Parent = model
  3251.     local m = Instance.new("BlockMesh")
  3252.     m.Scale = Vector3.new(0.35, 1.1, 0.12)
  3253.     m.Parent = p
  3254.     local w = Instance.new("Weld")
  3255.     w.Part0 = p
  3256.     w.Part1 = pm
  3257.     w.C0 = CFrame.new(0, 0.14, 0.1)
  3258.     w.C1 = CFrame.new()
  3259.     w.Parent = p
  3260.     local p = Instance.new("Part")
  3261.     p.Name = "TopO"
  3262.     p.formFactor = "Symmetric"
  3263.     p.Size = Vector3.new(1, 1, 1)
  3264.     p.BrickColor = MC
  3265.     p.Reflectance = MR
  3266.     p.CanCollide = false
  3267.     p.Transparency = 1
  3268.     p.Locked = true
  3269.     p.TopSurface = 0
  3270.     p.BottomSurface = 0
  3271.     p.Parent = model
  3272.     local m = Instance.new("BlockMesh")
  3273.     m.Scale = Vector3.new(0.35, 1.1, 0.12)
  3274.     m.Parent = p
  3275.     local w = Instance.new("Weld")
  3276.     w.Part0 = p
  3277.     w.Part1 = pm
  3278.     w.C0 = CFrame.new(0, 0.05, 0.38) * CFrame.fromEulerAnglesXYZ(math.rad(20), 0, 0)
  3279.     w.C1 = CFrame.new()
  3280.     w.Parent = p   
  3281.     local p = Instance.new("Part")
  3282.     p.Name = "Magazine"
  3283.     p.formFactor = "Symmetric"
  3284.     p.Size = Vector3.new(1, 1, 1)
  3285.     p.BrickColor = BrickColor.new("Sand green")
  3286.     p.Locked = true
  3287.     p.CanCollide = false
  3288.     p.TopSurface = 0
  3289.     p.BottomSurface = 0
  3290.     p.Parent = model
  3291.     local m = Instance.new("BlockMesh")
  3292.     m.Scale = Vector3.new(0.8, 0.43, 0.6)
  3293.     m.Parent = p
  3294.     local w = Instance.new("Weld")
  3295.     w.Part0 = p
  3296.     w.Part1 = pm
  3297.     w.C0 = CFrame.new(0, 0.46, -0.5)
  3298.     w.C1 = CFrame.new()
  3299.     w.Parent = p
  3300.     local p = Instance.new("Part")
  3301.     p.Name = "Magazine2"
  3302.     p.formFactor = "Symmetric"
  3303.     p.Size = Vector3.new(1, 1, 1)
  3304.     p.BrickColor = BrickColor.new("Bright yellow")
  3305.     p.Locked = true
  3306.     p.CanCollide = false
  3307.     p.Reflectance = 0.3
  3308.     if magazine.Value ~= 0 then
  3309.         p.Transparency = 0
  3310.     else
  3311.         p.Transparency = 1
  3312.     end
  3313.     p.TopSurface = 0
  3314.     p.BottomSurface = 0
  3315.     p.Parent = model
  3316.     local m = Instance.new("BlockMesh")
  3317.     m.Scale = Vector3.new(0.06, 0.36, 0.6)
  3318.     m.Parent = p
  3319.     local w = Instance.new("Weld")
  3320.     w.Part0 = p
  3321.     w.Part1 = pm
  3322.     w.C0 = CFrame.new(0.18, 0.46, -0.26) * CFrame.fromEulerAnglesXYZ(0, math.rad(20), 0)
  3323.     w.C1 = CFrame.new()
  3324.     w.Parent = p   
  3325.     local p = Instance.new("Part")
  3326.     p.Name = "TriggerGuard"
  3327.     p.formFactor = "Symmetric"
  3328.     p.Size = Vector3.new(1, 1, 1)
  3329.     p.BrickColor = MC
  3330.     p.Reflectance = MR
  3331.     p.CanCollide = false
  3332.     p.Locked = true
  3333.     p.TopSurface = 0
  3334.     p.BottomSurface = 0
  3335.     p.Parent = model
  3336.     local m = Instance.new("SpecialMesh")
  3337.     m.MeshType = "FileMesh"
  3338.     m.MeshId = "http://www.roblox.com/asset/?id=3270017"
  3339.     m.Scale = Vector3.new(0.3, 0.3, 0.8)
  3340.     m.Parent = p
  3341.     local w = Instance.new("Weld")
  3342.     w.Part0 = p
  3343.     w.Part1 = pm
  3344.     w.C0 = CFrame.new(-0.25, 0, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0)
  3345.     w.C1 = CFrame.new()
  3346.     w.Parent = p
  3347.     local p = Instance.new("Part")
  3348.     p.Name = "Trigger"
  3349.     p.formFactor = "Symmetric"
  3350.     p.Size = Vector3.new(1, 1, 1)
  3351.     p.BrickColor = BrickColor.new("Dark stone grey")
  3352.     p.Reflectance = MR
  3353.     p.CanCollide = false
  3354.     p.Locked = true
  3355.     p.TopSurface = 0
  3356.     p.BottomSurface = 0
  3357.     p.Parent = model
  3358.     local m = Instance.new("BlockMesh")
  3359.     m.Scale = Vector3.new(0.1, 0.4, 0.16)
  3360.     m.Parent = p
  3361.     local w = Instance.new("Weld")
  3362.     w.Part0 = p
  3363.     w.Part1 = pm
  3364.     w.C0 = CFrame.new(0, -0.14, -0.3)
  3365.     w.C1 = CFrame.new()
  3366.     w.Parent = p
  3367.     local p = Instance.new("Part")
  3368.     p.Name = "ForeBarrel"
  3369.     p.CanCollide = false
  3370.     p.formFactor = "Symmetric"
  3371.     p.Size = Vector3.new(1, 1, 1)
  3372.     p.BrickColor = GC
  3373.     p.Reflectance = GR
  3374.     p.Locked = true
  3375.     p.TopSurface = 0
  3376.     p.BottomSurface = 0
  3377.     p.Parent = model
  3378.     local m = Instance.new("BlockMesh")
  3379.     m.Scale = Vector3.new(0.25, 1, 0.25)
  3380.     m.Parent = p
  3381.     local w = Instance.new("Weld")
  3382.     w.Part0 = p
  3383.     w.Part1 = pm
  3384.     w.C0 = CFrame.new(0, 1.18, -0.1)
  3385.     w.C1 = CFrame.new()
  3386.     w.Parent = p
  3387.     local p = Instance.new("Part")
  3388.     p.Name = "ForeBarrel"
  3389.     p.CanCollide = false
  3390.     p.formFactor = "Symmetric"
  3391.     p.Size = Vector3.new(1, 1, 1)
  3392.     p.BrickColor = GC
  3393.     p.Reflectance = GR
  3394.     p.Locked = true
  3395.     p.TopSurface = 0
  3396.     p.BottomSurface = 0
  3397.     p.Parent = model
  3398.     local m = Instance.new("BlockMesh")
  3399.     m.Scale = Vector3.new(0.25, 0.8, 0.3)
  3400.     m.Parent = p
  3401.     local w = Instance.new("Weld")
  3402.     w.Part0 = p
  3403.     w.Part1 = pm
  3404.     w.C0 = CFrame.new(0, 1.09, -0.25)
  3405.     w.C1 = CFrame.new()
  3406.     w.Parent = p
  3407.     local p = Instance.new("Part")
  3408.     p.Name = "Shroud"
  3409.     p.CanCollide = false
  3410.     p.formFactor = "Symmetric"
  3411.     p.Size = Vector3.new(1, 1, 1)
  3412.     p.BrickColor = MC
  3413.     p.Reflectance = MR
  3414.     p.Locked = true
  3415.     p.TopSurface = 0
  3416.     p.BottomSurface = 0
  3417.     p.Parent = model
  3418.     local m = Instance.new("CylinderMesh")
  3419.     m.Scale = Vector3.new(0.26, 0.999, 0.26)
  3420.     m.Parent = p
  3421.     local w = Instance.new("Weld")
  3422.     w.Part0 = p
  3423.     w.Part1 = pm
  3424.     w.C0 = CFrame.new(0, 1.18, 0)
  3425.     w.C1 = CFrame.new()
  3426.     w.Parent = p   
  3427.     local p = Instance.new("Part")
  3428.     p.Name = "Rail" --------------
  3429.     p.CanCollide = false
  3430.     p.formFactor = "Symmetric"
  3431.     p.Size = Vector3.new(1, 1, 1)
  3432.     p.BrickColor = MC
  3433.     p.Reflectance = MR
  3434.     p.Locked = true
  3435.     p.TopSurface = 0
  3436.     p.BottomSurface = 0
  3437.     p.Parent = model
  3438.     local m = Instance.new("BlockMesh")
  3439.     m.Scale = Vector3.new(0.18, 1, 0.18)
  3440.     m.Parent = p
  3441.     local w = Instance.new("Weld")
  3442.     w.Part0 = p
  3443.     w.Part1 = pm
  3444.     w.C0 = CFrame.new(0, 1.17, -0.04)
  3445.     w.C1 = CFrame.new()
  3446.     w.Parent = p
  3447.     local p = Instance.new("Part")
  3448.     p.Name = "Barrel 1"
  3449.     p.formFactor = "Symmetric"
  3450.     p.Size = Vector3.new(1, 1, 1)
  3451.     p.BrickColor = DC
  3452.     p.Reflectance = MR
  3453.     p.CanCollide = false
  3454.     p.Locked = true
  3455.     p.TopSurface = 0
  3456.     p.BottomSurface = 0
  3457.     p.Parent = model
  3458.     local m = Instance.new("CylinderMesh")
  3459.     m.Scale = Vector3.new(0.15, 0.8, 0.15)
  3460.     m.Parent = p
  3461.     local w = Instance.new("Weld")
  3462.     w.Part0 = p
  3463.     w.Part1 = pm
  3464.     w.C0 = CFrame.new(0, 1.6, -0.04)
  3465.     w.C1 = CFrame.new()
  3466.     w.Parent = p
  3467.     local p = Instance.new("Part")
  3468.     p.Name = "Hole"
  3469.     p.formFactor = "Symmetric"
  3470.     p.Size = Vector3.new(1, 1, 1)
  3471.     p.BrickColor = BrickColor.new("Really black")
  3472.     p.CanCollide = false
  3473.     p.Locked = true
  3474.     p.TopSurface = 0
  3475.     p.BottomSurface = 0
  3476.     p.Parent = model
  3477.     local m = Instance.new("CylinderMesh")
  3478.     m.Scale = Vector3.new(0.14, 0.4, 0.14)
  3479.     m.Offset = Vector3.new(0, 0.2, 0)
  3480.     m.Parent = p
  3481.     local w = Instance.new("Weld")
  3482.     w.Part0 = p
  3483.     w.Part1 = pm
  3484.     w.C0 = CFrame.new(0, 2.405, -0.04)
  3485.     w.C1 = CFrame.new()
  3486.     w.Parent = p
  3487.     local p = Instance.new("Part")
  3488.     if silenced == false then
  3489.         p.Name = "Muzzle"
  3490.     else
  3491.         p.Name = "Muzzle 2"
  3492.     end
  3493.     p.formFactor = "Symmetric"
  3494.     p.Size = Vector3.new(1, 1, 1)
  3495.     p.BrickColor = DC
  3496.     p.Reflectance = MR
  3497.     p.CanCollide = false
  3498.     p.Locked = true
  3499.     p.TopSurface = 0
  3500.     p.BottomSurface = 0
  3501.     p.Parent = model
  3502.     local m = Instance.new("CylinderMesh")
  3503.     m.Scale = Vector3.new(0.18, 0.4, 0.18)
  3504.     m.Offset = Vector3.new(0, 0.2, 0)
  3505.     m.Parent = p
  3506.     local w = Instance.new("Weld")
  3507.     w.Part0 = p
  3508.     w.Part1 = pm
  3509.     w.C0 = CFrame.new(0, 2.4, -0.04)
  3510.     w.C1 = CFrame.new()
  3511.     w.Parent = p
  3512.     local s = Instance.new("Smoke")
  3513.     s.Enabled = false
  3514.     s.Name = "Smoke"
  3515.     s.RiseVelocity = -5
  3516.     s.Opacity = 0.3
  3517.     s.Color = Color3.new(75 / 225, 75 / 225, 75 / 225)
  3518.     s.Size = 1
  3519.     s.Parent = p
  3520.     local f = Instance.new("Fire")
  3521.     f.Enabled = false
  3522.     f.Name = "Fire"
  3523.     f.Heat = -35
  3524.     f.Size = 1
  3525.     f.Parent = p
  3526.     local p = Instance.new("Part")
  3527.     p.Name = "Silencer"
  3528.     p.formFactor = "Symmetric"
  3529.     p.Size = Vector3.new(1, 1, 1)
  3530.     p.BrickColor = BrickColor.new("Black")
  3531.     p.CanCollide = false
  3532.     if silenced == false then
  3533.         p.Name = "Silencer"
  3534.         p.Transparency = 1
  3535.     else   
  3536.         p.Name = "Muzzle"
  3537.         p.Transparency = 0
  3538.     end
  3539.     p.Locked = true
  3540.     p.TopSurface = 0
  3541.     p.BottomSurface = 0
  3542.     p.Parent = model
  3543.     local m = Instance.new("CylinderMesh")
  3544.     m.Scale = Vector3.new(0.25, 0.8, 0.25)
  3545.     m.Parent = p
  3546.     local w = Instance.new("Weld")
  3547.     w.Part0 = p
  3548.     w.Part1 = pm
  3549.     w.C0 = CFrame.new(0, 2.5, -0.04)
  3550.     w.C1 = CFrame.new()
  3551.     w.Parent = p
  3552.     if Holstered == true then
  3553.         local p = Instance.new("Part")
  3554.         p.Name = "StockI"
  3555.         p.CanCollide = false
  3556.         p.formFactor = "Symmetric"
  3557.         p.Size = Vector3.new(1, 1, 1)
  3558.         p.BrickColor = MC
  3559.         p.Reflectance = MR
  3560.         p.Locked = true
  3561.         p.TopSurface = 0
  3562.         p.BottomSurface = 0
  3563.         p.Parent = model
  3564.         local m = Instance.new("CylinderMesh")
  3565.         m.Scale = Vector3.new(0.36, 0.2, 0.36)
  3566.         m.Parent = p
  3567.         local w = Instance.new("Weld")
  3568.         w.Part0 = p
  3569.         w.Part1 = pm
  3570.         w.C0 = CFrame.new(0, -0.7, -0.1)
  3571.         w.C1 = CFrame.new()
  3572.         w.Parent = p
  3573.     else
  3574.         local p = Instance.new("Part")
  3575.         p.Name = "StockO"
  3576.         p.CanCollide = false
  3577.         p.formFactor = "Symmetric"
  3578.         p.Size = Vector3.new(1, 1, 1)
  3579.         p.BrickColor = MC
  3580.         p.Reflectance = MR
  3581.         p.Locked = true
  3582.         p.TopSurface = 0
  3583.         p.BottomSurface = 0
  3584.         p.Parent = model
  3585.         local m = Instance.new("CylinderMesh")
  3586.         m.Scale = Vector3.new(0.36, 0.2, 0.36)
  3587.         m.Parent = p
  3588.         local w = Instance.new("Weld")
  3589.         w.Part0 = p
  3590.         w.Part1 = pm
  3591.         w.C0 = CFrame.new(0, -1.4, -0.1)
  3592.         w.C1 = CFrame.new()
  3593.         w.Parent = p
  3594.         local p = Instance.new("Part")
  3595.         p.Name = "StockArm"
  3596.         p.CanCollide = false
  3597.         p.formFactor = "Symmetric"
  3598.         p.Size = Vector3.new(1, 1, 1)
  3599.         p.BrickColor = MC
  3600.         p.Reflectance = MR
  3601.         p.Locked = true
  3602.         p.TopSurface = 0
  3603.         p.BottomSurface = 0
  3604.         p.Parent = model
  3605.         local m = Instance.new("BlockMesh")
  3606.         m.Scale = Vector3.new(0.1, 0.8, 0.1)
  3607.         m.Offset = Vector3.new(0, 0, 0.12)
  3608.         m.Parent = p
  3609.         local w = Instance.new("Weld")
  3610.         w.Part0 = p
  3611.         w.Part1 = pm
  3612.         w.C0 = CFrame.new(0, -0.9, -0.1)
  3613.         w.C1 = CFrame.new()
  3614.         w.Parent = p
  3615.         local p = Instance.new("Part")
  3616.         p.Name = "StockArm"
  3617.         p.CanCollide = false
  3618.         p.formFactor = "Symmetric"
  3619.         p.Size = Vector3.new(1, 1, 1)
  3620.         p.BrickColor = MC
  3621.         p.Reflectance = MR
  3622.         p.Locked = true
  3623.         p.TopSurface = 0
  3624.         p.BottomSurface = 0
  3625.         p.Parent = model
  3626.         local m = Instance.new("BlockMesh")
  3627.         m.Scale = Vector3.new(0.1, 0.8, 0.1)
  3628.         m.Offset = Vector3.new(0, 0, -0.12)    
  3629.         m.Parent = p
  3630.         local w = Instance.new("Weld")
  3631.         w.Part0 = p
  3632.         w.Part1 = pm
  3633.         w.C0 = CFrame.new(0, -0.9, -0.1)
  3634.         w.C1 = CFrame.new()
  3635.         w.Parent = p               
  3636.     end
  3637.     return model
  3638. end
  3639.  
  3640.  
  3641. function removeParts(format)
  3642.     if format == "RightHand" then
  3643.         pcall(function() Player.Character[Name]:Remove() end)
  3644.     elseif format == "LeftHand" then
  3645.         pcall(function() Player.Character[Name.. " (Left)"]:Remove() end)
  3646.     elseif format == "RightHolster" then
  3647.         pcall(function() Player.Character[Name.. " (Holstered)"]:Remove() end)
  3648.     elseif format == "LeftHolster" then
  3649.         pcall(function() Player.Character[Name.. " (Holstered, Left)"]:Remove() end)
  3650.     end
  3651. end
  3652.  
  3653.  
  3654. function SetAngle(Joint, Angle, Character)
  3655.     if Character == nil then return false end
  3656.     local Joints = {
  3657.         Character.Torso:FindFirstChild("Right Shoulder 2"),
  3658.         Character.Torso:FindFirstChild("Left Shoulder 2"),
  3659.         Character.Torso:FindFirstChild("Right Hip 2"),
  3660.         Character.Torso:FindFirstChild("Left Hip 2")
  3661.     }
  3662.     if Joints[Joint] == nil then return false end
  3663.     if Joint == 1 or Joint == 3 then
  3664.         Joints[Joint].DesiredAngle = Angle
  3665.     end
  3666.     if Joint == 2 or Joint == 4 then
  3667.         Joints[Joint].DesiredAngle = -Angle
  3668.     end
  3669. end
  3670.  
  3671.  
  3672. function ForceAngle(Joint, Angle, Character)
  3673.     if Character == nil then return false end
  3674.     local Joints = {
  3675.         Character.Torso:FindFirstChild("Right Shoulder 2"),
  3676.         Character.Torso:FindFirstChild("Left Shoulder 2"),
  3677.         Character.Torso:FindFirstChild("Right Hip 2"),
  3678.         Character.Torso:FindFirstChild("Left Hip 2")
  3679.     }
  3680.     if Joints[Joint] == nil then return false end
  3681.     if Joint == 1 or Joint == 3 then
  3682.         Joints[Joint].DesiredAngle = Angle
  3683.         Joints[Joint].CurrentAngle = Angle
  3684.     end
  3685.     if Joint == 2 or Joint == 4 then
  3686.         Joints[Joint].DesiredAngle = -Angle
  3687.         Joints[Joint].CurrentAngle = -Angle
  3688.     end
  3689. end
  3690.  
  3691.  
  3692. function SetSpeed(Joint, Speed, Character)
  3693.     if Character == nil then return false end
  3694.     local Joints = {
  3695.         Character.Torso:FindFirstChild("Right Shoulder 2"),
  3696.         Character.Torso:FindFirstChild("Left Shoulder 2"),
  3697.         Character.Torso:FindFirstChild("Right Hip 2"),
  3698.         Character.Torso:FindFirstChild("Left Hip 2")
  3699.     }
  3700.     if Joints[Joint] == nil then return false end
  3701.     Joints[Joint].MaxVelocity = Speed
  3702. end
  3703.  
  3704.  
  3705. function DisableLimb(Limb, Character)
  3706.     if Character == nil then return false end
  3707.     if Character:FindFirstChild("Torso") == nil then return false end
  3708.     local Joints = {
  3709.         Character.Torso:FindFirstChild("Right Shoulder"),
  3710.         Character.Torso:FindFirstChild("Left Shoulder"),
  3711.         Character.Torso:FindFirstChild("Right Hip"),
  3712.         Character.Torso:FindFirstChild("Left Hip")
  3713.     }
  3714.     local Limbs = {
  3715.         Character:FindFirstChild("Right Arm"),
  3716.         Character:FindFirstChild("Left Arm"),
  3717.         Character:FindFirstChild("Right Leg"),
  3718.         Character:FindFirstChild("Left Leg")
  3719.     }
  3720.     if Joints[Limb] == nil then return false end
  3721.     if Limbs[Limb] == nil then return false end
  3722.     local Joint = Instance.new("Motor")
  3723.     Joint.Parent = Character.Torso
  3724.     Joint.Part0 = Character.Torso
  3725.     Joint.Part1 = Limbs[Limb]
  3726.     if Limb == 1 then
  3727.         Joint.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0)
  3728.         Joint.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0)
  3729.         Joint.Name = "Right Shoulder 2"
  3730.     elseif Limb == 2 then
  3731.         Joint.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0)
  3732.         Joint.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0)
  3733.         Joint.Name = "Left Shoulder 2"
  3734.     elseif Limb == 3 then
  3735.         Joint.C0 = CFrame.new(0.5, -1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0)
  3736.         Joint.C1 = CFrame.new(0, 1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0)
  3737.         Joint.Name = "Right Hip 2"
  3738.     elseif Limb == 4 then
  3739.         Joint.C0 = CFrame.new(-0.5, -1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0)
  3740.         Joint.C1 = CFrame.new(0, 1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0)
  3741.         Joint.Name = "Left Hip 2"
  3742.     end
  3743.     Joint.MaxVelocity = Joints[Limb].MaxVelocity
  3744.     Joint.CurrentAngle = Joints[Limb].CurrentAngle
  3745.     Joint.DesiredAngle = Joints[Limb].DesiredAngle
  3746.     Joints[Limb]:Remove()
  3747. end
  3748.  
  3749.  
  3750. function ResetLimbCFrame(Limb, Character)
  3751.     if Character == nil then return false end
  3752.     if Character.Parent == nil then return false end
  3753.     if Character:FindFirstChild("Torso") == nil then return false end
  3754.     local Joints = {
  3755.         Character.Torso:FindFirstChild("Right Shoulder 2"),
  3756.         Character.Torso:FindFirstChild("Left Shoulder 2"),
  3757.         Character.Torso:FindFirstChild("Right Hip 2"),
  3758.         Character.Torso:FindFirstChild("Left Hip 2")
  3759.     }
  3760.     local Limbs = {
  3761.         Character:FindFirstChild("Right Arm"),
  3762.         Character:FindFirstChild("Left Arm"),
  3763.         Character:FindFirstChild("Right Leg"),
  3764.         Character:FindFirstChild("Left Leg")
  3765.     }
  3766.     if Joints[Limb] == nil then return false end
  3767.     if Limbs[Limb] == nil then return false end
  3768.     if Limb == 1 then
  3769.         Joints[Limb].C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0)
  3770.         Joints[Limb].C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0)
  3771.     elseif Limb == 2 then
  3772.         Joints[Limb].C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0)
  3773.         Joints[Limb].C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0)
  3774.     elseif Limb == 3 then
  3775.         Joints[Limb].C0 = CFrame.new(0.5, -1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0)
  3776.         Joints[Limb].C1 = CFrame.new(0, 1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0)
  3777.     elseif Limb == 4 then
  3778.         Joints[Limb].C0 = CFrame.new(-0.5, -1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0)
  3779.         Joints[Limb].C1 = CFrame.new(0, 1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0)
  3780.     end
  3781. end
  3782.  
  3783.  
  3784. function EnableLimb(Limb, Character)
  3785.     if Character == nil then return false end
  3786.     if Character:FindFirstChild("Torso") == nil then return false end
  3787.     local Joints = {
  3788.         Character.Torso:FindFirstChild("Right Shoulder 2"),
  3789.         Character.Torso:FindFirstChild("Left Shoulder 2"),
  3790.         Character.Torso:FindFirstChild("Right Hip 2"),
  3791.         Character.Torso:FindFirstChild("Left Hip 2")
  3792.     }
  3793.     local Limbs = {
  3794.         Character:FindFirstChild("Right Arm"),
  3795.         Character:FindFirstChild("Left Arm"),
  3796.         Character:FindFirstChild("Right Leg"),
  3797.         Character:FindFirstChild("Left Leg")
  3798.     }
  3799.     if Joints[Limb] == nil then return false end
  3800.     if Limbs[Limb] == nil then return false end
  3801.     if Limb == 1 then
  3802.         Joints[Limb].Name = "Right Shoulder"
  3803.     elseif Limb == 2 then
  3804.         Joints[Limb].Name = "Left Shoulder"
  3805.     elseif Limb == 3 then
  3806.         Joints[Limb].Name = "Right Hip"
  3807.     elseif Limb == 4 then
  3808.         Joints[Limb].Name = "Left Hip"
  3809.     end
  3810.     Animate = Character:FindFirstChild("Animate")
  3811.     if Animate == nil then return false end
  3812.     Animate = Animate:Clone()
  3813.     Character.Animate:Remove()
  3814.     Animate.Parent = Character
  3815. end
  3816.  
  3817.  
  3818. function playAnimation(format, mouse)
  3819.     if format == "equip" then
  3820.         Player.Character.Humanoid.WalkSpeed = WSPenalty
  3821.         coroutine.resume(coroutine.create(function()
  3822.             for i = 0, 1, 0.025 do
  3823.                 if Player.Character:FindFirstChild("Torso") ~= nil then
  3824.                     if Player.Character.Torso:FindFirstChild("Left Shoulder 2") ~= nil and Player.Character.Torso:FindFirstChild("Right Shoulder 2") ~= nil then
  3825.                         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)
  3826.                         Player.Character.Torso["Left Shoulder 2"].C1 = CFrame.new(0, 0.5 * (1 - i), 0) * CFrame.new(0, 1.85 * i, 0)
  3827.                     else return false end
  3828.                 else return false end
  3829.                 wait()
  3830.             end
  3831.         end))
  3832.         for i = 0, 1, 0.05 do
  3833.             if Player.Character:FindFirstChild("Torso") ~= nil then
  3834.                 if Player.Character.Torso:FindFirstChild("Left Shoulder 2") ~= nil and Player.Character.Torso:FindFirstChild("Right Shoulder 2") ~= nil then
  3835.                     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)
  3836.                     Player.Character.Torso["Right Shoulder 2"].C1 = CFrame.new(0, 0.5, 0)
  3837.                 else return false end
  3838.             else return false end
  3839.             wait()
  3840.         end
  3841.         removeParts("RightHolster")
  3842.         makeParts("RightHand")
  3843.         for i = 0, 1, 0.05 do
  3844.             if Player.Character:FindFirstChild("Torso") ~= nil then
  3845.                 if Player.Character.Torso:FindFirstChild("Left Shoulder 2") ~= nil and Player.Character.Torso:FindFirstChild("Right Shoulder 2") ~= nil then
  3846.                     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)
  3847.                     Player.Character.Torso["Right Shoulder 2"].C1 = CFrame.new(0, 0.5 * (1 - i), 0) * CFrame.new(0, 0.75 * i, 0.1 * i)
  3848.                 else return false end
  3849.             else return false end
  3850.             if Player.Character:FindFirstChild(Name) ~= nil then
  3851.                 if Player.Character[Name]:FindFirstChild("Handle") ~= nil then
  3852.                     Player.Character[Name].Handle.Weld.C0 = CFrame.new(0, 1.5, 0.75)
  3853.                     Player.Character[Name].Handle.Weld.C1 = CFrame.fromEulerAnglesXYZ(math.rad(-90) * (1 - i), 0, 0)
  3854.                 else return false end
  3855.             else return false end
  3856.             wait()
  3857.         end
  3858.         makeParts("RightHolster")
  3859.         removeParts("RightHand")
  3860.         return playAnimation("hold")
  3861.     end
  3862.     if format == "unequip" then
  3863.         Player.Character.Humanoid.WalkSpeed = 16
  3864.         coroutine.resume(coroutine.create(function()
  3865.             for i = 1, 0, -0.025 do
  3866.                 if Player.Character:FindFirstChild("Torso") ~= nil then
  3867.                     if Player.Character.Torso:FindFirstChild("Left Shoulder 2") ~= nil and Player.Character.Torso:FindFirstChild("Right Shoulder 2") ~= nil then
  3868.                         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)
  3869.                         Player.Character.Torso["Left Shoulder 2"].C1 = CFrame.new(0, 0.5 * (1 - i), 0) * CFrame.new(0, 1.85 * i, 0)
  3870.                     else return false end
  3871.                 else return false end
  3872.                 wait()
  3873.             end
  3874.         end))
  3875.         for i = 1, 0, -0.05 do
  3876.             if Player.Character:FindFirstChild("Torso") ~= nil then
  3877.                 if Player.Character.Torso:FindFirstChild("Left Shoulder 2") ~= nil and Player.Character.Torso:FindFirstChild("Right Shoulder 2") ~= nil then
  3878.                     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)
  3879.                     Player.Character.Torso["Right Shoulder 2"].C1 = CFrame.new(0, 0.5 * (1 - i), 0) * CFrame.new(0, 0.75 * i, 0.1 * i)
  3880.                 else return false end
  3881.             else return false end
  3882.             if Player.Character:FindFirstChild(Name) ~= nil then
  3883.                 if Player.Character[Name]:FindFirstChild("Handle") ~= nil then
  3884.                     Player.Character[Name].Handle.Weld.C0 = CFrame.new(0, 1.5, 0.75)
  3885.                     Player.Character[Name].Handle.Weld.C1 = CFrame.fromEulerAnglesXYZ(math.rad(-90) * (1 - i), 0, 0)
  3886.                 else return false end
  3887.             else return false end
  3888.             wait()
  3889.         end
  3890.         makeParts("RightHolster")
  3891.         removeParts("RightHand")
  3892.         for i = 1, 0, -0.05 do
  3893.             if Player.Character:FindFirstChild("Torso") ~= nil then
  3894.                 if Player.Character.Torso:FindFirstChild("Left Shoulder 2") ~= nil and Player.Character.Torso:FindFirstChild("Right Shoulder 2") ~= nil then
  3895.                     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)
  3896.                     Player.Character.Torso["Right Shoulder 2"].C1 = CFrame.new(0, 0.5, 0)
  3897.                 else return false end
  3898.             else return false end
  3899.             wait()
  3900.         end
  3901.         removeParts("RightHolster")
  3902.         makeParts("RightHand")
  3903.         return true
  3904.     end
  3905.     if format == "hold" then
  3906.         if Player.Character:FindFirstChild("Torso") ~= nil then
  3907.             if Player.Character.Torso:FindFirstChild("Left Shoulder 2") ~= nil and Player.Character.Torso:FindFirstChild("Right Shoulder 2") ~= nil then
  3908.                 Player.Character.Torso["Left Shoulder 2"].C0 = CFrame.new()
  3909.                 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))
  3910.                 Player.Character.Torso["Right Shoulder 2"].C0 = CFrame.new()
  3911.                 Player.Character.Torso["Right Shoulder 2"].C1 =  CFrame.new(-0.9, -0.35, 0.51) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(-5), 0)
  3912.             else return false end
  3913.         else return false end
  3914.     end
  3915.     if format == "reload" then
  3916.         Player.Character[Name].Handle.Weld:Remove()
  3917.         local w = Instance.new("Weld")
  3918.         w.Part0 = Player.Character[Name].Handle
  3919.         w.Part1 = Player.Character:FindFirstChild("Left Arm")
  3920.         w.C0 = CFrame.new(-0.85, -0.5, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(-5), math.rad(90), 0)
  3921.         w.C1 = CFrame.new() * CFrame.fromEulerAnglesXYZ(math.rad(50), 0, 0)
  3922.         w.Parent = Player.Character[Name].Handle
  3923.         if Player.Character:FindFirstChild("Torso") ~= nil then
  3924.             if Player.Character.Torso:FindFirstChild("Left Shoulder 2") ~= nil and Player.Character.Torso:FindFirstChild("Right Shoulder 2") ~= nil then
  3925.                 Player.Character.Torso["Left Shoulder 2"].C0 = CFrame.new()
  3926.                 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))
  3927.             else return false end
  3928.         else return false end
  3929.         wait(0.3)
  3930.         for i = 0, 1, 0.1 do
  3931.             if Player.Character:FindFirstChild("Torso") ~= nil then
  3932.                 if Player.Character.Torso:FindFirstChild("Right Shoulder 2") ~= nil then
  3933.                     Player.Character.Torso["Right Shoulder 2"].C0 = CFrame.new()
  3934.                     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)
  3935.                     wait()
  3936.                 else return false end
  3937.             else return false end
  3938.         end
  3939.         for i = 0, 1, 0.25 do
  3940.             if Player.Character:FindFirstChild("Torso") ~= nil then
  3941.                 if Player.Character.Torso:FindFirstChild("Right Shoulder 2") ~= nil then
  3942.                     Player.Character.Torso["Right Shoulder 2"].C0 = CFrame.new()
  3943.                     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)
  3944.                     wait()
  3945.                 else return false end
  3946.             else return false end
  3947.         end
  3948.         Player.Character[Name].Handle.Equip:Play()
  3949.         if magazine.Value ~= 0 then
  3950.             makeShell(Player.Character[Name]:FindFirstChild("ShellOut"))
  3951.         else end
  3952.         for i = 1, 0, -0.25 do
  3953.             if Player.Character:FindFirstChild("Torso") ~= nil then
  3954.                 if Player.Character.Torso:FindFirstChild("Right Shoulder 2") ~= nil then
  3955.                     Player.Character.Torso["Right Shoulder 2"].C0 = CFrame.new()
  3956.                     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)
  3957.                     wait()
  3958.                 else return false end
  3959.             else return false end
  3960.         end
  3961.         for i = 1, 0, -0.1 do
  3962.             if Player.Character:FindFirstChild("Torso") ~= nil then
  3963.                 if Player.Character.Torso:FindFirstChild("Right Shoulder 2") ~= nil then
  3964.                     Player.Character.Torso["Right Shoulder 2"].C0 = CFrame.new()
  3965.                     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)
  3966.                     wait()
  3967.                 else return false end
  3968.             else return false end
  3969.         end
  3970.         removeParts("RightHand")
  3971.         makeParts("RightHand")
  3972.         wait(0.4)
  3973.         Player.Character[Name].Handle.Lock:Play()
  3974.         for i = 5, 0, -1 do
  3975.             if Player.Character:FindFirstChild("Torso") ~= nil then
  3976.                 if Player.Character.Torso:FindFirstChild("Left Shoulder 2") ~= nil and Player.Character.Torso:FindFirstChild("Right Shoulder 2") ~= nil then
  3977.                     Player.Character.Torso["Left Shoulder 2"].C0 = CFrame.new()
  3978.                     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))
  3979.                     wait()
  3980.                 else return false end
  3981.             else return false end
  3982.         end
  3983.         Player.Character[Name].TopC.Transparency = 1
  3984.         Player.Character[Name].TopO.Transparency = 0
  3985.         Player.Character[Name].Top2C.Transparency = 1
  3986.         Player.Character[Name].Top2O.Transparency = 0
  3987.         wait(0.4)
  3988.         Player.Character[Name].Handle.Reload:Play()
  3989.         Player.Character[Name].Handle.Release:Play()
  3990.         Player.Character[Name].Magazine.Transparency = 1
  3991.         Player.Character[Name].Magazine2.Transparency = 1
  3992.         magazineDrop = Player.Character[Name].Magazine:Clone()
  3993.         magazineDrop.Transparency = 0
  3994.         magazineDrop.CanCollide = true
  3995.         magazineDrop.Parent = game.Workspace
  3996.         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)
  3997.         delay(0.1, function() magazineDrop.CanCollide = true end)
  3998.         for i = 0, 25, 5 do
  3999.             if Player.Character:FindFirstChild("Torso") ~= nil then
  4000.                 if Player.Character.Torso:FindFirstChild("Left Shoulder 2") ~= nil and Player.Character.Torso:FindFirstChild("Right Shoulder 2") ~= nil then
  4001.                     Player.Character.Torso["Left Shoulder 2"].C0 = CFrame.new()
  4002.                     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))                  
  4003.                     wait()
  4004.                 else return false end
  4005.             else return false end
  4006.         end
  4007.         magazineNew = Player.Character[Name].Magazine:Clone()
  4008.         magazineNew.Name = "New Magazine"
  4009.         magazineNew.Transparency = 0
  4010.         magazineNew.Parent = Player.Character[Name]
  4011.         local w = Instance.new("Weld")
  4012.         w.Part0 = magazineNew
  4013.         w.Part1 = Player.Character:FindFirstChild("Left Arm")
  4014.         w.C0 = CFrame.new(0, 1.1, 0)
  4015.         w.C1 = CFrame.new() * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0)
  4016.         w.Parent = magazineNew
  4017.         wait(0.2)
  4018.         for i = 25, 0, -5 do
  4019.             if Player.Character:FindFirstChild("Torso") ~= nil then
  4020.                 if Player.Character.Torso:FindFirstChild("Left Shoulder 2") ~= nil and Player.Character.Torso:FindFirstChild("Right Shoulder 2") ~= nil then
  4021.                     Player.Character.Torso["Left Shoulder 2"].C0 = CFrame.new()
  4022.                     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))
  4023.                     Player.Character.Torso["Right Shoulder 2"].C0 = CFrame.new()
  4024.                     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)))
  4025.                     wait()
  4026.                 else return false end
  4027.             else return false end
  4028.         end
  4029.         Player.Character[Name].Magazine.Transparency = 0
  4030.         Player.Character[Name]["New Magazine"]:Remove()
  4031.         wait(0.1)
  4032.         if Player.Character:FindFirstChild("Torso") ~= nil then
  4033.             if Player.Character.Torso:FindFirstChild("Left Shoulder 2") ~= nil and Player.Character.Torso:FindFirstChild("Right Shoulder 2") ~= nil then
  4034.                 Player.Character.Torso["Left Shoulder 2"].C0 = CFrame.new()
  4035.                 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))
  4036.                 Player.Character.Torso["Right Shoulder 2"].C0 = CFrame.new()
  4037.                 Player.Character.Torso["Right Shoulder 2"].C1 =  CFrame.new(-0.9, -0.35, 0.51) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(-5), 0)
  4038.             else return false end
  4039.         else return false end
  4040.         Player.Character[Name].Handle.Reload:Stop()
  4041.         wait(0.4)
  4042.         Player.Character[Name].Handle.Empty:Play()
  4043.         for i = 5, 0, -1 do
  4044.             if Player.Character:FindFirstChild("Torso") ~= nil then
  4045.                 if Player.Character.Torso:FindFirstChild("Left Shoulder 2") ~= nil and Player.Character.Torso:FindFirstChild("Right Shoulder 2") ~= nil then
  4046.                     Player.Character.Torso["Left Shoulder 2"].C0 = CFrame.new()
  4047.                     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))
  4048.                     wait()
  4049.                 else return false end
  4050.             else return false end
  4051.         end
  4052.         Player.Character[Name].Magazine2.Transparency = 0
  4053.         wait(0.4)
  4054.         Player.Character[Name].Handle.Lock:Play()
  4055.         for i = 5, 0, -1 do
  4056.             if Player.Character:FindFirstChild("Torso") ~= nil then
  4057.                 if Player.Character.Torso:FindFirstChild("Left Shoulder 2") ~= nil and Player.Character.Torso:FindFirstChild("Right Shoulder 2") ~= nil then
  4058.                     Player.Character.Torso["Left Shoulder 2"].C0 = CFrame.new()
  4059.                     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))
  4060.                     wait()
  4061.                 else return false end
  4062.             else return false end
  4063.         end
  4064.         Player.Character[Name].TopC.Transparency = 0
  4065.         Player.Character[Name].TopO.Transparency = 1
  4066.         Player.Character[Name].Top2C.Transparency = 0
  4067.         Player.Character[Name].Top2O.Transparency = 1      
  4068.         playAnimation("hold")
  4069.         return true
  4070.     end
  4071.     if format == "fire" then
  4072.         makeShell(Player.Character[Name]:FindFirstChild("ShellOut"))
  4073.         if magazine.Value == 0 then
  4074.             Player.Character[Name].Magazine2.Transparency = 1
  4075.         else end
  4076.         if Player.Character[Name]:FindFirstChild("Handle") ~= nil then
  4077.             if silenced then
  4078.                 Player.Character[Name].Handle.Fire2.Volume = math.random(3, 8) / 10
  4079.                 Player.Character[Name].Handle.Fire2.Pitch = math.random(2.4, 3)
  4080.                 Player.Character[Name].Handle.Fire2:Play()
  4081.                 CamShake(10, 90000)
  4082.             else
  4083.                 Player.Character[Name].Handle.Fire.Volume = math.random(9, 10) / 10
  4084.                 Player.Character[Name].Handle.Fire.Pitch = math.random(1.6, 1.8)
  4085.                 Player.Character[Name].Handle.Fire:Play()
  4086.                 CamShake(10, 80000)
  4087.             end
  4088.         else return false end
  4089.         if Player.Character[Name]:FindFirstChild("Muzzle") ~= nil then
  4090.             if silenced == false then
  4091.                 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))
  4092.             else end
  4093.         else return false end
  4094.         for i = 0, 10, 5 do
  4095.             if Player.Character:FindFirstChild("Torso") ~= nil then
  4096.                 if Player.Character.Torso:FindFirstChild("Left Shoulder 2") ~= nil and Player.Character.Torso:FindFirstChild("Right Shoulder 2") ~= nil then
  4097.                     Player.Character.Torso["Left Shoulder 2"].C0 = CFrame.new()
  4098.                     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))
  4099.                     Player.Character.Torso["Right Shoulder 2"].C0 = CFrame.new()
  4100.                     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)
  4101.                     wait()
  4102.                 else return false end
  4103.             else return false end
  4104.         end
  4105.         for i = 10, 0, -5 do
  4106.             if Player.Character:FindFirstChild("Torso") ~= nil then
  4107.                 if Player.Character.Torso:FindFirstChild("Left Shoulder 2") ~= nil and Player.Character.Torso:FindFirstChild("Right Shoulder 2") ~= nil then
  4108.                     Player.Character.Torso["Left Shoulder 2"].C0 = CFrame.new()
  4109.                     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))
  4110.                     Player.Character.Torso["Right Shoulder 2"].C0 = CFrame.new()
  4111.                     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)
  4112.                     wait()
  4113.                 else return false end
  4114.             else return false end
  4115.         end
  4116.     end
  4117.     return true
  4118. end
  4119.  
  4120.  
  4121. function CamShake(time, freq)
  4122.     coroutine.resume(coroutine.create(function()
  4123.         local cam = game:GetService("Workspace").CurrentCamera
  4124.         local time = 10
  4125.         local seed = Vector3.new(math.random(100, 200) / freq, math.random(100, 200) / freq, 0)
  4126.         if math.random(1, 2) == 1 then seed = Vector3.new(-seed.x, seed.y, 0) end
  4127.         if math.random(1, 2) == 1 then seed = Vector3.new(seed.x, -seed.y, 0) end
  4128.         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)
  4129.         for i = 1, time do
  4130.             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)
  4131.             wait()
  4132.         end
  4133.     end))
  4134. end
  4135.  
  4136.  
  4137. function makeShell(part)
  4138.     if part == nil then return false end
  4139.     local casing = Instance.new("Part")
  4140.     casing.Name = "Shell"
  4141.     casing.formFactor = "Custom"
  4142.     casing.Size = Vector3.new(0.2, 0.25, 0.2)
  4143.     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)))
  4144.     casing.BrickColor = BrickColor.new("New Yeller")
  4145.     local mesh = Instance.new("CylinderMesh")
  4146.     mesh.Scale = Vector3.new(0.3, 1, 0.3)
  4147.     mesh.Parent = casing
  4148.     casing.Parent = game:GetService("Workspace")
  4149.     casing:BreakJoints()
  4150.     casing.Velocity = (part.CFrame.lookVector * 50) + Vector3.new(0, 10, 0)
  4151.     coroutine.resume(coroutine.create(function() wait(4.5) for i = 0, 1, 0.1 do casing.Transparency = i wait() end casing:Remove() end))
  4152. end
  4153.  
  4154.  
  4155. function Weld(x, y)
  4156.     local weld = Instance.new("Weld")
  4157.     weld.Part0 = x
  4158.     weld.Part1 = y
  4159.     CJ = CFrame.new(x.Position)
  4160.     C0 = x.CFrame:inverse() * CJ
  4161.     C1 = y.CFrame:inverse() * CJ
  4162.     weld.C0 = C0
  4163.     weld.C1 = C1
  4164.     weld.Parent = x
  4165. end
  4166.  
  4167.  
  4168. function tagHumanoid(humanoid)
  4169.     local tag = Instance.new("ObjectValue")
  4170.     tag.Name = "creator"
  4171.     tag.Value = Player
  4172.     tag.Parent = humanoid
  4173.     local tag = Instance.new("StringValue")
  4174.     tag.Name = "creatorType1"
  4175.     tag.Value = Name
  4176.     tag.Parent = humanoid
  4177.     local tag = Instance.new("StringValue")
  4178.     tag.Name = "creatorType2"
  4179.     tag.Value = "shot"
  4180.     tag.Parent = humanoid
  4181. end
  4182.  
  4183.  
  4184. function untagHumanoid(humanoid)
  4185.     if humanoid ~= nil then
  4186.         local tag = humanoid:FindFirstChild("creator")
  4187.         if tag ~= nil then
  4188.             tag:Remove()
  4189.         end
  4190.         local tag = humanoid:FindFirstChild("creatorType1")
  4191.         if tag ~= nil then
  4192.             tag:Remove()
  4193.         end
  4194.         local tag = humanoid:FindFirstChild("creatorType2")
  4195.         if tag ~= nil then
  4196.             tag:Remove()
  4197.         end
  4198.     end
  4199. end
  4200.  
  4201.  
  4202. function fire(startPoint, endPoint, hit)
  4203.     local trail = Instance.new("Part")
  4204.     trail.Name = "Bullet Trail"
  4205.     trail.BrickColor = BrickColor.new("New Yeller")
  4206.     trail.TopSurface = 0
  4207.     trail.BottomSurface = 0
  4208.     trail.formFactor = 0
  4209.     trail.Size = Vector3.new(1, 1, 1)
  4210.     trail.Transparency = 0.8
  4211.     trail.Anchored = true
  4212.     trail.CanCollide = false
  4213.     trail.CFrame = CFrame.new((startPoint + endPoint) / 2, endPoint)
  4214.     trail.Parent = game:GetService("Workspace")
  4215.     local mesh = Instance.new("SpecialMesh")
  4216.     mesh.MeshType = "Brick"
  4217.     mesh.Scale = Vector3.new(0.1, 0.1, (startPoint - endPoint).magnitude)
  4218.     mesh.Parent = trail
  4219.     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)
  4220.     if hit ~= nil then
  4221.         if hit.Parent == nil then return end
  4222.         if hit.Parent:FindFirstChild("Humanoid") ~= nil then
  4223.             tagHumanoid(hit.Parent.Humanoid)
  4224.             if hit.Name == "Head" then
  4225.                 hit.Parent.Humanoid:TakeDamage(damage * 10)
  4226.             elseif hit.Name == "Torso" then
  4227.                 hit.Parent.Humanoid:TakeDamage(damage * 2)
  4228.             else
  4229.                 hit.Parent.Humanoid:TakeDamage(damage)
  4230.             end
  4231.             if math.random(1, 10) == 1 then
  4232.                 hit.Parent.Humanoid.Sit = true
  4233.             end
  4234.             delay(0.1, function() untagHumanoid(hit.Parent.Humanoid) end)
  4235.         end
  4236.         if hit.Anchored == false then
  4237.             hit.Velocity = hit.Velocity + ((endPoint - startPoint).unit * (damage * 2))
  4238.         end
  4239.     end
  4240. end
  4241.  
  4242.  
  4243. function onButton1Down(mouse)
  4244.     if selected == false then return end
  4245.     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
  4246.         if Player.Character[Name]:FindFirstChild("Handle") == nil then return end
  4247.         if Player.Character[Name]:FindFirstChild("Muzzle") == nil then return end
  4248.         if dual == true then if Player.Character[Name.. " (Left)"]:FindFirstChild("Handle") == nil then return end end
  4249.         if dual == true then if Player.Character[Name.. " (Left)"]:FindFirstChild("Muzzle") == nil then return end end
  4250.         mouse.Icon = "http://www.roblox.com/asset/?id=59125642"
  4251.         Button1Down = true
  4252.         canFire = false
  4253.         canFire2 = true
  4254.         while canFire2 == true do
  4255.             local humanoid = Player.Character:FindFirstChild("Humanoid")
  4256.             if humanoid == nil then
  4257.                 canFire2 = false
  4258.                 break
  4259.             end
  4260.             if humanoid.Health <= 0 then
  4261.                 canFire2 = false
  4262.                 break
  4263.             end
  4264.             local fireLeft = false
  4265.             if automatic == false and burst == false then
  4266.                 canFire2 = false
  4267.             elseif automatic == false and burst == true then
  4268.                 if burstCount >= burstCountMax then
  4269.                     canFire2 = false
  4270.                     burstCount = 0
  4271.                     break
  4272.                 end
  4273.                 burstCount = burstCount + 1
  4274.             elseif automatic == true and burst == false then
  4275.                 fireLeft = true
  4276.             end
  4277.             if magazine.Value > 0 then
  4278.                 magazine.Value = magazine.Value - 1
  4279.                 updateGui()
  4280.                 if silenced == true then
  4281.                     CamShake(1, Spread)
  4282.                 else end       
  4283.                 fire(Player.Character[Name].Muzzle.Position, mouse.Hit.p, mouse.Target)
  4284.                 coroutine.resume(coroutine.create(function()
  4285.                     if dual == true then
  4286.                         playAnimation("rightFire")
  4287.                     elseif dual == false then
  4288.                         playAnimation("fire")
  4289.                     end
  4290.                 end))
  4291.             else
  4292.                 Player.Character[Name].Handle.Empty:Play()
  4293.             end
  4294.             if fireLeft == true and dual == true and automatic == true then
  4295.                 if magazine.Value > 0 then
  4296.                     coroutine.resume(coroutine.create(function()
  4297.                         wait(readyTime / 2)
  4298.                         magazine.Value = magazine.Value - 1
  4299.                         updateGui()
  4300.                         fire(Player.Character[Name.. " (Left)"].Muzzle.Position, mouse.Hit.p, mouse.Target)
  4301.                         playAnimation("leftFire")
  4302.                     end))
  4303.                 else
  4304.                     coroutine.resume(coroutine.create(function()
  4305.                         wait(readyTime / 2)
  4306.                         Player.Character[Name].Handle.Empty:Play()
  4307.                     end))
  4308.                 end
  4309.             end
  4310.             wait(readyTime)
  4311.         end
  4312.         if magazine.Value ~= 0 then
  4313.             mouse.Icon = "http://www.roblox.com/asset/?id=59125633"
  4314.         else end
  4315.         canFire = true
  4316.     end
  4317. end
  4318.  
  4319.  
  4320. function onButton1Up(mouse)
  4321.     if selected == false then return end
  4322.     Button1Down = false
  4323.     canFire2 = false
  4324.     burstCount = 0
  4325.     while canFire == false do wait() end
  4326.     if dual == true and automatic == false then
  4327.         if Player.Character[Name.. " (Left)"]:FindFirstChild("Handle") == nil then return end
  4328.         if Player.Character[Name.. " (Left)"]:FindFirstChild("Muzzle") == nil then return end
  4329.         mouse.Icon = "http://www.roblox.com/asset/?id=59125642"
  4330.         canFire = false
  4331.         canFire2 = true
  4332.         while canFire2 == true do
  4333.             local humanoid = Player.Character:FindFirstChild("Humanoid")
  4334.             if humanoid == nil then
  4335.                 canFire2 = false
  4336.                 break
  4337.             end
  4338.             if humanoid.Health <= 0 then
  4339.                 canFire2 = false
  4340.                 break
  4341.             end
  4342.             if burst == false then
  4343.                 canFire2 = false
  4344.             elseif burst == true then
  4345.                 if burstCount >= burstCountMax then
  4346.                     canFire2 = false
  4347.                     burstCount = 0
  4348.                     break
  4349.                 end
  4350.                 burstCount = burstCount + 1
  4351.             end
  4352.             if magazine.Value <= 0 then
  4353.                 Player.Character[Name].Handle.Empty:Play()
  4354.             else
  4355.                 coroutine.resume(coroutine.create(function()
  4356.                     playAnimation("leftFire")
  4357.                 end))
  4358.                 magazine.Value = magazine.Value - 1
  4359.                 updateGui()
  4360.                 fire(Player.Character[Name.. " (Left)"].Muzzle.Position, mouse.Hit.p, mouse.Target)
  4361.             end
  4362.             wait(readyTime)
  4363.         end
  4364.         if magazine.Value ~= 0 then
  4365.             mouse.Icon = "http://www.roblox.com/asset/?id=59125633"
  4366.         else end
  4367.         canFire = true
  4368.     end
  4369. end
  4370.  
  4371.  
  4372. function onKeyDown(key, mouse)
  4373.     if selected == false then return end
  4374.     key = key:lower()
  4375.     if key == "q" and Button1Down == false and canFire == true then
  4376.         if mouse.Target == nil then return end
  4377.         if game:GetService("Players"):GetPlayerFromCharacter(mouse.Target.Parent) ~= nil then
  4378.             if dual == true then onKeyDown("t", mouse) end
  4379.             onDeselected(mouse)
  4380.             removeParts("RightHolster")
  4381.             script.Parent.Parent = game:GetService("Players"):GetPlayerFromCharacter(mouse.Target.Parent).Backpack
  4382.         end
  4383.     end
  4384.     if key == "e" and Button1Down == false and canFire == true and canSilence == true then
  4385.         if silenced then
  4386.             silenced = false
  4387.             if Player.Character:FindFirstChild(Name) == nil then return end
  4388.             if Player.Character[Name]:FindFirstChild("Muzzle") == nil then return end
  4389.             if Player.Character[Name]:FindFirstChild("Muzzle 2") == nil then return end
  4390.             Player.Character[Name].Muzzle.Transparency = 1
  4391.             Player.Character[Name].Muzzle.Name = "Silencer"
  4392.             Player.Character[Name]["Muzzle 2"].Name = "Muzzle"
  4393.             if dual == true then
  4394.                 if Player.Character[Name.. " (Left)"]:FindFirstChild("Muzzle") == nil then return end
  4395.                 if Player.Character[Name.. " (Left)"]:FindFirstChild("Muzzle 2") == nil then return end
  4396.                 Player.Character[Name.. " (Left)"].Muzzle.Transparency = 1
  4397.                 Player.Character[Name.. " (Left)"].Muzzle.Name = "Silencer"
  4398.                 Player.Character[Name.. " (Left)"]["Muzzle 2"].Name = "Muzzle"
  4399.             end
  4400.         else
  4401.             silenced = true
  4402.             if Player.Character:FindFirstChild(Name) == nil then return end
  4403.             if Player.Character[Name]:FindFirstChild("Silencer") == nil then return end
  4404.             if Player.Character[Name]:FindFirstChild("Muzzle") == nil then return end
  4405.             Player.Character[Name].Silencer.Transparency = 0
  4406.             Player.Character[Name].Muzzle.Name = "Muzzle 2"
  4407.             Player.Character[Name].Silencer.Name = "Muzzle"
  4408.             if dual == true then
  4409.                 if Player.Character[Name.. " (Left)"]:FindFirstChild("Silencer") == nil then return end
  4410.                 if Player.Character[Name.. " (Left)"]:FindFirstChild("Muzzle") == nil then return end
  4411.                 Player.Character[Name.. " (Left)"].Silencer.Transparency = 0
  4412.                 Player.Character[Name.. " (Left)"].Muzzle.Name = "Muzzle 2"
  4413.                 Player.Character[Name.. " (Left)"].Silencer.Name = "Muzzle"
  4414.             end
  4415.         end
  4416.     end
  4417.     if key == "r" and Button1Down == false and canFire == true then
  4418.         if ammo.Value > 0 and magazine.Value ~= magazineMax.Value then
  4419.             canFire = false
  4420.             burstCount = 0
  4421.             mouse.Icon = "http://www.roblox.com/asset/?id=59125642"
  4422.             if magazine.Value > 0 then ammo.Value = ammo.Value + magazine.Value magazine.Value = 0 end
  4423.             updateGui()
  4424.             if dual == true then
  4425.                 playAnimation("reloadDual")
  4426.             elseif dual == false then
  4427.                 playAnimation("reload")
  4428.             end
  4429.             if ammo.Value - magazineMax.Value < 0 then
  4430.                 magazine.Value = ammo.Value
  4431.                 ammo.Value = 0
  4432.             elseif ammo.Value - magazineMax.Value >= 0 then
  4433.                 ammo.Value = ammo.Value - magazineMax.Value
  4434.                 magazine.Value = magazine.Value + magazineMax.Value
  4435.             end
  4436.             updateGui()
  4437.             mouse.Icon = "http://www.roblox.com/asset/?id=59125633"
  4438.             canFire = true
  4439.         end
  4440.     end
  4441.     if key == "t" and Button1Down == false and canFire == true and canDual == true then
  4442.         canFire = false
  4443.         if dual == false then
  4444.             local weapon = nil
  4445.             for _, p in pairs(Player.Backpack:GetChildren()) do
  4446.                 if p.Name == Name and p ~= script.Parent then weapon = p break end
  4447.             end
  4448.             if weapon ~= nil then
  4449.                 dual = true
  4450.                 weapon.Name = "Dual"
  4451.                 weapon.Parent = script
  4452.                 silenced = false
  4453.                 removeParts("RightHand")
  4454.                 makeParts("RightHand")
  4455.                 removeParts("RightHolster")
  4456.                 makeParts("LeftHolster")
  4457.                 playAnimation("leftEquip")
  4458.                 removeParts("LeftHolster")
  4459.                 makeParts("LeftHand")
  4460.                 magazineMax.Value = math.ceil(magazineMax.Value * 2)
  4461.                 ammoMax.Value = math.ceil(ammoMax.Value * 2)
  4462.                 magazine.Value = magazine.Value + weapon.Magazine.Value
  4463.                 ammo.Value = ammo.Value + weapon.Ammo.Value
  4464.                 updateGui()
  4465.             end
  4466.         elseif dual == true then
  4467.             local weapon = script:FindFirstChild("Dual")
  4468.             if weapon ~= nil then
  4469.                 dual = false
  4470.                 weapon.Name = Name
  4471.                 weapon.Parent = Player.Backpack
  4472.                 silenced = false
  4473.                 removeParts("RightHand")
  4474.                 makeParts("RightHand")
  4475.                 playAnimation("leftUnequip")
  4476.                 removeParts("LeftHand")
  4477.                 makeParts("RightHolster")
  4478.                 playAnimation("hold")
  4479.                 weapon.Magazine.Value = math.floor(magazine.Value / 2)
  4480.                 weapon.Ammo.Value = math.floor(ammo.Value / 2)
  4481.                 magazineMax.Value = math.ceil(magazineMax.Value / 2)
  4482.                 ammoMax.Value = math.ceil(ammoMax.Value / 2)
  4483.                 magazine.Value = math.ceil(magazine.Value / 2)
  4484.                 ammo.Value = math.ceil(ammo.Value / 2)
  4485.                 updateGui()
  4486.             end
  4487.         end
  4488.         canFire = true
  4489.     end
  4490.     if key == "y" and canZoom == true then
  4491.         if zoom == false then
  4492.             zoom = true
  4493.             local pos = mouse.Hit.p
  4494.             local target = mouse.Target
  4495.             local cam = game:GetService("Workspace").CurrentCamera
  4496.             focus = Instance.new("Part", workspace)
  4497.             focus.Anchored = true
  4498.             focus.CanCollide = false
  4499.             focus.Transparency = 1
  4500.             focus.TopSurface = 0
  4501.             focus.BottomSurface = 0
  4502.             focus.formFactor = "Plate"
  4503.             focus.Size = Vector3.new(0, 0, 0)
  4504.             focus.CFrame = CFrame.new(pos) * (CFrame.new(Player.Character.Torso.CFrame.p, pos) - CFrame.new(Player.Character.Torso.CFrame.p, pos).p)
  4505.             cam.CameraSubject = focus
  4506.             cam.CameraType = "Attach"
  4507.             while zoom == true and selected == true do
  4508.                 local set = false
  4509.                 if target ~= nil then
  4510.                     if target.Parent ~= nil then
  4511.                         if target.Anchored == false then
  4512.                             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)
  4513.                             set = true
  4514.                         end
  4515.                     end
  4516.                 end
  4517.                 if set == false then
  4518.                     focus.CFrame = CFrame.new(pos) * (CFrame.new(Player.Character.Torso.CFrame.p, pos) - CFrame.new(Player.Character.Torso.CFrame.p, pos).p)
  4519.                 end
  4520.                 wait()
  4521.             end
  4522.             if focus ~= nil then focus:Remove() focus = nil end
  4523.             local cam = game:GetService("Workspace").CurrentCamera
  4524.             cam.CameraSubject = Player.Character:FindFirstChild("Humanoid")
  4525.             cam.CameraType = "Custom"
  4526.         else
  4527.             zoom = false
  4528.         end
  4529.     end
  4530.     if key == "u" and Button1Down == false and canFire == true then
  4531.         if automatic == false and burst == false then
  4532.             if switchToBurst == true then
  4533.                 burst = true
  4534.                 local m = Instance.new("Message", Player)
  4535.                 m.Text = "Burst"
  4536.                 pcall(function() Player.Character[Name].Handle.Switch:Play() end)
  4537.                 delay(2.5, function() m:Remove() end)
  4538.             elseif switchToAutomatic == true then
  4539.                 automatic = true
  4540.                 local m = Instance.new("Message", Player)
  4541.                 m.Text = "Automatic"
  4542.                 pcall(function() Player.Character[Name].Handle.Switch:Play() end)
  4543.                 delay(2.5, function() m:Remove() end)
  4544.             end
  4545.         elseif automatic == false and burst == true then
  4546.             if switchToAutomatic == true then
  4547.                 automatic = true
  4548.                 burst = false
  4549.                 local m = Instance.new("Message", Player)
  4550.                 m.Text = "Automatic"
  4551.                 pcall(function() Player.Character[Name].Handle.Switch:Play() end)
  4552.                 delay(2.5, function() m:Remove() end)
  4553.             elseif switchToSingle == true then
  4554.                 burst = false
  4555.                 local m = Instance.new("Message", Player)
  4556.                 m.Text = "Single"
  4557.                 pcall(function() Player.Character[Name].Handle.Switch:Play() end)
  4558.                 delay(2.5, function() m:Remove() end)
  4559.             end
  4560.         elseif automatic == true and burst == false then
  4561.             if switchToSingle == true then
  4562.                 automatic = false
  4563.                 local m = Instance.new("Message", Player)
  4564.                 m.Text = "Single"
  4565.                 pcall(function() Player.Character[Name].Handle.Switch:Play() end)
  4566.                 delay(2.5, function() m:Remove() end)
  4567.             elseif switchToBurst == true then
  4568.                 automatic = false
  4569.                 burst = true
  4570.                 local m = Instance.new("Message", Player)
  4571.                 m.Text = "Burst"
  4572.                 pcall(function() Player.Character[Name].Handle.Switch:Play() end)
  4573.                 delay(2.5, function() m:Remove() end)
  4574.             end
  4575.         end
  4576.     end
  4577. end
  4578.  
  4579.  
  4580. function onSelected(mouse)
  4581.     if selected == true then return end
  4582.     selected = true
  4583.     Holstered = false
  4584.     canFire = false
  4585.     mouse.Icon = "http://www.roblox.com/asset/?id=59125642"
  4586.     while Player.Character:FindFirstChild("WeaponActivated") ~= nil do
  4587.         if Player.Character.WeaponActivated.Value == nil then break end
  4588.         if Player.Character.WeaponActivated.Value.Parent == nil then break end
  4589.         wait()
  4590.     end
  4591.     updateGui()
  4592.     local weapon = Instance.new("ObjectValue")
  4593.     weapon.Name = "WeaponActivated"
  4594.     weapon.Value = script.Parent
  4595.     weapon.Parent = Player.Character
  4596.     DisableLimb(1, Player.Character)
  4597.     DisableLimb(2, Player.Character)
  4598.     ForceAngle(1, 0, Player.Character)
  4599.     ForceAngle(2, 0, Player.Character)
  4600.     if dual == true then
  4601.         coroutine.resume(coroutine.create(function() playAnimation("leftEquip") end))
  4602.         playAnimation("rightEquip")
  4603.         removeParts("LeftHolster")
  4604.         makeParts("LeftHand")
  4605.     else
  4606.         playAnimation("equip")
  4607.     end
  4608.     removeParts("RightHolster")
  4609.     makeParts("RightHand")
  4610.     mouse.Button1Down:connect(function() onButton1Down(mouse) end)
  4611.     mouse.Button1Up:connect(function() onButton1Up(mouse) end)
  4612.     mouse.KeyDown:connect(function(key) onKeyDown(key, mouse) end)
  4613.     mouse.Icon = "http://www.roblox.com/asset/?id=59125633"
  4614.     canFire = true
  4615. end
  4616.  
  4617.  
  4618. function onDeselected(mouse)
  4619.     if selected == false then return end
  4620.     Holstered = true
  4621.     Button1Down = false
  4622.     while canFire == false do
  4623.         wait()
  4624.     end
  4625.     selected = false
  4626.     if dual == true then
  4627.         if math.random(1, 2) == 1 then
  4628.             coroutine.resume(coroutine.create(function() playAnimation("leftUnequip") end))
  4629.             wait(math.random(1, 10) / 10)
  4630.             playAnimation("rightUnequip")
  4631.         else
  4632.             coroutine.resume(coroutine.create(function() playAnimation("rightUnequip") end))
  4633.             wait(math.random(1, 10) / 10)
  4634.             playAnimation("leftUnequip")
  4635.         end
  4636.         removeParts("LeftHand")
  4637.         makeParts("LeftHolster")
  4638.     else
  4639.         playAnimation("unequip")
  4640.     end
  4641.     removeParts("RightHand")
  4642.     makeParts("RightHolster")
  4643.     ForceAngle(1, 0, Player.Character)
  4644.     ForceAngle(2, 0, Player.Character)
  4645.     ResetLimbCFrame(1, Player.Character)
  4646.     ResetLimbCFrame(2, Player.Character)
  4647.     EnableLimb(1, Player.Character)
  4648.     EnableLimb(2, Player.Character)
  4649.     if Player.PlayerGui:FindFirstChild(Name) ~= nil then Player.PlayerGui[Name]:Remove() end
  4650.     if Player.Character:FindFirstChild("WeaponActivated") ~= nil then
  4651.         if Player.Character.WeaponActivated.Value == script.Parent then
  4652.             Player.Character.WeaponActivated:Remove()
  4653.         end
  4654.     end
  4655.     while Player.Character:FindFirstChild("WeaponActivated") ~= nil do
  4656.         if Player.Character.WeaponActivated.Value == nil then break end
  4657.         if Player.Character.WeaponActivated.Value.Parent == nil then break end
  4658.         wait()
  4659.     end
  4660. end
  4661.  
  4662.  
  4663. if script.Parent.className ~= "HopperBin" then
  4664.     if Player == nil then print("Error: Player not found!") return end
  4665.     Tool = Instance.new("HopperBin")
  4666.     Tool.Name = Name
  4667.     Tool.Parent = Player.Backpack
  4668.     script.Name = "Main"
  4669.     script.Parent = Tool
  4670. end wait() if script.Parent.className == "HopperBin" then
  4671.     while script.Parent.Parent.className ~= "Backpack" do
  4672.         wait()
  4673.     end
  4674.     if script.Parent:FindFirstChild("MagazineMax") == nil then
  4675.         magazineMax = Instance.new("NumberValue")
  4676.         magazineMax.Name = "MagazineMax"
  4677.         magazineMax.Value = 999999999
  4678.         magazineMax.Parent = script.Parent
  4679.     else
  4680.         magazineMax = script.Parent.MagazineMax
  4681.     end
  4682.     if script.Parent:FindFirstChild("Magazine") == nil then
  4683.         magazine = Instance.new("NumberValue")
  4684.         magazine.Name = "Magazine"
  4685.         magazine.Value = 999999999
  4686.         magazine.Parent = script.Parent
  4687.     else
  4688.         magazine = script.Parent.Magazine
  4689.     end
  4690.     if script.Parent:FindFirstChild("AmmoMax") == nil then
  4691.         ammoMax = Instance.new("NumberValue")
  4692.         ammoMax.Name = "AmmoMax"
  4693.         ammoMax.Value = 999999999
  4694.         ammoMax.Parent = script.Parent
  4695.     else
  4696.         ammoMax = script.Parent.AmmoMax
  4697.     end
  4698.     if script.Parent:FindFirstChild("Ammo") == nil then
  4699.         ammo = Instance.new("NumberValue")
  4700.         ammo.Name = "Ammo"
  4701.         ammo.Value = script.Parent.AmmoMax.Value
  4702.         ammo.Parent = script.Parent
  4703.     else
  4704.         ammo = script.Parent.Ammo
  4705.     end
  4706.     Player = script.Parent.Parent.Parent
  4707.     makeParts("RightHolster")
  4708.     script.Parent.Selected:connect(onSelected)
  4709.     script.Parent.Deselected:connect(onDeselected)
  4710. end
  4711.  
  4712. end)
  4713.  
  4714. BStyle4.Name = "B Style 4"
  4715. BStyle4.Parent = StyleMain
  4716. BStyle4.BackgroundColor3 = Color3.new(1, 0, 1)
  4717. BStyle4.Position = UDim2.new(0.104347825, 0, 0.684523821, 0)
  4718. BStyle4.Size = UDim2.new(0, 130, 0, 44)
  4719. BStyle4.Font = Enum.Font.SourceSans
  4720. BStyle4.Text = "Heavy Sniper"
  4721. BStyle4.TextColor3 = Color3.new(1, 0.333333, 0)
  4722. BStyle4.TextSize = 18
  4723. BStyle4.MouseButton:connect(function()
  4724. Player=game:GetService("Players").LocalPlayer
  4725. Character=Player.Character
  4726. PlayerGui=Player.PlayerGui
  4727. Backpack=Player.Backpack
  4728. Torso=Character.Torso
  4729. Head=Character.Head
  4730. Humanoid=Character.Humanoid
  4731. m=Instance.new('Model',Character)
  4732. LeftArm=Character["Left Arm"]
  4733. LeftLeg=Character["Left Leg"]
  4734. RightArm=Character["Right Arm"]
  4735. RightLeg=Character["Right Leg"]
  4736. LS=Torso["Left Shoulder"]
  4737. LH=Torso["Left Hip"]
  4738. RS=Torso["Right Shoulder"]
  4739. RH=Torso["Right Hip"]
  4740. Face = Head.face
  4741. Neck=Torso.Neck
  4742. it=Instance.new
  4743. attacktype=1
  4744. vt=Vector3.new
  4745. cf=CFrame.new
  4746. euler=CFrame.fromEulerAnglesXYZ
  4747. angles=CFrame.Angles
  4748. cloaked=false
  4749. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  4750. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  4751. LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
  4752. LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
  4753. RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
  4754. RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
  4755. RootPart=Character.HumanoidRootPart
  4756. RootJoint=RootPart.RootJoint
  4757. RootCF=euler(-1.57,0,3.14)
  4758. attack = false
  4759. attackdebounce = false
  4760. deb=false
  4761. equipped=true
  4762. hand=false
  4763. MMouse=nil
  4764. combo=0
  4765. mana=0
  4766. trispeed=.2
  4767. attackmode='none'
  4768. local idle=0
  4769. local Anim="Idle"
  4770. local Effects={}
  4771. local gun=false
  4772. local shoot=false
  4773. player=nil
  4774. mana=0
  4775.  
  4776. mouse=Player:GetMouse()
  4777. --save shoulders
  4778. RSH, LSH=nil, nil
  4779. --welds
  4780. RW, LW=Instance.new("Weld"), Instance.new("Weld")
  4781. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  4782. LH=Torso["Left Hip"]
  4783. RH=Torso["Right Hip"]
  4784. TorsoColor=Torso.BrickColor
  4785. function NoOutline(Part)
  4786. Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
  4787. end
  4788. player=Player
  4789. ch=Character
  4790. RSH=ch.Torso["Right Shoulder"]
  4791. LSH=ch.Torso["Left Shoulder"]
  4792. --
  4793. RSH.Parent=nil
  4794. LSH.Parent=nil
  4795. --
  4796. RW.Name="Right Shoulder"
  4797. RW.Part0=ch.Torso
  4798. RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  4799. RW.C1=cf(0, 0.5, 0)
  4800. RW.Part1=ch["Right Arm"]
  4801. RW.Parent=ch.Torso
  4802. --
  4803. LW.Name="Left Shoulder"
  4804. LW.Part0=ch.Torso
  4805. LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  4806. LW.C1=cf(0, 0.5, 0)
  4807. LW.Part1=ch["Left Arm"]
  4808. LW.Parent=ch.Torso
  4809.  
  4810.     Player=game:GetService('Players').LocalPlayer
  4811.     Character=Player.Character
  4812.     Mouse=Player:GetMouse()
  4813.     m=Instance.new('Model',Character)
  4814.  
  4815.  
  4816.     local function weldBetween(a, b)
  4817.         local weldd = Instance.new("ManualWeld")
  4818.         weldd.Part0 = a
  4819.         weldd.Part1 = b
  4820.         weldd.C0 = CFrame.new()
  4821.         weldd.C1 = b.CFrame:inverse() * a.CFrame
  4822.         weldd.Parent = a
  4823.         return weldd
  4824.     end
  4825.    
  4826.     function swait(num)
  4827.     if num==0 or num==nil then
  4828.     game:service'RunService'.Stepped:wait(0)
  4829.     else
  4830.     for i=0,num do
  4831.     game:service'RunService'.Stepped:wait(0)
  4832.     end
  4833.     end
  4834.         end
  4835.    
  4836.     function nooutline(part)
  4837.         part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  4838.     end
  4839.    
  4840.     function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  4841.         local fp=it("Part")
  4842.         fp.formFactor=formfactor
  4843.         fp.Parent=parent
  4844.         fp.Reflectance=reflectance
  4845.         fp.Transparency=transparency
  4846.         fp.CanCollide=false
  4847.         fp.Locked=true
  4848.         fp.BrickColor=BrickColor.new(tostring(brickcolor))
  4849.         fp.Name=name
  4850.         fp.Size=size
  4851.         fp.Position=Character.Torso.Position
  4852.         nooutline(fp)
  4853.         fp.Material=material
  4854.         fp:BreakJoints()
  4855.         return fp
  4856.     end
  4857.    
  4858.     function mesh(Mesh,part,meshtype,meshid,offset,scale)
  4859.         local mesh=it(Mesh)
  4860.         mesh.Parent=part
  4861.         if Mesh=="SpecialMesh" then
  4862.             mesh.MeshType=meshtype
  4863.             mesh.MeshId=meshid
  4864.         end
  4865.         mesh.Offset=offset
  4866.         mesh.Scale=scale
  4867.         return mesh
  4868.     end
  4869.    
  4870.     function weld(parent,part0,part1,c0,c1)
  4871.         local weld=it("Weld")
  4872.         weld.Parent=parent
  4873.         weld.Part0=part0
  4874.         weld.Part1=part1
  4875.         weld.C0=c0
  4876.         weld.C1=c1
  4877.         return weld
  4878.     end
  4879.    
  4880.    
  4881. local function CFrameFromTopBack(at, top, back)
  4882. local right = top:Cross(back)
  4883. return CFrame.new(at.x, at.y, at.z,
  4884. right.x, top.x, back.x,
  4885. right.y, top.y, back.y,
  4886. right.z, top.z, back.z)
  4887. end
  4888.  
  4889. function Triangle(a, b, c)
  4890. local edg1 = (c-a):Dot((b-a).unit)
  4891. local edg2 = (a-b):Dot((c-b).unit)
  4892. local edg3 = (b-c):Dot((a-c).unit)
  4893. if edg1 <= (b-a).magnitude and edg1 >= 0 then
  4894. a, b, c = a, b, c
  4895. elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
  4896. a, b, c = b, c, a
  4897. elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
  4898. a, b, c = c, a, b
  4899. else
  4900. assert(false, "unreachable")
  4901. end
  4902.  
  4903. local len1 = (c-a):Dot((b-a).unit)
  4904. local len2 = (b-a).magnitude - len1
  4905. local width = (a + (b-a).unit*len1 - c).magnitude
  4906.  
  4907. local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
  4908.  
  4909. local list = {}
  4910.  
  4911. local Color = BrickColor.new("Dark grey")
  4912.  
  4913. if len1 > 0.01 then
  4914. local w1 = Instance.new('WedgePart', m)
  4915. game:GetService("Debris"):AddItem(w1,5)
  4916. w1.Material = "SmoothPlastic"
  4917. w1.FormFactor = 'Custom'
  4918. w1.BrickColor = BrickColor.new(Color)
  4919. w1.Transparency = 0
  4920. w1.Reflectance = 0
  4921. w1.Material = "SmoothPlastic"
  4922. w1.CanCollide = false
  4923. NoOutline(w1)
  4924. local sz = Vector3.new(0.2, width, len1)
  4925. w1.Size = sz
  4926. local sp = Instance.new("SpecialMesh",w1)
  4927. sp.MeshType = "Wedge"
  4928. sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
  4929. w1:BreakJoints()
  4930. w1.Anchored = true
  4931. w1.Parent = workspace
  4932. w1.Transparency = 0.7
  4933. table.insert(Effects,{w1,"Disappear",.01})
  4934. w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  4935. table.insert(list,w1)
  4936. end
  4937.  
  4938. if len2 > 0.01 then
  4939. local w2 = Instance.new('WedgePart', m)
  4940. game:GetService("Debris"):AddItem(w2,5)
  4941. w2.Material = "SmoothPlastic"
  4942. w2.FormFactor = 'Custom'
  4943. w2.BrickColor = BrickColor.new(Color)
  4944. w2.Transparency = 0
  4945. w2.Reflectance = 0
  4946. w2.Material = "SmoothPlastic"
  4947. w2.CanCollide = false
  4948. NoOutline(w2)
  4949. local sz = Vector3.new(0.2, width, len2)
  4950. w2.Size = sz
  4951. local sp = Instance.new("SpecialMesh",w2)
  4952. sp.MeshType = "Wedge"
  4953. sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
  4954. w2:BreakJoints()
  4955. w2.Anchored = true
  4956. w2.Parent = workspace
  4957. w2.Transparency = 0.7
  4958. table.insert(Effects,{w2,"Disappear",.01})
  4959. w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  4960. table.insert(list,w2)
  4961. end
  4962. return unpack(list)
  4963. end
  4964.    
  4965.    
  4966. so = function(id,par,vol,pit)
  4967. coroutine.resume(coroutine.create(function()
  4968. local sou = Instance.new("Sound",par or workspace)
  4969. sou.Volume=vol
  4970. sou.Pitch=pit or 1
  4971. sou.SoundId=id
  4972. swait()
  4973. sou:play()
  4974. game:GetService("Debris"):AddItem(sou,6)
  4975. end))
  4976. end
  4977.  
  4978. function clerp(a,b,t)
  4979. local qa = {QuaternionFromCFrame(a)}
  4980. local qb = {QuaternionFromCFrame(b)}
  4981. local ax, ay, az = a.x, a.y, a.z
  4982. local bx, by, bz = b.x, b.y, b.z
  4983. local _t = 1-t
  4984. return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  4985. end
  4986.  
  4987. function QuaternionFromCFrame(cf)
  4988. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  4989. local trace = m00 + m11 + m22
  4990. if trace > 0 then
  4991. local s = math.sqrt(1 + trace)
  4992. local recip = 0.5/s
  4993. return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  4994. else
  4995. local i = 0
  4996. if m11 > m00 then
  4997. i = 1
  4998. end
  4999. if m22 > (i == 0 and m00 or m11) then
  5000. i = 2
  5001. end
  5002. if i == 0 then
  5003. local s = math.sqrt(m00-m11-m22+1)
  5004. local recip = 0.5/s
  5005. return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  5006. elseif i == 1 then
  5007. local s = math.sqrt(m11-m22-m00+1)
  5008. local recip = 0.5/s
  5009. return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  5010. elseif i == 2 then
  5011. local s = math.sqrt(m22-m00-m11+1)
  5012. local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  5013. end
  5014. end
  5015. end
  5016.  
  5017. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  5018. local xs, ys, zs = x + x, y + y, z + z
  5019. local wx, wy, wz = w*xs, w*ys, w*zs
  5020. local xx = x*xs
  5021. local xy = x*ys
  5022. local xz = x*zs
  5023. local yy = y*ys
  5024. local yz = y*zs
  5025. local zz = z*zs
  5026. 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))
  5027. end
  5028.  
  5029. function QuaternionSlerp(a, b, t)
  5030. local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  5031. local startInterp, finishInterp;
  5032. if cosTheta >= 0.0001 then
  5033. if (1 - cosTheta) > 0.0001 then
  5034. local theta = math.acos(cosTheta)
  5035. local invSinTheta = 1/math.sin(theta)
  5036. startInterp = math.sin((1-t)*theta)*invSinTheta
  5037. finishInterp = math.sin(t*theta)*invSinTheta  
  5038. else
  5039. startInterp = 1-t
  5040. finishInterp = t
  5041. end
  5042. else
  5043. if (1+cosTheta) > 0.0001 then
  5044. local theta = math.acos(-cosTheta)
  5045. local invSinTheta = 1/math.sin(theta)
  5046. startInterp = math.sin((t-1)*theta)*invSinTheta
  5047. finishInterp = math.sin(t*theta)*invSinTheta
  5048. else
  5049. startInterp = t-1
  5050. finishInterp = t
  5051. end
  5052. end
  5053. 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
  5054. end
  5055.  
  5056. --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)
  5057.  
  5058.  
  5059. function rayCast(Pos, Dir, Max, Ignore)  -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  5060. return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  5061. end
  5062.  
  5063. Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
  5064.         if hit.Parent==nil then
  5065.                 return
  5066.         end
  5067.         h=hit.Parent:FindFirstChild("Humanoid")
  5068.         for _,v in pairs(hit.Parent:children()) do
  5069.         if v:IsA("Humanoid") then
  5070.         h=v
  5071.         end
  5072.         end
  5073.         if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
  5074.         h=hit.Parent.Parent:FindFirstChild("Humanoid")
  5075.         end
  5076.         if hit.Parent.className=="Hat" then
  5077.         hit=hit.Parent.Parent:findFirstChild("Head")
  5078.         end
  5079.         if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  5080.         if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
  5081.         --[[                if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  5082.                         return
  5083.                 end]]
  5084. --                        hs(hit,1.2)
  5085.                         c=Instance.new("ObjectValue")
  5086.                         c.Name="creator"
  5087.                         c.Value=game:service("Players").LocalPlayer
  5088.                         c.Parent=h
  5089.                         game:GetService("Debris"):AddItem(c,.5)
  5090.                 Damage=math.random(minim,maxim)
  5091. --                h:TakeDamage(Damage)
  5092.                 blocked=false
  5093.                 block=hit.Parent:findFirstChild("Block")
  5094.                 if block~=nil then
  5095.                 print(block.className)
  5096.                 if block.className=="NumberValue" then
  5097.                 if block.Value>0 then
  5098.                 blocked=true
  5099.                 if decreaseblock==nil then
  5100.                 block.Value=block.Value-1
  5101.                 end
  5102.                 end
  5103.                 end
  5104.                 if block.className=="IntValue" then
  5105.                 if block.Value>0 then
  5106.                 blocked=true
  5107.                 if decreaseblock~=nil then
  5108.                 block.Value=block.Value-1
  5109.                 end
  5110.                 end
  5111.                 end
  5112.                 end
  5113.                 if blocked==false then
  5114. --                h:TakeDamage(Damage)
  5115.                 h.Health=h.Health-Damage
  5116.                 showDamage(hit.Parent,Damage,.5,BrickColor.new("New Yeller"))
  5117.                 else
  5118.                 h.Health=h.Health-(Damage/2)
  5119.                 showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
  5120.                 end
  5121.                 if Type=="Knockdown" then
  5122.                 hum=hit.Parent.Humanoid
  5123. hum.PlatformStand=true
  5124. coroutine.resume(coroutine.create(function(HHumanoid)
  5125. swait(1)
  5126. HHumanoid.PlatformStand=false
  5127. end),hum)
  5128.                 local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
  5129. --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  5130. local bodvol=Instance.new("BodyVelocity")
  5131. bodvol.velocity=angle*knockback
  5132. bodvol.P=5000
  5133. bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  5134. bodvol.Parent=hit
  5135. rl=Instance.new("BodyAngularVelocity")
  5136. rl.P=3000
  5137. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  5138. rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
  5139. rl.Parent=hit
  5140. game:GetService("Debris"):AddItem(bodvol,.5)
  5141. game:GetService("Debris"):AddItem(rl,.5)
  5142.                 elseif Type=="Normal" then
  5143.                 vp=Instance.new("BodyVelocity")
  5144.                 vp.P=500
  5145.                 vp.maxForce=Vector3.new(math.huge,0,math.huge)
  5146. --                vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  5147.                 if KnockbackType==1 then
  5148.                 vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
  5149.                 elseif KnockbackType==2 then
  5150.                 vp.velocity=Property.CFrame.lookVector*knockback
  5151.                 end
  5152.                 if knockback>0 then
  5153.                         vp.Parent=hit.Parent.Torso
  5154.                 end
  5155.                 game:GetService("Debris"):AddItem(vp,.5)
  5156.                 elseif Type=="Up" then
  5157.                 local bodyVelocity=Instance.new("BodyVelocity")
  5158.                 bodyVelocity.velocity=vt(0,60,0)
  5159.                 bodyVelocity.P=5000
  5160.                 bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  5161.                 bodyVelocity.Parent=hit
  5162.                 game:GetService("Debris"):AddItem(bodyVelocity,1)
  5163.                 rl=Instance.new("BodyAngularVelocity")
  5164.                 rl.P=3000
  5165.                 rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  5166.                 rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  5167.                 rl.Parent=hit
  5168.                 game:GetService("Debris"):AddItem(rl,.5)
  5169.                 elseif Type=="Snare" then
  5170.                 bp=Instance.new("BodyPosition")
  5171.                 bp.P=2000
  5172.                 bp.D=100
  5173.                 bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  5174.                 bp.position=hit.Parent.Torso.Position
  5175.                 bp.Parent=hit.Parent.Torso
  5176.                 game:GetService("Debris"):AddItem(bp,1)
  5177.                 elseif Type=="Target" then
  5178.                 if Targetting==false then
  5179.                 ZTarget=hit.Parent.Torso
  5180.                 coroutine.resume(coroutine.create(function(Part)
  5181.                 so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  5182.                 swait(5)
  5183.                 so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
  5184.                 end),ZTarget)
  5185.                 TargHum=ZTarget.Parent:findFirstChild("Humanoid")
  5186.                 targetgui=Instance.new("BillboardGui")
  5187.                 targetgui.Parent=ZTarget
  5188.                 targetgui.Size=UDim2.new(10,100,10,100)
  5189.                 targ=Instance.new("ImageLabel")
  5190.                 targ.Parent=targetgui
  5191.                 targ.BackgroundTransparency=1
  5192.                 targ.Image="rbxassetid://4834067"
  5193.                 targ.Size=UDim2.new(1,0,1,0)
  5194.                 cam.CameraType="Scriptable"
  5195.                 cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  5196.                 dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  5197.                 workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  5198.                 Targetting=true
  5199.                 RocketTarget=ZTarget
  5200.                 for i=1,Property do
  5201.                 --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
  5202.                 if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
  5203.                 swait()
  5204.                 end
  5205.                 --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
  5206.                 cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
  5207.                 dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
  5208.                 cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
  5209.                 end
  5210.                 Targetting=false
  5211.                 RocketTarget=nil
  5212.                 targetgui.Parent=nil
  5213.                 cam.CameraType="Custom"
  5214.                 end
  5215.                 end
  5216.                         debounce=Instance.new("BoolValue")
  5217.                         debounce.Name="DebounceHit"
  5218.                         debounce.Parent=hit.Parent
  5219.                         debounce.Value=true
  5220.                         game:GetService("Debris"):AddItem(debounce,Delay)
  5221.                         c=Instance.new("ObjectValue")
  5222.                         c.Name="creator"
  5223.                         c.Value=Player
  5224.                         c.Parent=h
  5225.                         game:GetService("Debris"):AddItem(c,.5)
  5226.                 CRIT=false
  5227.                 hitDeb=true
  5228.                 AttackPos=6
  5229.         end
  5230. end
  5231.  
  5232. showDamage=function(Char,Dealt,du,Color)
  5233.         m=Instance.new("Model")
  5234.         m.Name=tostring(Dealt)
  5235.         h=Instance.new("Humanoid")
  5236.         h.Health=0
  5237.         h.MaxHealth=0
  5238.         h.Parent=m
  5239.         c=Instance.new("Part")
  5240.         c.Transparency=0
  5241.         c.BrickColor=Color
  5242.         c.Name="Head"
  5243.         c.TopSurface=0
  5244.         c.BottomSurface=0
  5245.         c.formFactor="Plate"
  5246.         c.Size=Vector3.new(1,.4,1)
  5247.         ms=Instance.new("CylinderMesh")
  5248.         ms.Scale=Vector3.new(.8,.8,.8)
  5249.         if CRIT==true then
  5250.                 ms.Scale=Vector3.new(1,1.25,1)
  5251.         end
  5252.         ms.Parent=c
  5253.         c.Reflectance=0
  5254.         Instance.new("BodyGyro").Parent=c
  5255.         c.Parent=m
  5256.         if Char:findFirstChild("Head")~=nil then
  5257.         c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  5258.         elseif Char.Parent:findFirstChild("Head")~=nil then
  5259.         c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
  5260.         end
  5261.         f=Instance.new("BodyPosition")
  5262.         f.P=2000
  5263.         f.D=100
  5264.         f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  5265.         f.position=c.Position+Vector3.new(0,3,0)
  5266.         f.Parent=c
  5267.         game:GetService("Debris"):AddItem(m,.5+du)
  5268.         c.CanCollide=false
  5269.         m.Parent=workspace
  5270.         c.CanCollide=false
  5271. end
  5272.  
  5273. handle=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Handle",Vector3.new(0.356057793, 0.801126003, 0.267042011))
  5274. 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))
  5275. Barrel=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Barrel",Vector3.new(0.356055647, 0.534083903, 0.200000003))
  5276. 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))
  5277. mesh("CylinderMesh",Barrel,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1.15718198))
  5278. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really red","Part",Vector3.new(0.930197001, 0.200000003, 0.453971326))
  5279. 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))
  5280. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.100000001, 0.0890140012, 0.100000001))
  5281. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.267042011, 0.200000003))
  5282. 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))
  5283. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.445069969, 1, 0.890139937))
  5284. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.356057793, 2.84844708, 0.200000003))
  5285. 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))
  5286. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.890139937))
  5287. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0.60000002384186,"Mid gray","Part",Vector3.new(0.445069641, 0.200000003, 0.534083962))
  5288. 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))
  5289. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.890139997, 1))
  5290. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  5291. 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))
  5292. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.890141726, 0.890139937, 0.445069969))
  5293. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.78027892, 0.356056005, 0.356055975))
  5294. 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))
  5295. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.04732227, 0.356055945, 0.200000003))
  5296. 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))
  5297. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.445069969))
  5298. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.26704222, 0.445069999, 0.534084022))
  5299. 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))
  5300. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0.69999998807907,"Mid gray","Part",Vector3.new(0.445069641, 0.200000003, 0.534083962))
  5301. 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))
  5302. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.890139997, 1))
  5303. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.445069999, 0.39611277))
  5304. 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))
  5305. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.445071131, 1, 1))
  5306. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.445069999, 0.39611277))
  5307. 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))
  5308. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.445071131, 1, 1))
  5309. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.356057793, 0.200000003, 0.267042011))
  5310. 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))
  5311. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.890139997, 1))
  5312. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.890139997, 0.267042011))
  5313. 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))
  5314. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.890139997, 1, 1))
  5315. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.267042011))
  5316. 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))
  5317. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.890139997, 0.890139997, 1))
  5318. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.801127911, 0.200000003, 0.267042011))
  5319. 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))
  5320. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.890139997, 1))
  5321. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.13633513, 0.200000003, 0.356055975))
  5322. 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))
  5323. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.890139997, 1))
  5324. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.445069999, 0.623098075, 0.445069999))
  5325. 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))
  5326. 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))
  5327. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.293745786, 0.71211195, 0.369408011))
  5328. 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))
  5329. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  5330. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.26704067, 0.445069999, 0.356055915))
  5331. 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))
  5332. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Mid gray","Part",Vector3.new(0.356055647, 0.56968981, 0.200000003))
  5333. 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))
  5334. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.890139997))
  5335. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Mid gray","Part",Vector3.new(0.356055647, 0.56968981, 0.200000003))
  5336. 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))
  5337. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.890139997))
  5338. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.445069999, 0.39611277))
  5339. 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))
  5340. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.445071131, 1, 1))
  5341. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(2.937464, 0.356056005, 0.356055945))
  5342. 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))
  5343. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.712112248, 0.267042011, 0.200000003))
  5344. 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))
  5345. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.445069969))
  5346. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.26704222, 0.445069999, 0.534084022))
  5347. 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))
  5348. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.200000003, 0.445069999, 0.356055915))
  5349. 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))
  5350. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.890139937, 1, 1))
  5351. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.356055647, 0.356056958, 0.356055915))
  5352. 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))
  5353. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  5354. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.445069999, 0.623098075, 0.445069999))
  5355. 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))
  5356. 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))
  5357. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.445069999, 0.623098075, 0.534084022))
  5358. 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))
  5359. 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))
  5360. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.267041624, 0.200000003, 0.356055915))
  5361. 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))
  5362. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.890139997, 1))
  5363. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.712112248, 0.200000003, 0.356055915))
  5364. 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))
  5365. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.890140235, 1))
  5366. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.356055647, 0.200000003, 0.356055915))
  5367. 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))
  5368. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.890139997, 1))
  5369. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.99999994, 1))
  5370. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  5371. 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))
  5372. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.890141726, 0.890139937, 0.445069969))
  5373. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.26704222, 0.445069999, 0.534084022))
  5374. 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))
  5375. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(2.84844756, 0.623098075, 0.356055915))
  5376. 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))
  5377. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.712112248, 0.200000003, 0.200000003))
  5378. 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))
  5379. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.890139937, 0.445069969))
  5380. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.356055647, 2.84844851, 0.356055915))
  5381. 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))
  5382. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  5383. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.413914353, 1.00140691, 0.200000003))
  5384. 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))
  5385. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.890139997))
  5386. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.267042011, 0.801125944, 0.356055915))
  5387. 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))
  5388. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.801127911, 0.623098075, 0.267042011))
  5389. 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))
  5390. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.356055647, 0.267041951, 0.356055915))
  5391. 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))
  5392. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  5393. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.445069999, 0.623098075, 0.445069999))
  5394. 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))
  5395. 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))
  5396. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.445069999, 0.623098075, 0.445069999))
  5397. 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))
  5398. 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))
  5399. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.445069999, 0.39611277))
  5400. 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))
  5401. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.445071131, 1, 1))
  5402. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.26704222, 0.445069999, 0.534084022))
  5403. 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))
  5404. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.26704222, 0.445069999, 0.534084022))
  5405. 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))
  5406. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.356055647, 0.445069909, 0.200000003))
  5407. 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))
  5408. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1.20000005, 1, 1.05036521))
  5409. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.712112248, 0.267042071, 0.200000003))
  5410. 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))
  5411. mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.445069969))
  5412. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.356055647, 0.267043382, 0.356055915))
  5413. 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))
  5414. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  5415. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.534083724, 0.890139997, 0.71211195))
  5416. 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))
  5417. mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  5418. Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.356056005, 0.801126003, 0.356056005))
  5419. 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))
  5420.  
  5421. ready = false
  5422.  
  5423. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  5424. local fp = it("Part")
  5425. fp.formFactor = formfactor
  5426. fp.Parent = parent
  5427. fp.Reflectance = reflectance
  5428. fp.Transparency = transparency
  5429. fp.CanCollide = false
  5430. fp.Locked=true
  5431. fp.BrickColor = brickcolor
  5432. fp.Name = name
  5433. fp.Size = size
  5434. fp.Position = Torso.Position
  5435. NoOutline(fp)
  5436. fp.Material="SmoothPlastic"
  5437. fp:BreakJoints()
  5438. return fp
  5439. end
  5440.  
  5441. function MagicCylinder(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  5442. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.2,0.2,0.2))
  5443. prt.Anchored=true
  5444. prt.CFrame=cframe
  5445. msh=mesh("SpecialMesh",prt,"Head","",vt(0,0,0),vt(x1,y1,z1))
  5446. game:GetService("Debris"):AddItem(prt,2)
  5447. coroutine.resume(coroutine.create(function(Part,Mesh)
  5448. for i=0,1,delay do
  5449. swait()
  5450. Part.CFrame=Part.CFrame
  5451. Part.Transparency=i
  5452. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  5453. end
  5454. Part.Parent=nil
  5455. end),prt,msh)
  5456. end
  5457.  
  5458. function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
  5459. local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
  5460. prt.Anchored=true
  5461. prt.CFrame=cframe
  5462. msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
  5463. game:GetService("Debris"):AddItem(prt,2)
  5464. coroutine.resume(coroutine.create(function(Part,Mesh)
  5465. for i=0,1,delay do
  5466. swait()
  5467. Part.CFrame=Part.CFrame
  5468. Part.Transparency=i
  5469. Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
  5470. end
  5471. Part.Parent=nil
  5472. end),prt,msh)
  5473. end
  5474.  
  5475. function LaserBarrage(Prt,Parent)
  5476. attack=true
  5477. --so("BeamLockon",Prt,1,1)
  5478. local efprt=part(3,Parent,0,0.5,BrickColor.new("Dark stone grey"),"Effect",vt(0.2,0.2,0.2))
  5479. efprt.Anchored=true
  5480. local efmsh=mesh("CylinderMesh",efprt,"","",vt(0,0,0),vt(1,1,1))
  5481. 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
  5482. --spread=vt(0,0,0)
  5483. coroutine.resume(coroutine.create(function(Part,Mesh,Spreaded)
  5484. game:GetService("Debris"):AddItem(Part,6)
  5485. local TheHit=Mouse.Hit.p
  5486. local MouseLook=cf((Prt.Position+TheHit)/2,TheHit+Spreaded)
  5487. local hit,pos = rayCast(Prt.Position,MouseLook.lookVector,1000,Parent)
  5488. so("Elec",Prt,0.2,1)
  5489. local tefprt=part(3,workspace,0,1,BrickColor.new("Black"),"Effect",vt(0.2,0.2,0.2))
  5490. tefprt.CFrame=cf(pos)
  5491. MagicCircle(BrickColor.new("Dark stone grey"),cf(pos),0.5,0.5,0.5,0.5,0.5,0.5,0.04)
  5492. so("Elec",tefprt,0.3,1)
  5493. game:GetService("Debris"):AddItem(tefprt,3)
  5494. Part.CFrame=CFrame.new((Prt.Position+pos)/2,pos)*angles(1.57,0,0)
  5495. if(hit.Parent:findFirstChild("Humanoid")~= nil)then
  5496. if hit.Parent:FindFirstChild("Humanoid") ~= nil and hit.Name ~= "Base" and hit.Parent.Name ~= Player.Name then
  5497. hit.Parent.Humanoid:TakeDamage(50)
  5498. end
  5499. end
  5500. local mag=(Prt.Position-pos).magnitude
  5501. MagicCylinder(BrickColor.new("Dark stone grey"),Part.CFrame,1,mag*5,1,0.5,0,0.5,0.05)
  5502. Part.Parent=nil
  5503. end),efprt,efmsh,spread)
  5504. end
  5505.  
  5506. function shoot()
  5507.  if ready==true then
  5508.                 attack=true
  5509.                 ready = false
  5510. LaserBarrage(Barrel,m)
  5511. so("http://roblox.com/asset/?id=130767489",Barrel,1,1)
  5512. so("http://roblox.com/asset/?id=151112832",Barrel,1,1)
  5513.                 for i=0,1,0.1 do
  5514.                         swait()
  5515. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-1)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  5516. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-20),math.rad(-10),math.rad(0)),.3)
  5517. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, 0.3) * angles(math.rad(100), math.rad(0), math.rad(0)), 0.3)
  5518. LW.C0 = clerp(LW.C0, CFrame.new(-.3, 0.4, -0.8) * angles(math.rad(120), math.rad(0), math.rad(30)), 0.3)
  5519. RH.C0=clerp(RH.C0,cf(1,0,-0.5)*angles(math.rad(0),math.rad(90),math.rad(-10)),.3)
  5520. LH.C0=clerp(LH.C0,cf(-1,-1,-0.5)*angles(math.rad(0),math.rad(-90),math.rad(70)),.3)
  5521. handleweld.C0=clerp(handleweld.C0,cf(0,0,.5)*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  5522.                 end
  5523. for i=0,1,0.1 do
  5524. swait()
  5525. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-1)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  5526. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(-10),math.rad(0)),.3)
  5527. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, 0.3) * angles(math.rad(80), math.rad(0), math.rad(0)), 0.3)
  5528. LW.C0 = clerp(LW.C0, CFrame.new(-.3, 0.4, -0.8) * angles(math.rad(90), math.rad(0), math.rad(30)), 0.3)
  5529. RH.C0=clerp(RH.C0,cf(1,0,-0.5)*angles(math.rad(0),math.rad(90),math.rad(-10)),.3)
  5530. LH.C0=clerp(LH.C0,cf(-1,-1,-0.5)*angles(math.rad(0),math.rad(-90),math.rad(70)),.3)
  5531. handleweld.C0=clerp(handleweld.C0,cf(0,0,.5)*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  5532. end
  5533.                 attack=false
  5534.         end
  5535. end
  5536.  
  5537. mouse.Button1Down:connect(function()
  5538.         pcall(function()
  5539.                 shoot()
  5540.         end)
  5541. end)
  5542.  
  5543. mouse.KeyDown:connect(function(k)
  5544.         k=k:lower()
  5545.         if k=='f' then
  5546.                 if ready==false then
  5547.                         ready=true
  5548.                         attack=true
  5549.                 elseif ready==true then
  5550.                         ready=false
  5551.                         attack=false
  5552.                 end
  5553. end
  5554. end)
  5555.  
  5556.  
  5557.  
  5558. local sine = 0
  5559. local change = 1
  5560. local val = 0
  5561.  
  5562. while true do
  5563. swait()
  5564. sine = sine + change
  5565. local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
  5566. local velderp=RootPart.Velocity.y
  5567. hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
  5568. if equipped==true or equipped==false then
  5569. if attack==false then
  5570. idle=idle+1
  5571. else
  5572. idle=0
  5573. end
  5574. if idle>=500 then
  5575. if attack==false then
  5576. --Sheath()
  5577. end
  5578. end
  5579. if RootPart.Velocity.y > 1 and hitfloor==nil then
  5580. Anim="Jump"
  5581. if attack==false then
  5582. Humanoid.WalkSpeed = 16
  5583. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  5584. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  5585. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  5586. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  5587. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  5588. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  5589. end
  5590. elseif RootPart.Velocity.y < -1 and hitfloor==nil then
  5591. Anim="Fall"
  5592. if attack==false then
  5593. Humanoid.WalkSpeed = 16
  5594. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  5595. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  5596. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  5597. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
  5598. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  5599. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  5600. end
  5601. elseif torvel<1 and hitfloor~=nil then
  5602. Anim="Idle"
  5603. if attack==false then
  5604. Humanoid.WalkSpeed = 16
  5605. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(20)),.3)
  5606. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-20)),.3)
  5607. 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)
  5608. LW.C0 = clerp(LW.C0, CFrame.new(-.3, 0.4, -0.8) * angles(math.rad(80), math.rad(0), math.rad(60)), 0.3)
  5609. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(70),math.rad(-5)),.3)
  5610. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  5611. handleweld.C0=clerp(handleweld.C0,cf(0,0,.5)*angles(math.rad(5),math.rad(0),math.rad(0)),.3)
  5612. end
  5613. elseif torvel>2 and hitfloor~=nil then
  5614. Anim="Walk"
  5615. if attack==false then
  5616. change=3
  5617. Humanoid.WalkSpeed = 16
  5618. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  5619. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
  5620. 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)
  5621. LW.C0 = clerp(LW.C0, CFrame.new(-.3, 0.4, -0.8) * angles(math.rad(80), math.rad(0), math.rad(60)), 0.3)
  5622. RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0)),.3)
  5623. LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0)),.3)
  5624. handleweld.C0=clerp(handleweld.C0,cf(0,0,.5)*angles(math.rad(5),math.rad(0),math.rad(0)),.3)
  5625. end
  5626. end
  5627. end
  5628. if ready==true then
  5629. Humanoid.WalkSpeed = 5
  5630. RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-1)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
  5631. Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(-10),math.rad(0)),.3)
  5632. RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, 0.3) * angles(math.rad(80), math.rad(0), math.rad(0)), 0.3)
  5633. LW.C0 = clerp(LW.C0, CFrame.new(-.3, 0.4, -0.8) * angles(math.rad(90), math.rad(0), math.rad(30)), 0.3)
  5634. RH.C0=clerp(RH.C0,cf(1,0,-0.5)*angles(math.rad(0),math.rad(90),math.rad(-10)),.3)
  5635. LH.C0=clerp(LH.C0,cf(-1,-1,-0.5)*angles(math.rad(0),math.rad(-90),math.rad(70)),.3)
  5636. handleweld.C0=clerp(handleweld.C0,cf(0,0,.5)*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
  5637.         end
  5638. end
  5639. end)
  5640.  
  5641. BStyle5.Name = "B Style 5"
  5642. BStyle5.Parent = StyleMain
  5643. BStyle5.BackgroundColor3 = Color3.new(1, 0, 1)
  5644. BStyle5.Position = UDim2.new(0.613043487, 0, 0.684523821, 0)
  5645. BStyle5.Size = UDim2.new(0, 130, 0, 44)
  5646. BStyle5.Font = Enum.Font.SourceSans
  5647. BStyle5.Text = "Epic Gun"
  5648. BStyle5.TextColor3 = Color3.new(1, 0.333333, 0)
  5649. BStyle5.TextSize = 18
  5650. BStyle5.MouseButton:connect(function()
  5651. me = game.Players.Humanoid
  5652.  
  5653. if script.Parent.className ~= "HopperBin" then
  5654. h = Instance.new("HopperBin")
  5655. h.Parent = me.Backpack
  5656. h.Name = "lolwut"
  5657. script.Parent = h
  5658. end
  5659.  
  5660. sp = script.Parent
  5661.  
  5662. rightarm = me.Character["Right Arm"]
  5663. leftarm = me.Character["Left Arm"]
  5664.  
  5665. hold = false
  5666. using = false
  5667. holdkey = false
  5668.  
  5669. right = Instance.new("Weld")
  5670. right.Parent = me.Character.Torso
  5671. right.Part0 = nil
  5672. right.Part1 = nil
  5673. right.C1 = CFrame.fromEulerAnglesXYZ(-1.57,-0.4,0) * CFrame.new(-1,-0.5,0.1)
  5674.  
  5675. left = Instance.new("Weld")
  5676. left.Parent = me.Character.Torso
  5677. left.Part0 = nil
  5678. left.Part1 = nil
  5679. left.C1 = CFrame.fromEulerAnglesXYZ(-1.4,0.5,0) * CFrame.new(0.55,-0.4,1.3)
  5680.  
  5681. bulletcolors = {"Bright yellow", "Neon orange", "New Yeller"}
  5682.  
  5683. gun = Instance.new("Model")
  5684. gun.Parent = game.Lighting
  5685. gun.Name = "Gun"
  5686.  
  5687. handle = Instance.new("Part")
  5688. handle.Parent = gun
  5689. handle.formFactor = 0
  5690. handle.Size = Vector3.new(1,1,1)
  5691. handle.BrickColor = BrickColor.new("Black")
  5692. mesh = Instance.new("SpecialMesh")
  5693. mesh.Parent = handle
  5694. mesh.MeshType = "Brick"
  5695. mesh.Scale = Vector3.new(0.5,0.75,1.3)
  5696.  
  5697. handle2 = Instance.new("Part")
  5698. handle2.Parent = gun
  5699. handle2.formFactor = 0
  5700. handle2.Size = Vector3.new(1,1,1)
  5701. handle2.BrickColor = BrickColor.new("Black")
  5702. mesh2 = mesh:clone()
  5703. mesh2.Parent = handle2
  5704. mesh2.Scale = Vector3.new(0.6,3.6,0.75)
  5705.  
  5706. handle3 = Instance.new("Part")
  5707. handle3.Parent = gun
  5708. handle3.formFactor = 0
  5709. handle3.Size = Vector3.new(1,1,1)
  5710. handle3.BrickColor = BrickColor.new("Black")
  5711. mesh3 = mesh:clone()
  5712. mesh3.Parent = handle3
  5713. mesh3.Scale = Vector3.new(0.45,0.8,1.4)
  5714.  
  5715. handle4 = Instance.new("Part")
  5716. handle4.Parent = gun
  5717. handle4.formFactor = 0
  5718. handle4.Size = Vector3.new(1,1,1)
  5719. handle4.BrickColor = BrickColor.new("Really black")
  5720. mesh4 = Instance.new("CylinderMesh")
  5721. mesh4.Parent = handle4
  5722. mesh4.Scale = Vector3.new(0.3,0.1,0.3)
  5723. hold = false
  5724. function selected(mouse, key)
  5725.     right.Part0 = right.Parent
  5726.     right.Part1 = rightarm
  5727.     left.Part0 = left.Parent
  5728.     left.Part1 = leftarm
  5729.     left.C1 = CFrame.fromEulerAnglesXYZ(-1.4,0.5,0) * CFrame.new(0.55,-0.4,1.3)
  5730.     right.C1 = CFrame.fromEulerAnglesXYZ(-1.57,-0.4,0) * CFrame.new(-1,-0.5,0.1)
  5731.     left.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  5732.     right.C0 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  5733.     gun.Parent = me.Character
  5734.     gunweld1 = Instance.new("Weld")
  5735.     gunweld1.Parent = rightarm
  5736.     gunweld1.Part0 = gunweld1.Parent
  5737.     gunweld1.Part1 = handle
  5738.     gunweld1.C1 = CFrame.fromEulerAnglesXYZ(0.4,0,0) * CFrame.new(0,1,0)
  5739.     gunweld2 = Instance.new("Weld")
  5740.     gunweld2.Parent = handle
  5741.     gunweld2.Part0 = gunweld2.Parent
  5742.     gunweld2.Part1 = handle2
  5743.     gunweld2.C1 = CFrame.fromEulerAnglesXYZ(-0.4,0,0) * CFrame.new(0,1,1.2)
  5744.     gunweld3 = Instance.new("Weld")
  5745.     gunweld3.Parent = handle2
  5746.     gunweld3.Part0 = gunweld3.Parent
  5747.     gunweld3.Part1 = handle3
  5748.     gunweld3.C1 = CFrame.fromEulerAnglesXYZ(-0.3,0,0) * CFrame.new(0,0.3,-0.9)
  5749.     gunweld4 = Instance.new("Weld")
  5750.     gunweld4.Parent = handle2
  5751.     gunweld4.Part0 = gunweld3.Parent
  5752.     gunweld4.Part1 = handle4
  5753.     gunweld4.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,1.751,0)
  5754.     mouse.Button1Down:connect(function()
  5755.         hold = true
  5756.         while hold == true do
  5757.         wait(0.04)
  5758.         local color = math.random(1, #bulletcolors)
  5759.         local pos = mouse.Hit.p + Vector3.new(math.random(-2,2),0,math.random(-2,2))
  5760.         local bullet = Instance.new("Part")
  5761.         bullet.Parent = workspace
  5762.         bullet.formFactor = 0
  5763.         bullet.Size = Vector3.new(1,1,1)
  5764.         bullet.BrickColor = BrickColor.new(bulletcolors[color])
  5765.         bullet.CanCollide = false
  5766.         bullet.Anchored = true
  5767.         bullet.CFrame = CFrame.new((handle4.Position + pos)/2, pos)
  5768.         local distance = (handle4.Position - pos).magnitude
  5769.         local bulletmesh = Instance.new("SpecialMesh")
  5770.         bulletmesh.Parent = bullet
  5771.         bulletmesh.MeshType = "Brick"
  5772.         bulletmesh.Scale = Vector3.new(0.2,0.2,distance)
  5773.         if mouse.Target ~= nil then
  5774.         local hu = mouse.Target.Parent:findFirstChild("Humanoid")
  5775.         if hu ~= nil then
  5776.             hu.Health = hu.Health - 5
  5777.         end
  5778.         end
  5779.         coroutine.resume(coroutine.create(function()
  5780.         left.C0 = left.C0 * CFrame.fromEulerAnglesXYZ(0.12,0,0)
  5781.         right.C0 = right.C0 * CFrame.fromEulerAnglesXYZ(0.12,0,0)
  5782.         wait()
  5783.         left.C0 = left.C0 * CFrame.fromEulerAnglesXYZ(-0.12,0,0)
  5784.         right.C0 = right.C0 * CFrame.fromEulerAnglesXYZ(-0.12,0,0)
  5785.         wait(0.03)
  5786.         bullet:remove()
  5787.         end))
  5788.         end
  5789.     end)
  5790.     mouse.Button1Up:connect(function()
  5791.         hold = false
  5792.     end)
  5793. end
  5794.  
  5795. function deselect()
  5796.     left.C0 = CFrame.new(0,0,0)
  5797.     right.C0 = CFrame.new(0,0,0)
  5798.     me.Character:makeJoints()
  5799.     wait()
  5800.     right.Part0 = nil
  5801.     right.Part1 = nil
  5802.     left.Part0 = nil
  5803.     left.Part1 = nil
  5804.     gun.Parent = game.Lighting
  5805.     me.Character:makeJoints()
  5806. end
  5807.  
  5808. sp.Selected:connect(selected)
  5809. sp.Deselected:connect(deselect)
  5810. end)
  5811.  
  5812. BStyle6.Name = "B Style 6"
  5813. BStyle6.Parent = StyleMain
  5814. BStyle6.BackgroundColor3 = Color3.new(1, 0, 1)
  5815. BStyle6.Position = UDim2.new(0.613043487, 0, 0.502976179, 0)
  5816. BStyle6.Size = UDim2.new(0, 130, 0, 44)
  5817. BStyle6.Font = Enum.Font.SourceSans
  5818. BStyle6.Text = "Galik Gun"
  5819. BStyle6.TextColor3 = Color3.new(1, 0.333333, 0)
  5820. BStyle6.TextSize = 18
  5821. BStyle6.MouseButton:connect(function()
  5822. ModelName = "Galick gun"
  5823.  
  5824. MainColor = BrickColor.new("Bright violet")
  5825.  
  5826. SecondaryColor = BrickColor.new("Bright violet")
  5827.  
  5828. function CreatePart(Part,Color,Size,Name,Parent)
  5829.  
  5830. Part.BrickColor = Color
  5831.  
  5832. Part.FormFactor = "Custom"
  5833.  
  5834. Part.Size = Size
  5835.  
  5836. Part.CanCollide = false
  5837.  
  5838. Part.TopSurface = 0
  5839.  
  5840. Part.BottomSurface = 0
  5841.  
  5842. Part.CFrame = CFrame.new(0,10,0)
  5843.  
  5844. Part.Name = Name
  5845.  
  5846. Part.Parent = Parent
  5847.  
  5848. end
  5849.  
  5850. function Cylinder(Scale,Parent)
  5851.  
  5852. Mesh = Instance.new("CylinderMesh")
  5853.  
  5854. Mesh.Scale = Scale
  5855.  
  5856. Mesh.Parent = Parent
  5857.  
  5858. end
  5859.  
  5860. function Sphere(Scale,Parent)
  5861.  
  5862. Mesh = Instance.new("SpecialMesh")
  5863.  
  5864. Mesh.MeshType = "Sphere"
  5865.  
  5866. Mesh.Scale = Scale
  5867.  
  5868. Mesh.Parent = Parent
  5869.  
  5870. end
  5871.  
  5872. function Glue(Part0,Part1,C0)
  5873.  
  5874. Weld = Instance.new("Weld")
  5875.  
  5876. Weld.Part0 = Part0
  5877.  
  5878. Weld.Part1 = Part1
  5879.  
  5880. Weld.C0 = C0
  5881.  
  5882. Weld.Parent = Part1
  5883.  
  5884. end
  5885.  
  5886. Player = game.Players.yfc
  5887.  
  5888. Char = Player.Character
  5889.  
  5890. for i, v in pairs(Char:GetChildren()) do
  5891.  
  5892. if v.Name == ModelName then
  5893.  
  5894. v:remove()
  5895.  
  5896. end
  5897.  
  5898. end
  5899.  
  5900. Humanoid = Char.Humanoid
  5901.  
  5902. Head = Char.Head
  5903.  
  5904. Torso = Char.Torso
  5905.  
  5906. RightArm = Char["Right Arm"]
  5907.  
  5908. LeftArm = Char["Left Arm"]
  5909.  
  5910. RightLeg = Char["Right Leg"]
  5911.  
  5912. LeftLeg = Char["Left Leg"]
  5913.  
  5914. Neck = Instance.new("Weld")
  5915.  
  5916. Neck.Part0 = Torso
  5917.  
  5918. Neck.Part1 = Head
  5919.  
  5920. Neck.C0 = CFrame.new(0,1.5,0)
  5921.  
  5922. Neck.Parent = Torso
  5923.  
  5924. RightShoulder = Torso["Right Shoulder"]
  5925.  
  5926. LeftShoulder = Torso["Left Shoulder"]
  5927.  
  5928. RightHip = Torso["Right Hip"]
  5929.  
  5930. LeftHip = Torso["Left Hip"]
  5931.  
  5932. Weapon = Instance.new("Model")
  5933.  
  5934. Weapon.Name = ModelName
  5935.  
  5936. Weapon.Parent = Char
  5937.  
  5938. Spot = Instance.new("Part")
  5939.  
  5940. Backpack = Player.Backpack
  5941.  
  5942. for i, v in pairs(Backpack:GetChildren()) do
  5943.  
  5944. if v.Name == ModelName then
  5945.  
  5946. v:remove()
  5947.  
  5948. end
  5949.  
  5950. end
  5951.  
  5952. HopperBin = Instance.new("HopperBin")
  5953.  
  5954. HopperBin.Name = ModelName
  5955.  
  5956. HopperBin.Parent = Backpack
  5957.  
  5958. Damage = Instance.new("IntValue")
  5959.  
  5960. Damage.Value = 15
  5961.  
  5962. Damage.Name = "Damage"
  5963.  
  5964. Damage.Parent = HopperBin
  5965.  
  5966. script.Parent = HopperBin
  5967.  
  5968. PlayerGui = Player.PlayerGui
  5969.  
  5970. for i, v in pairs(PlayerGui:GetChildren()) do
  5971.  
  5972. if v.Name == "Gui" then
  5973.  
  5974. v:remove()
  5975.  
  5976. end
  5977.  
  5978. end
  5979.  
  5980. Gui = Instance.new("ScreenGui")
  5981.  
  5982. Gui.Name = "Gui"
  5983.  
  5984. Gui.Parent = PlayerGui
  5985.  
  5986. MaxEnergy = Instance.new("IntValue")
  5987.  
  5988. MaxEnergy.Value = 100
  5989.  
  5990. MaxEnergy.Name = "MaxEnergy"
  5991.  
  5992. MaxEnergy.Parent = Gui
  5993.  
  5994. Energy = Instance.new("IntValue")
  5995.  
  5996. Energy.Value = 0
  5997.  
  5998. Energy.Name = "Energy"
  5999.  
  6000. Energy.Parent = Gui
  6001.  
  6002. Bar = Instance.new("Frame")
  6003.  
  6004. Bar.BackgroundColor = BrickColor.new(Color3.new(1,1,1))
  6005.  
  6006. Bar.Size = UDim2.new(0.25,0,0.02,0)
  6007.  
  6008. Bar.Position = UDim2.new(0.05,0,0.5,0)
  6009.  
  6010. Bar.Name = "Bar"
  6011.  
  6012. Bar.Parent = Gui
  6013.  
  6014. BarTracking = Instance.new("Frame")
  6015.  
  6016. BarTracking.BackgroundColor = BrickColor.new(Color3.new(0,153,204))
  6017.  
  6018. BarTracking.Name = "BarTracking"
  6019.  
  6020. BarTracking.Parent = Bar
  6021.  
  6022. Attack = false
  6023.  
  6024. Hold = false
  6025.  
  6026. Damaging = false
  6027.  
  6028. function onButton1Down()
  6029.  
  6030. if Attack == false then
  6031.  
  6032. Attack = true
  6033.  
  6034. Damaging = false
  6035.  
  6036. Damage.Value = 15
  6037.  
  6038. Energy.Value = 0
  6039.  
  6040. Hold = true
  6041.  
  6042. Bp = Instance.new("BodyPosition")
  6043.  
  6044. Bp.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  6045.  
  6046. Bp.position = Torso.Position
  6047.  
  6048. Bp.Parent = Torso
  6049.  
  6050. game.Debris:AddItem(Bp,2)
  6051.  
  6052. Bg = Instance.new("BodyGyro")
  6053.  
  6054. Bg.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  6055.  
  6056. Bg.cframe = Torso.CFrame
  6057.  
  6058. Bg.Parent = Torso
  6059.  
  6060. game.Debris:AddItem(Bg,2)
  6061.  
  6062. for i=1, 4 do
  6063.  
  6064. wait(0.0001)
  6065.  
  6066. Neck.C0 = Neck.C0 * CFrame.Angles(0,math.rad(-10),0)
  6067.  
  6068. end
  6069.  
  6070. for i=1, 16 do
  6071.  
  6072. wait(0.0001)
  6073.  
  6074. RightShoulder.C0 = CFrame.new(1,0.5,0) * CFrame.Angles(0,math.pi/3,math.rad(i*5))
  6075.  
  6076. LeftShoulder.C0 = CFrame.new(-0,0.5,0) * CFrame.Angles(0,math.pi/-1.5,math.rad(-i*5))
  6077.  
  6078. end
  6079.  
  6080. Ball = Instance.new("Part")
  6081.  
  6082. CreatePart(Ball,SecondaryColor,Vector3.new(1,1,1),"Ball",Weapon)
  6083.  
  6084. Ball.Transparency = 0.4
  6085.  
  6086. Ball.CanCollide = false
  6087.  
  6088. Sphere(Vector3.new(0.01,0.01,0.01),Ball)
  6089.  
  6090. Glue(Torso,Ball,CFrame.new(1.5,0,-1))
  6091.  
  6092. Ball2 = Instance.new("Part")
  6093.  
  6094. CreatePart(Ball2,MainColor,Vector3.new(2.4,2.4,2.4),"Ball",Weapon)
  6095.  
  6096. Ball2.Transparency = 0.4
  6097.  
  6098. Ball2.CanCollide = false
  6099.  
  6100. Sphere(Vector3.new(0.01,0.01,0.01),Ball2)
  6101.  
  6102. Glue(Torso,Ball2,CFrame.new(1.5,0,-1))
  6103.  
  6104. for i=1, 20 do
  6105.  
  6106. wait(0.0001)
  6107.  
  6108. if Hold == true then
  6109.  
  6110. Damage.Value = Damage.Value + 1
  6111.  
  6112. Ball.Mesh.Scale = Ball.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  6113.  
  6114. Ball2.Mesh.Scale = Ball2.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  6115.  
  6116. else
  6117.  
  6118. end
  6119.  
  6120. end
  6121.  
  6122. game:GetService("Chat"):Chat(Head,"...",1)
  6123.  
  6124. for i=1, 20 do
  6125.  
  6126. wait(0.0001)
  6127.  
  6128. if Hold == true then
  6129.  
  6130. Damage.Value = Damage.Value + 1
  6131.  
  6132. Ball.Mesh.Scale = Ball.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  6133.  
  6134. Ball2.Mesh.Scale = Ball2.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  6135.  
  6136. else
  6137.  
  6138. end
  6139.  
  6140. end
  6141.  
  6142. game:GetService("Chat"):Chat(Head,"Me...",1)
  6143.  
  6144. for i=1, 20 do
  6145.  
  6146. wait(0.0001)
  6147.  
  6148. if Hold == true then
  6149.  
  6150. Damage.Value = Damage.Value + 1
  6151.  
  6152. Ball.Mesh.Scale = Ball.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  6153.  
  6154. Ball2.Mesh.Scale = Ball2.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  6155.  
  6156. else
  6157.  
  6158. end
  6159.  
  6160. end
  6161.  
  6162. game:GetService("Chat"):Chat(Head,"HA...",1)
  6163.  
  6164. for i=1, 20 do
  6165.  
  6166. wait(0.0001)
  6167.  
  6168. if Hold == true then
  6169.  
  6170. Damage.Value = Damage.Value + 1
  6171.  
  6172. Ball.Mesh.Scale = Ball.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  6173.  
  6174. Ball2.Mesh.Scale = Ball2.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  6175.  
  6176. Ball.Reflectance = math.random(0,0.4)
  6177.  
  6178. Ball2.Reflectance = math.random(0,0.6)
  6179.  
  6180. else
  6181.  
  6182. end
  6183.  
  6184. end
  6185.  
  6186. game:GetService("Chat"):Chat(Head,"MEE...",1)
  6187.  
  6188. for i=1, 20 do
  6189.  
  6190. wait(0.0001)
  6191.  
  6192. if Hold == true then
  6193.  
  6194. Damage.Value = Damage.Value + 1
  6195.  
  6196. Ball.Mesh.Scale = Ball.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  6197.  
  6198. Ball2.Mesh.Scale = Ball2.Mesh.Scale + Vector3.new(0.01,0.01,0.01)
  6199.  
  6200. else
  6201.  
  6202. end
  6203.  
  6204. end
  6205.  
  6206. game:GetService("Chat"):Chat(Head,"HAAAA!!!",1)
  6207.  
  6208. for i=1, 4 do
  6209.  
  6210. wait(0.0001)
  6211.  
  6212. Neck.C0 = Neck.C0 * CFrame.Angles(0,math.rad(10),0)
  6213.  
  6214. end
  6215.  
  6216. Ball.Weld.C0 = CFrame.new(0,0,-2)
  6217.  
  6218. Ball2.Weld.C0 = CFrame.new(0,0,-2)
  6219.  
  6220. for i=1, 16 do
  6221.  
  6222. wait(0.0001)
  6223.  
  6224. RightShoulder.C0 = CFrame.new(1,0.5,0) * CFrame.Angles(0,math.pi/1.5,math.rad(i*5))
  6225.  
  6226. LeftShoulder.C0 = CFrame.new(-1,0.5,0) * CFrame.Angles(0,math.pi/-1.5,math.rad(-i*5))
  6227.  
  6228. end
  6229.  
  6230. if Hold == true then
  6231.  
  6232. Blast = Instance.new("Part")
  6233.  
  6234. CreatePart(Blast,MainColor,Vector3.new(3,3,3),"Blast",Weapon)
  6235.  
  6236. Blast.Transparency = 0.4
  6237.  
  6238. Blast.CFrame = Torso.CFrame * CFrame.new(0,0,-2)
  6239.  
  6240. Sphere(Vector3.new(1,1,1),Blast)
  6241.  
  6242. Spot.CFrame = Torso.CFrame * CFrame.new(0,0,-400)
  6243.  
  6244. Bp2 = Instance.new("BodyPosition")
  6245.  
  6246. Bp2.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  6247.  
  6248. Bp2.position = Spot.Position
  6249.  
  6250. Bp2.Parent = Blast
  6251.  
  6252. game.Debris:AddItem(Blast,1)
  6253.  
  6254. function onTouched(hit)
  6255.  
  6256. Blast.Anchored = true
  6257.  
  6258. Blast.Mesh.Scale = Blast.Mesh.Scale + Vector3.new(1,0.5,1)
  6259.  
  6260. end
  6261.  
  6262. Blast.Touched:connect(onTouched)
  6263.  
  6264. function onTouched(hit)
  6265.  
  6266. Human = hit.Parent:FindFirstChild("Humanoid")
  6267.  
  6268. if Human ~= nil and Damaging == false and hit.Parent.Name ~= Player.Name then
  6269.  
  6270. Damaging = true
  6271.  
  6272. Human:TakeDamage(Damage.Value)
  6273.  
  6274. end
  6275.  
  6276. end
  6277.  
  6278. Blast.Touched:connect(onTouched)
  6279.  
  6280. for i=1, 20 do
  6281.  
  6282. OldPos = Blast.Position
  6283.  
  6284. wait(0.05)
  6285.  
  6286. NewPos = Blast.Position
  6287.  
  6288. Dist = (OldPos - NewPos).magnitude
  6289.  
  6290. Line = Instance.new("Part")
  6291.  
  6292. CreatePart(Line,MainColor,Vector3.new(3,Dist,3),"Line",Weapon)
  6293.  
  6294. Line.Transparency = 0.4
  6295.  
  6296. Line.CanCollide = true
  6297.  
  6298. Line.Anchored = true
  6299.  
  6300. Line.CFrame = CFrame.new(OldPos,NewPos) * CFrame.new(0,0,-Dist/2) * CFrame.Angles(math.rad(90),0,0)
  6301.  
  6302. Cylinder(Vector3.new(1,1,1),Line)
  6303.  
  6304. game.Debris:AddItem(Line,1)
  6305.  
  6306. function onTouched(hit)
  6307.  
  6308. Human = hit.Parent:FindFirstChild("Humanoid")
  6309.  
  6310. if Human ~= nil and Damaging == false and hit.Parent.Name ~= Player.Name then
  6311.  
  6312. Damaging = true
  6313.  
  6314. Human:TakeDamage(Damage.Value)
  6315.  
  6316. end
  6317.  
  6318. end
  6319.  
  6320. Line.Touched:connect(onTouched)
  6321.  
  6322. end
  6323.  
  6324. for i, v in pairs(Weapon:GetChildren()) do
  6325.  
  6326. v:remove()
  6327.  
  6328. end
  6329.  
  6330. end
  6331.  
  6332. for i, v in pairs(Weapon:GetChildren()) do
  6333.  
  6334. v:remove()
  6335.  
  6336. end
  6337.  
  6338. RightShoulder.C0 = CFrame.new(1,0.5,0) * CFrame.Angles(0,math.pi/2,0)
  6339.  
  6340. LeftShoulder.C0 = CFrame.new(-1,0.5,0) * CFrame.Angles(0,math.pi/-2,0)
  6341.  
  6342. Attack = false
  6343.  
  6344. end
  6345.  
  6346. end
  6347.  
  6348. function onButton1Up()
  6349.  
  6350. Hold = false
  6351.  
  6352. end
  6353.  
  6354. function onSelected(mouse)
  6355.  
  6356. mouse.Button1Down:connect(onButton1Down)
  6357.  
  6358. mouse.Button1Up:connect(onButton1Up)
  6359.  
  6360. end
  6361.  
  6362. script.Parent.Selected:connect(onSelected)
  6363.  
  6364. Spawn(function()
  6365.  
  6366. while true do
  6367.  
  6368. wait()
  6369.  
  6370. BarTracking.Size = UDim2.new(Energy.Value/MaxEnergy.Value,0,1,0)
  6371.  
  6372. end
  6373.  
  6374. end)
  6375.  
  6376. Spawn(function()
  6377.  
  6378. while true do
  6379.  
  6380. wait()
  6381.  
  6382. if Hold == true then
  6383.  
  6384. Energy.Value = Energy.Value + 1
  6385.  
  6386. end
  6387.  
  6388. end
  6389.  
  6390. end)
  6391.  
  6392. Spawn(function()
  6393.  
  6394. while true do
  6395.  
  6396. wait()
  6397.  
  6398. if Energy.Value >= MaxEnergy.Value then
  6399.  
  6400. Energy.Value = MaxEnergy.Value
  6401.  
  6402. end
  6403.  
  6404. end
  6405.  
  6406. end)
  6407.  
  6408. Spawn(function()
  6409.  
  6410. while true do
  6411.  
  6412. wait()
  6413.  
  6414. if Attack == true then
  6415.  
  6416. RightShoulder.DesiredAngle = 0
  6417.  
  6418. LeftShoulder.DesiredAngle = 0
  6419.  
  6420. end
  6421.  
  6422. end
  6423.  
  6424. end)
  6425. end)
  6426.  
  6427. BStyle7.Name = "B Style 7"
  6428. BStyle7.Parent = StyleMain
  6429. BStyle7.BackgroundColor3 = Color3.new(1, 0, 1)
  6430. BStyle7.Position = UDim2.new(0.613043487, 0, 0.318452358, 0)
  6431. BStyle7.Size = UDim2.new(0, 130, 0, 44)
  6432. BStyle7.Font = Enum.Font.SourceSans
  6433. BStyle7.Text = "Dubstep Gun"
  6434. BStyle7.TextColor3 = Color3.new(1, 0.333333, 0)
  6435. BStyle7.TextSize = 18
  6436. BStyle7.MouseButton:connect(function()
  6437. print'Courtsey of WeAreDevs_L042'
  6438. do --CFrame lerp (Gui By WeAreDevs_L042)
  6439.         local function QuaternionFromCFrame(cf)
  6440.                 local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  6441.                 local trace = m00 + m11 + m22
  6442.                 if trace > 0 then
  6443.                         local s = math.sqrt(1 + trace)
  6444.                         local recip = 0.5/s
  6445.                         return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  6446.                 else
  6447.                         local i = 0
  6448.                         if m11 > m00 then
  6449.                                 i = 1
  6450.                         end
  6451.                         if m22 > (i == 0 and m00 or m11) then
  6452.                                 i = 2
  6453.                         end
  6454.                         if i == 0 then
  6455.                                 local s = math.sqrt(m00-m11-m22+1)
  6456.                                 local recip = 0.5/s
  6457.                                 return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  6458.                         elseif i == 1 then
  6459.                                 local s = math.sqrt(m11-m22-m00+1)
  6460.                                 local recip = 0.5/s
  6461.                                 return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  6462.                         elseif i == 2 then
  6463.                                 local s = math.sqrt(m22-m00-m11+1)
  6464.                                 local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  6465.                         end
  6466.                 end
  6467.         end
  6468.         local function QuaternionToCFrame(px, py, pz, x, y, z, w)
  6469.                 local xs, ys, zs = x + x, y + y, z + z
  6470.                 local wx, wy, wz = w*xs, w*ys, w*zs
  6471.                 local xx = x*xs
  6472.                 local xy = x*ys
  6473.                 local xz = x*zs
  6474.                 local yy = y*ys
  6475.                 local yz = y*zs
  6476.                 local zz = z*zs
  6477.                 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))
  6478.         end  
  6479.         function QuaternionSlerp(a, b, t)
  6480.                 local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  6481.                 local startInterp, finishInterp;
  6482.                 if cosTheta >= 0.0001 then
  6483.                         if (1 - cosTheta) > 0.0001 then
  6484.                                 local theta = math.acos(cosTheta)
  6485.                                 local invSinTheta = 1/math.sin(theta)
  6486.                                 startInterp = math.sin((1-t)*theta)*invSinTheta
  6487.                                 finishInterp = math.sin(t*theta)*invSinTheta  
  6488.                         else
  6489.                                 startInterp = 1-t
  6490.                                 finishInterp = t
  6491.                         end
  6492.                 else
  6493.                         if (1+cosTheta) > 0.0001 then
  6494.                                 local theta = math.acos(-cosTheta)
  6495.                                 local invSinTheta = 1/math.sin(theta)
  6496.                                 startInterp = math.sin((t-1)*theta)*invSinTheta
  6497.                                 finishInterp = math.sin(t*theta)*invSinTheta
  6498.                         else
  6499.                                 startInterp = t-1
  6500.                                 finishInterp = t
  6501.                         end
  6502.                 end
  6503.                 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
  6504.         end  
  6505.         function clerp(a,b,t)
  6506.                 local qa = {QuaternionFromCFrame(a)}
  6507.                 local qb = {QuaternionFromCFrame(b)}
  6508.                 local ax, ay, az = a.x, a.y, a.z
  6509.                 local bx, by, bz = b.x, b.y, b.z  
  6510.                 local _t = 1-t
  6511.                 return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  6512.         end
  6513. end
  6514. plr = game:service'Players'.LocalPlayer
  6515. char = plr.Character
  6516. mouse = plr:GetMouse()
  6517. humanoid = char:findFirstChild("Humanoid")
  6518. torso = char:findFirstChild("Torso")
  6519. head = char.Head
  6520. ra = char:findFirstChild("Right Arm")
  6521. la = char:findFirstChild("Left Arm")
  6522. rl = char:findFirstChild("Right Leg")
  6523. ll = char:findFirstChild("Left Leg")
  6524. rs = torso:findFirstChild("Right Shoulder")
  6525. ls = torso:findFirstChild("Left Shoulder")
  6526. rh = torso:findFirstChild("Right Hip")
  6527. lh = torso:findFirstChild("Left Hip")
  6528. neck = torso:findFirstChild("Neck")
  6529. rj = char:findFirstChild("HumanoidRootPart"):findFirstChild("RootJoint")
  6530. anim = char:findFirstChild("Animate")
  6531. if anim then
  6532. anim:Destroy()
  6533. end
  6534. rootpart = char:findFirstChild("HumanoidRootPart")
  6535. camera = workspace.CurrentCamera
  6536. modelforparts = char:findFirstChild("ModelForParts") or Instance.new("Model", char)
  6537. modelforparts.Name = "ModelForParts"
  6538. function trailconnect(obj, wat)
  6539. local trail = {}
  6540. for i = 1, 4 do
  6541. local p = Instance.new("Part")
  6542. p.BrickColor = obj.BrickColor
  6543. p.formFactor = "Custom"
  6544. p.Size = Vector3.new(1,1,1)
  6545. p.Locked = true
  6546. p.Anchored = true
  6547. p.CanCollide = false
  6548. local mesh = Instance.new("CylinderMesh", p)
  6549. mesh.Name = "Mesh"
  6550. table.insert(trail,{p,0})
  6551. end
  6552. local lastpos = obj.Position
  6553. local updatethis = 0
  6554. local dontdothis = false
  6555. game:service'RunService'.Stepped:connect(function()
  6556.     if wat == true then if dontdothis then return end
  6557.         for i,v in pairs(trail) do
  6558.         game:service'Debris':AddItem(obj, 0)
  6559.         table.remove(v, i)
  6560.         end
  6561.         dontdothis = true
  6562.         return
  6563.     end
  6564. updatethis = ((updatethis) % 4) + 1
  6565. local dstnc = (obj.Position - lastpos).magnitude
  6566. trail[updatethis][1].Mesh.Scale = Vector3.new(.2,dstnc,.2)
  6567. trail[updatethis][1].Parent = obj.Parent
  6568. trail[updatethis][1].CFrame = CFrame.new((obj.Position + lastpos)/2,obj.Position) * CFrame.Angles(math.pi/2, 0, 0)
  6569. trail[updatethis][2] = 0
  6570. for i,v in pairs(trail) do
  6571. v[2] = v[2] + .15
  6572. v[1].Transparency = v[2]
  6573. end
  6574. lastpos = obj.Position
  6575. end)
  6576. end
  6577. do --rayCast
  6578.     function rayCast(startpos, Speed, Gravity, Dmg, color)
  6579.         local ran,err = ypcall(function()
  6580.     local rayPart         = Instance.new("Part")
  6581.     rayPart.Name          = "RayPart"
  6582.     rayPart.BrickColor    = BrickColor.new(color)
  6583.     rayPart.Anchored      = true
  6584.     rayPart.CanCollide    = false
  6585.         rayPart.Locked        = true
  6586.         rayPart.FormFactor    = "Custom"
  6587.     rayPart.TopSurface    = Enum.SurfaceType.Smooth
  6588.     rayPart.BottomSurface = Enum.SurfaceType.Smooth
  6589.     rayPart.Size          = Vector3.new(.2, 50, .2)
  6590.     rayPart:breakJoints()
  6591.     Instance.new("CylinderMesh", rayPart)
  6592.     local fire = Instance.new("Fire", rayPart)
  6593.     fire.Color = rayPart.BrickColor.Color
  6594.     fire.SecondaryColor = rayPart.BrickColor.Color
  6595.     fire.Heat = 0
  6596.     fire.Size = 10
  6597.     local pl = Instance.new("PointLight", rayPart)
  6598.     pl.Color = Color3.new(rayPart.BrickColor.r/1.5, rayPart.BrickColor.g/1.5, rayPart.BrickColor.b/1.5)
  6599.     pl.Range = 18
  6600.         local hitobj = false
  6601.     local bulletposition = startpos.Position
  6602.     rayPart.CFrame = startpos.CFrame
  6603.     trailconnect(rayPart, hitobj)
  6604.    local bulletvelocity = (Vector3.new(math.random(-2,2), math.random(-2,2), math.random(-2,2)))+( mouse.Hit.p - bulletposition).unit*Speed
  6605.     local bulletlastposition = bulletposition
  6606.    
  6607.     coroutine.resume(coroutine.create(function()
  6608.         while true do
  6609.                 local dt = wait()
  6610.             bulletlastposition = bulletposition
  6611.             bulletvelocity = bulletvelocity + (Vector3.new(0, -3.81*Gravity, 0)*dt)
  6612.                 bulletposition = bulletposition + (bulletvelocity*dt)
  6613.             local ray = Ray.new(bulletlastposition,  (bulletposition - bulletlastposition))
  6614.             local hit, hitposition = workspace:FindPartOnRayWithIgnoreList( ray, {char, modelforparts} )
  6615.                    
  6616.         if (torso.Position - rayPart.Position).magnitude > 840 then
  6617.                  rayPart:Destroy()
  6618.                  hitobj = true
  6619.          break
  6620.     end
  6621.        
  6622.             if hit then
  6623.                 hitobj = true
  6624.                                         local damage = math.random(Dmg, Dmg+6)
  6625.                                 if hit.Parent:findFirstChild("Humanoid") ~= nil then
  6626.                                         hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health - damage
  6627.                                 elseif hit.Parent:IsA("Hat") and hit.Parent.Parent:findFirstChild("Humanoid") then
  6628.                                     hit.Parent.Parent.Humanoid.Health = hit.Parent.Parent.Humanoid.Health - damage
  6629.                             end
  6630.                             local boom = Instance.new("Part", modelforparts)
  6631.                             boom.BrickColor = rayPart.BrickColor
  6632.                             boom.Anchored = true
  6633.                             boom.FormFactor = "Custom"
  6634.                             boom.Size = Vector3.new(1,1,1)
  6635.                             boom.CanCollide = false
  6636.                             boom.Transparency = 0.25
  6637.                             boom.CFrame = CFrame.new(hitposition.x, hitposition.y, hitposition.z)
  6638.                             boom.TopSurface = 0
  6639.                             boom.BottomSurface = 0
  6640.                             local sphere = Instance.new("SpecialMesh", boom)
  6641.                             sphere.MeshType = "Sphere"
  6642.                             local pl = Instance.new("PointLight", boom)
  6643.                 pl.Color = Color3.new(boom.BrickColor.r/1.5, boom.BrickColor.g/1.5, boom.BrickColor.b/1.5)
  6644.                 pl.Range = 20
  6645.                 for ye = 0, 8 do
  6646.                     local lite = Instance.new("Part", boom)
  6647.                                 lite.FormFactor = "Custom"
  6648.                                 lite.Size = Vector3.new(.2, 1.5, .2)
  6649.                                 lite.BrickColor = boom.BrickColor
  6650.                                 lite.CanCollide = false
  6651.                                 lite.TopSurface = 0
  6652.                                 lite.Anchored = false
  6653.                                 lite.BottomSurface = 0
  6654.                                 lite.Position = boom.Position + Vector3.new(math.random(-10, 10), math.random(6,15), math.random(-10, 10))
  6655.                         end
  6656.                            
  6657.                             for i = 0, 20, 2.5 do
  6658.                                 sphere.Scale = sphere.Scale + Vector3.new(i,i,i)
  6659.                                 boom.Transparency = boom.Transparency + i/60
  6660.                                 pl.Range = pl.Range + i/15
  6661.                              wait()
  6662.                         end
  6663.                         boom:Destroy()
  6664.                 for i,v in pairs(workspace:children()) do
  6665.                     if v:IsA("Model") and v:findFirstChild("Humanoid") then
  6666.                         if v:findFirstChild("Head") and v:findFirstChild("Torso") then
  6667.                         if (v:findFirstChild("Torso").Position - boom.Position).magnitude < 16 and v.Name ~= char.Name then
  6668.                         v:findFirstChild("Humanoid"):TakeDamage(math.random(Dmg+2,Dmg+6))
  6669.                     end
  6670.                     end
  6671.                 end
  6672.                 if v and v:IsA("Part") and v.Name ~= "Base" then
  6673.                     if (v.Position - boom.Position).magnitude < 16 then
  6674.                     v:BreakJoints()
  6675.                     v.TopSurface = 0
  6676.                     v.BottomSurface = 0
  6677.                     v.LeftSurface = 0
  6678.                     v.RightSurface = 0
  6679.                     v.FrontSurface = 0
  6680.                     v.BackSurface = 0
  6681.                     v.Anchored = false
  6682.                     end
  6683.                 end
  6684.         end
  6685.             pcall(function()
  6686.                                 bulletposition = hitposition
  6687.                 rayPart.CFrame = CFrame.new(bulletposition, bulletposition+bulletvelocity) * CFrame.Angles(math.pi/2, 0, 0)
  6688.                 rayPart:Destroy()
  6689.             end)
  6690.                 break
  6691.             end
  6692.                 rayPart.CFrame = CFrame.new(bulletposition, bulletposition+bulletvelocity) * CFrame.Angles(math.pi/2, 0, 0)
  6693.                         rayPart.Parent = modelforparts
  6694.         end
  6695.     end))
  6696.  for i = 70, 65, -1.5 do
  6697.     camera.FieldOfView = i
  6698.     wait()
  6699. end
  6700. for i = 65, 70, 2.5 do
  6701.     camera.FieldOfView = i
  6702.     wait()
  6703. end
  6704. end)
  6705. if err then
  6706.     print(err)
  6707.     end
  6708. end
  6709. end
  6710. charge = 100
  6711. plrgui = game:service'Players'.LocalPlayer:findFirstChild("PlayerGui")
  6712. local statusgui = Instance.new("ScreenGui", plrgui)
  6713. local mainframe = Instance.new("Frame", statusgui)
  6714.     mainframe.Size = UDim2.new(0, 200, 0, 200)
  6715.     mainframe.Position = UDim2.new(.75, 0, .75, 0)
  6716.     mainframe.Style = 3
  6717.     local image = Instance.new("ImageLabel", mainframe)
  6718.     image.Size = UDim2.new(1, 0, .47, 0)
  6719.     image.Position = UDim2.new(0, 0, .235, 0)
  6720.     image.BackgroundTransparency = 1
  6721.     image.Image = "rbxassetid://109550704"
  6722.     local chargetext = Instance.new("TextLabel", mainframe)
  6723.     chargetext.FontSize = "Size18"
  6724.     chargetext.Size = UDim2.new(1, 0, .95, 0)
  6725.     chargetext.TextYAlignment = "Bottom"
  6726.     chargetext.BackgroundTransparency = 1
  6727.     chargetext.TextColor3 = Color3.new(1,1,1)
  6728.     game:service'RunService'.Stepped:connect(function()
  6729.         chargetext.Text = math.floor(charge).."%"
  6730.     end)
  6731.    
  6732.    
  6733. local rm = Instance.new("Weld", torso)
  6734. rm.C0 = CFrame.new(1.5, 0.5, 0)
  6735. rm.C1 = CFrame.new(0, 0.5, 0)
  6736. rm.Part0 = torso
  6737. rm.Part1 = ra
  6738. local lm = Instance.new("Weld", torso)
  6739. lm.C0 = CFrame.new(-1.5, 0.5, 0)
  6740. lm.C1 = CFrame.new(0, 0.5, 0)
  6741. lm.Part0 = torso
  6742. lm.Part1 = la
  6743. sound = Instance.new("Sound", head)
  6744. sound.Volume = 1
  6745. sound.SoundId = "rbxassetid://145197148"
  6746. sound.Looped = true
  6747. dancemode = true
  6748. debounceofsprint = false
  6749. --create func
  6750. function part(parent, size, color, formfactor, collide, transparency)
  6751.         if transparency == nil then transparency=0 end
  6752.         if collide == nil then collide=false end
  6753.                 if formfactor == nil then formfactor="Custom" end
  6754.         local p = Instance.new("Part", parent)
  6755.         p.FormFactor = formfactor
  6756.         p.CanCollide = collide
  6757.         p.Size = size
  6758.         p.Locked = true
  6759.         p.Transparency = transparency
  6760.         p.Position = torso.Position + Vector3.new(0, 1, 0)
  6761.         p.BrickColor = color
  6762.         p.FrontSurface = "SmoothNoOutlines"
  6763.         p.BackSurface = "SmoothNoOutlines"        
  6764.         p.LeftSurface = "SmoothNoOutlines"
  6765.         p.BottomSurface = "SmoothNoOutlines"
  6766.         p.TopSurface = "SmoothNoOutlines"  
  6767.         p.RightSurface = "SmoothNoOutlines"
  6768.         return p
  6769. end
  6770. function wedge(parent, size, color, formfactor, collide, transparency)
  6771.                 if transparency==nil then transparency=0 end
  6772.         if collide==nil then collide=false end
  6773.                 if formfactor==nil then formfactor="Custom" end
  6774.         local p = Instance.new("WedgePart", parent)
  6775.         p.FormFactor = formfactor
  6776.         p.CanCollide = collide
  6777.         p.Size = size
  6778.         p.Locked = true
  6779.         p.Position = torso.Position
  6780.         p.BrickColor = color
  6781.         p.FrontSurface = "SmoothNoOutlines"
  6782.         p.BackSurface = "SmoothNoOutlines"        
  6783.         p.LeftSurface = "SmoothNoOutlines"
  6784.         p.BottomSurface = "SmoothNoOutlines"
  6785.         p.TopSurface = "SmoothNoOutlines"  
  6786.         p.RightSurface = "SmoothNoOutlines"
  6787.         return p
  6788. end
  6789. function weld(part0, part1, c0, parent, c1)
  6790.         if parent == nil then parent=char end
  6791.         if c1 == nil then c1=CFrame.new() end
  6792.         local wel = Instance.new("Weld", parent)
  6793.         wel.Part0 = part0
  6794.         wel.Part1 = part1
  6795.         wel.C0 = c0
  6796.         wel.C1 = c1
  6797.         return wel
  6798. end
  6799. function specialmesh(parent, meshType, scale, meshId)
  6800.         if meshId==nil then meshId="" end
  6801.         local mesh = Instance.new("SpecialMesh", parent)
  6802.         mesh.Scale = scale
  6803.         mesh.MeshType = meshType
  6804.         mesh.MeshId = meshId
  6805.         return mesh
  6806. end
  6807. ----------------------------------------------------------------------------------------------------------
  6808. --function part(parent, size, color, formfactor, collide, transparency)
  6809. --function weld(part0, part1, c0, parent, c1)
  6810. ----------------------------------------------------------------------------------------------------------
  6811. function animatehuman(animationid, object)
  6812.                         local animation = object:findFirstChild("Humanoid"):LoadAnimation(animationid)
  6813.                         animation:Play()
  6814. end
  6815. local danceAnim = Instance.new("Animation", char)
  6816. danceAnim.AnimationId = "http://www.roblox.com/asset/?id=93648331"
  6817. danceAnim.Name = "Dance"
  6818. ----------------------------------------------------------------------------------------------------------
  6819. local main = Instance.new("Part", char)
  6820.         main.FormFactor = "Custom"
  6821.         main.CanCollide = false
  6822.         main.Size = Vector3.new(.75, 1, 1.2)
  6823.         main.Locked = true
  6824.         main.BrickColor = BrickColor.new("White")
  6825.         main.TopSurface = 0
  6826.         main.BottomSurface = 0
  6827.         main.Position = torso.Position
  6828.         main:BreakJoints()
  6829. local weld1 = weld(main, ra, CFrame.new(), char, CFrame.new(0, -.8, -.6))
  6830.     local speaker = Instance.new("Part", char)
  6831.         speaker.FormFactor = "Custom"
  6832.         speaker.CanCollide = false
  6833.         speaker.Size = Vector3.new(1.5, .25, 1.4)
  6834.         speaker.Locked = true
  6835.         speaker.BrickColor = BrickColor.new("White")
  6836.         speaker.TopSurface = 0
  6837.         speaker.BottomSurface = 0
  6838.         speaker.Position = torso.Position
  6839.         speaker:BreakJoints()
  6840. local weld2 = weld(speaker, main, CFrame.new(), char, CFrame.new(-.25, -1.7, .6))
  6841.         local speaker2 = Instance.new("Part", char)
  6842.         speaker2.FormFactor = "Custom"
  6843.         speaker2.CanCollide = false
  6844.         speaker2.Size = Vector3.new(1, .25, 2)
  6845.         speaker2.Locked = true
  6846.         speaker2.BrickColor = BrickColor.new("White")
  6847.         speaker2.TopSurface = 0
  6848.         speaker2.BottomSurface = 0
  6849.         speaker2.Position = torso.Position
  6850.         speaker2:BreakJoints()
  6851. local weld3 = weld(speaker2, main, CFrame.new(), char, CFrame.new(0, -1.7, -.2))
  6852.         local main2 = Instance.new("Part", char)
  6853.         main2.FormFactor = "Custom"
  6854.         main2.CanCollide = false
  6855.         main2.Size = Vector3.new(.751, 1, .6)
  6856.         main2.Locked = true
  6857.         main2.BrickColor = BrickColor.new("White")
  6858.         main2.TopSurface = 0
  6859.         main2.BottomSurface = 0
  6860.         main2.Position = torso.Position
  6861.         main2:BreakJoints()
  6862. local weld4 = weld(main2, ra, CFrame.new(), char, CFrame.new(0, 0, -.9))
  6863.     local main3 = Instance.new("Part", char)
  6864.         main3.FormFactor = "Custom"
  6865.         main3.CanCollide = false
  6866.         main3.Size = Vector3.new(.751, 1.45, 1)
  6867.         main3.Locked = true
  6868.         main3.BrickColor = BrickColor.new("White")
  6869.         main3.TopSurface = 0
  6870.         main3.BottomSurface = 0
  6871.         main3.Position = torso.Position
  6872.         main3:BreakJoints()
  6873. local weld5 = weld(main3, ra, CFrame.new(), char, CFrame.new(0, -1.6, -.9))
  6874.     local main4 = Instance.new("Part", char)
  6875.         main4.FormFactor = "Custom"
  6876.         main4.CanCollide = false
  6877.         main4.Size = Vector3.new(1, .76, 1)
  6878.         Instance.new("CylinderMesh", main4)
  6879.         main4.Locked = true
  6880.         main4.BrickColor = BrickColor.new("Black")
  6881.         main4.TopSurface = 0
  6882.         main4.BottomSurface = 0
  6883.         main4.Position = torso.Position
  6884.         main4:BreakJoints()
  6885. local weld6 = weld(main4, main, CFrame.new(), char, CFrame.new(0, -.15, -.5)*CFrame.Angles(math.pi/2, 0, math.pi/2))
  6886.     local speaker3 = Instance.new("Part", char)
  6887.         speaker3.FormFactor = "Custom"
  6888.         speaker3.CanCollide = false
  6889.         speaker3.Size = Vector3.new(1.5, .5, 1.4)
  6890.         speaker3.Locked = true
  6891.         speaker3.BrickColor = BrickColor.new("Yellow")
  6892.         speaker3.TopSurface = 0
  6893.         speaker3.BottomSurface = 0
  6894.         speaker3.Position = torso.Position
  6895.         speaker3:BreakJoints()
  6896. local welds1 = weld(speaker3, main, CFrame.new(), char, CFrame.new(-.25, -2.2, .6))
  6897.         local speaker4 = Instance.new("Part", char)
  6898.         speaker4.FormFactor = "Custom"
  6899.         speaker4.CanCollide = false
  6900.         speaker4.Size = Vector3.new(1, .5, 2)
  6901.         speaker4.Locked = true
  6902.         speaker4.BrickColor = BrickColor.new("White")
  6903.         speaker4.TopSurface = 0
  6904.         speaker4.BottomSurface = 0
  6905.         speaker4.Position = torso.Position
  6906.         speaker4:BreakJoints()
  6907. local welds2 = weld(speaker4, main, CFrame.new(), char, CFrame.new(0, -2.205, -.2))
  6908.         local speaker5 = Instance.new("Part", char)
  6909.         speaker5.FormFactor = "Custom"
  6910.         speaker5.CanCollide = false
  6911.         speaker5.Size = Vector3.new(1.4, .4, 1.3)
  6912.         speaker5.Locked = true
  6913.         speaker5.BrickColor = BrickColor.new("Black")
  6914.         speaker5.TopSurface = 0
  6915.         speaker5.BottomSurface = 0
  6916.         speaker5.Position = torso.Position
  6917.         speaker5:BreakJoints()
  6918. local welds3 = weld(speaker5, main, CFrame.new(), char, CFrame.new(-.25, -2, .6))
  6919.         local speaker6 = Instance.new("Part", char)
  6920.         speaker6.FormFactor = "Custom"
  6921.         speaker6.CanCollide = false
  6922.         speaker6.Size = Vector3.new(.9, .4, 1.9)
  6923.         speaker6.Locked = true
  6924.         speaker6.BrickColor = BrickColor.new("Black")
  6925.         speaker6.TopSurface = 0
  6926.         speaker6.BottomSurface = 0
  6927.         speaker6.Position = torso.Position
  6928.         speaker6:BreakJoints()
  6929. local welds4 = weld(speaker6, main, CFrame.new(), char, CFrame.new(0, -2, -.2))
  6930.    
  6931.         local support = Instance.new("Part", char)
  6932.         support.FormFactor = "Custom"
  6933.         support.CanCollide = false
  6934.         support.Size = Vector3.new(.3, .4, .6)
  6935.         support.Locked = true
  6936.         support.BrickColor = BrickColor.new("Black")
  6937.         support.TopSurface = 0
  6938.         support.BottomSurface = 0
  6939.         support.Position = torso.Position
  6940.         support:BreakJoints()
  6941. local welds5 = weld(support, main, CFrame.new(), char, CFrame.new(0, -1.5, -.4))
  6942. debounce = false
  6943. function stopsound()
  6944. if debounce then return end
  6945.     if not sound.IsPlaying then return end
  6946.     sound:stop()
  6947.     debounce = true
  6948.     local dancebro = Instance.new("StringValue", game:service'Lighting')
  6949.     dancebro.Name = ('STOPDANCING'..plr.Name)
  6950.     game:service'Debris':AddItem(dancebro, 1)
  6951.         coroutine.wrap(function()
  6952.         while not sound.IsPlaying do
  6953.             if charge <= 100 then
  6954.             charge = charge + .1
  6955.             wait()
  6956.             elseif charge > 100 then
  6957.             charge = 100
  6958.             break
  6959.             end
  6960.         end
  6961.     end)()
  6962.         wait(.1)
  6963.     debounce = false
  6964. end
  6965. mouse.Button1Down:connect(function(mous)
  6966.     if debounceofsprint then return end
  6967.     if sound.IsPlaying then return end
  6968.     if debounce then return end
  6969.     sound:play()
  6970.  for i = 70, 55, -.35 do
  6971.      if not sound.IsPlaying then debounce = true camera.FieldOfView = 70 return end
  6972.     camera.FieldOfView = i
  6973.     wait()
  6974. end
  6975. for i = 65, 70, 2.5 do
  6976.     if not sound.IsPlaying then debounce = true camera.FieldOfView = 70 return end
  6977.     camera.FieldOfView = i
  6978.     wait()
  6979. end
  6980. if debounce then debounce = false return end
  6981.     if dancemode then
  6982.     for i,v in pairs(workspace:children()) do
  6983.         if not sound.IsPlaying then break end
  6984.                 coroutine.wrap(function()
  6985.                 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
  6986.                             danceAnimClone = danceAnim:clone()
  6987.                             danceAnimClone.Parent = v
  6988.                             danceAnimClone.AnimationId = "http://www.roblox.com/asset/?id=93648331"
  6989.                             wait()
  6990.                             NLS([[
  6991.                             function animatehuman(animationid, object)
  6992.                                     local animation = object:findFirstChild("Humanoid"):LoadAnimation(animationid)
  6993.                                         animation:Play()
  6994.                         end
  6995.                         while wait(.5) do
  6996.                         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
  6997.                             animatehuman(script.Parent:findFirstChild("DancingAnimation"), script.Parent)
  6998.                             end
  6999.                             ]], v)
  7000.                 end
  7001.                 end)()
  7002.         end
  7003. end
  7004.     coroutine.wrap(function()
  7005.         while sound.IsPlaying do
  7006.             if charge <= 1 then
  7007.                 if debounce then break end
  7008.                 if not sound.IsPlaying then break end
  7009.                     sound:stop()
  7010.                     debounce = true
  7011.                     chargetext.TextColor3 = Color3.new(1,0,0)
  7012.                     dancebro = Instance.new("StringValue", game:service'Lighting')
  7013.                     dancebro.Name = ('STOPDANCING'..plr.Name)
  7014.                     game:service'Debris':AddItem(dancebro, 1)
  7015.                     coroutine.wrap(function()
  7016.                         repeat wait() until charge >= 10
  7017.                         debounce = false
  7018.                         chargetext.TextColor3 = Color3.new(1,1,1)
  7019.                     end)()
  7020.                     coroutine.wrap(function()
  7021.                         while not sound.IsPlaying do
  7022.                             if charge <= 100 then
  7023.                             charge = charge + .1
  7024.                             wait()
  7025.                             elseif charge > 100 then
  7026.                             charge = 100
  7027.                             break
  7028.                             end
  7029.                         end
  7030.                     end)()
  7031.             else
  7032.             charge = charge - .08
  7033.             wait()
  7034.             end
  7035.         end
  7036.     end)()
  7037.     coroutine.wrap(function()
  7038.         local ran,err = ypcall(function()
  7039.         while sound.IsPlaying and Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude <= 20 do
  7040.     if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude >= 20 then stopsound() break end
  7041.     if not sound.IsPlaying then break end
  7042.     rayCast(speaker, 1250, 0, 5, "Bright yellow")
  7043.     wait(.35)
  7044.     if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude >= 20 then stopsound() break end
  7045.     if not sound.IsPlaying then break end
  7046.     rayCast(speaker, 1250, 0, 5, "Deep Orange")
  7047.     wait(.95)
  7048.     if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude >= 20 then stopsound() break end
  7049.     if not sound.IsPlaying then break end
  7050.     rayCast(speaker, 1250, 0, 5, "Bright bluish green")
  7051.     wait(.55)
  7052.     if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude >= 20 then stopsound() break end
  7053.     if not sound.IsPlaying then break end
  7054.     rayCast(speaker, 1250, 0, 5, "Deep orange")
  7055.     wait(.4)
  7056.     if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude >= 20 then stopsound() break end
  7057.     if not sound.IsPlaying then break end
  7058.     rayCast(speaker, 1250, 0, 5, "Bright bluish green")
  7059.     local pl = Instance.new("PointLight", torso)
  7060.     pl.Color = Color3.new(153/255/1.25, 102/255/1.25, 204/255/1.25)
  7061.     pl.Range = 30
  7062.     pl.Brightness = 0.7
  7063.     game:service'Debris':AddItem(pl, .3)
  7064.     wait(.45)
  7065.     if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude >= 20 then stopsound() break end
  7066.     if not sound.IsPlaying then break end
  7067.     rayCast(speaker, 1250, 0, 5, "Bright yellow")
  7068.     wait(.75)
  7069.     end
  7070.     end) if err then print(err) end
  7071.     end)()
  7072. end)
  7073. mouse.Button1Up:connect(function(mous)
  7074.     stopsound()
  7075. end)
  7076. ctrl = false
  7077. mouse.KeyDown:connect(function(k)
  7078.     if string.byte(k) == 50 then
  7079.         ctrl = true
  7080.         humanoid.WalkSpeed = 8
  7081.     end
  7082.     if string.byte(k) == 48 then
  7083.     humanoid.WalkSpeed = 28
  7084.     end
  7085. end)
  7086. mouse.KeyUp:connect(function(k)
  7087.     if string.byte(k) == 50 then
  7088.         ctrl = false
  7089.         humanoid.WalkSpeed = 16
  7090.     end
  7091.     if string.byte(k) == 48 then
  7092.     humanoid.WalkSpeed = 16
  7093.         if ctrl then
  7094.             humanoid.WalkSpeed = 8
  7095.         end
  7096.     end
  7097. end)
  7098. humanoid.Died:connect(function()
  7099.     deathpos = torso.Position
  7100.         WorkModel = Instance.new("Model", workspace)
  7101.         WorkModel.Name = " "
  7102.         wait(1/60)
  7103.         humanoid.Parent = nil
  7104.         if torso then
  7105.                 local Head = char:FindFirstChild("Head")
  7106.                 if Head then
  7107.                         local Neck = Instance.new("Weld")
  7108.                         Neck.Name = "Neck"
  7109.                         Neck.Part0 = torso
  7110.                         Neck.Part1 = Head
  7111.                         Neck.C0 = CFrame.new(0, 1.5, 0)
  7112.                         Neck.C1 = CFrame.new()
  7113.                         Neck.Parent = torso
  7114.                 end
  7115.                 local Limb = char:FindFirstChild("Right Arm")
  7116.                 if Limb then
  7117.                         Limb.CFrame = torso.CFrame * CFrame.new(1.5, 0, 0)
  7118.                         local Joint = Instance.new("Glue")
  7119.                         Joint.Name = "RightShoulder"
  7120.                         Joint.Part0 = torso
  7121.                         Joint.Part1 = Limb
  7122.                         Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  7123.                         Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  7124.                         Joint.Parent = torso
  7125.                         local B = Instance.new("Part")
  7126.                         B.TopSurface = 0
  7127.                         B.BottomSurface = 0
  7128.                         B.formFactor = "Symmetric"
  7129.                         B.Size = Vector3.new(1, 1, 1)
  7130.                         B.Transparency = 1
  7131.                         B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  7132.                         B.Parent = char
  7133.                         B.CanCollide = false
  7134.                         local W = Instance.new("Weld")
  7135.                         W.Part0 = Limb
  7136.                         W.Part1 = B
  7137.                         W.C0 = CFrame.new(0, -0.5, 0)
  7138.                         W.Parent = Limb
  7139.                 end
  7140.                 local Limb = char:FindFirstChild("Left Arm")
  7141.                 if Limb then
  7142.                         Limb.CFrame = torso.CFrame * CFrame.new(-1.5, 0, 0)
  7143.                         local Joint = Instance.new("Glue")
  7144.                         Joint.Name = "LeftShoulder"
  7145.                         Joint.Part0 = torso
  7146.                         Joint.Part1 = Limb
  7147.                         Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  7148.                         Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  7149.                         Joint.Parent = torso
  7150.                         local B = Instance.new("Part")
  7151.                         B.TopSurface = 0
  7152.                         B.BottomSurface = 0
  7153.                         B.formFactor = "Symmetric"
  7154.                         B.Size = Vector3.new(1, 1, 1)
  7155.                         B.Transparency = 1
  7156.                         B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  7157.                         B.Parent = char
  7158.                         B.CanCollide = false
  7159.                         local W = Instance.new("Weld")
  7160.                         W.Part0 = Limb
  7161.                         W.Part1 = B
  7162.                         W.C0 = CFrame.new(0, -0.5, 0)
  7163.                         W.Parent = Limb
  7164.                 end
  7165.                 local Limb = char:FindFirstChild("Right Leg")
  7166.                 if Limb then
  7167.                         Limb.CFrame = torso.CFrame * CFrame.new(0.5, -2, 0)
  7168.                         local Joint = Instance.new("Glue")
  7169.                         Joint.Name = "RightHip"
  7170.                         Joint.Part0 = torso
  7171.                         Joint.Part1 = Limb
  7172.                         Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  7173.                         Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  7174.                         Joint.Parent = torso
  7175.                         local B = Instance.new("Part")
  7176.                         B.TopSurface = 0
  7177.                         B.BottomSurface = 0
  7178.                         B.formFactor = "Symmetric"
  7179.                         B.Size = Vector3.new(1, 1, 1)
  7180.                         B.Transparency = 1
  7181.                         B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  7182.                         B.Parent = char
  7183.                         B.CanCollide = false
  7184.                         local W = Instance.new("Weld")
  7185.                         W.Part0 = Limb
  7186.                         W.Part1 = B
  7187.                         W.C0 = CFrame.new(0, -0.5, 0)
  7188.                         W.Parent = Limb
  7189.                 end
  7190.                 local Limb = char:FindFirstChild("Left Leg")
  7191.                 if Limb then
  7192.                         Limb.CFrame = torso.CFrame * CFrame.new(-0.5, -2, 0)
  7193.                         local Joint = Instance.new("Glue")
  7194.                         Joint.Name = "LeftHip"
  7195.                         Joint.Part0 = torso
  7196.                         Joint.Part1 = Limb
  7197.                         Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  7198.                         Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  7199.                         Joint.Parent = torso
  7200.                         local B = Instance.new("Part")
  7201.                         B.TopSurface = 0
  7202.                         B.BottomSurface = 0
  7203.                         B.formFactor = "Symmetric"
  7204.                         B.Size = Vector3.new(1, 1, 1)
  7205.                         B.Transparency = 1
  7206.                         B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  7207.                         B.Parent = char
  7208.                         B.CanCollide = false
  7209.                         local W = Instance.new("Weld")
  7210.                         W.Part0 = Limb
  7211.                         W.Part1 = B
  7212.                         W.C0 = CFrame.new(0, -0.5, 0)
  7213.                         W.Parent = Limb
  7214.                 end
  7215.                 for blood = 0, 3 do
  7216.                     local blood = Instance.new("Part", workspace)
  7217.                     blood.BrickColor = BrickColor.Red()
  7218.                     blood.FormFactor = "Custom"
  7219.                     blood.Size = Vector3.new(.2,.2,.2)
  7220.                     blood.Anchored = true
  7221.                     blood.TopSurface = "Smooth"
  7222.                     blood.BackSurface = "Smooth"
  7223.                     local bloodmesh = Instance.new("CylinderMesh", blood)
  7224.                     bloodmesh.Scale = Vector3.new(3, 0, 3)
  7225.                     local rayzb = Ray.new(torso.Position, Vector3.new(0, -20, 0) + Vector3.new(math.random(-2, 2), 0, math.random(-2, 2)))
  7226.             local hitzb, hitposb = workspace:findPartOnRay(rayzb, char)
  7227.             if hitzb then
  7228.             blood.CFrame = CFrame.new(hitposb.x,hitposb.y,hitposb.z)
  7229.             blood.CFrame = blood.CFrame * CFrame.new(0, .05, 0)
  7230.                 coroutine.wrap(function()
  7231.                     for cframe = 0, math.random(16, 24) do
  7232.                         bloodmesh.Scale = bloodmesh.Scale + Vector3.new(.45, 0, .45)
  7233.                         wait()
  7234.                     end
  7235.                 end)()
  7236.             elseif not hitzb then
  7237.             blood:Destroy()
  7238.             end
  7239.             end
  7240.                 local BP = Instance.new("BodyPosition", torso)
  7241.                 BP.maxForce = Vector3.new(1,1,1)/0
  7242.                 BP.position = deathpos
  7243.                 for i,v in pairs(char:children()) do
  7244.                         if v:IsA("Part") then v.Parent = WorkModel end
  7245.                 end
  7246.         wait(.3)
  7247.                 BP:Destroy()
  7248.         end
  7249. end)
  7250. local rlegm = Instance.new("Motor", torso)
  7251. rlegm.C0 = CFrame.new(0.5, -1, 0)
  7252. rlegm.C1 = CFrame.new(0, 1, 0)
  7253. rlegm.Part0 = torso
  7254. rlegm.Part1 = rl
  7255. rlegm.Name = "Right Hip"
  7256. local llegm = Instance.new("Motor", torso)
  7257. llegm.C0 = CFrame.new(-0.5, -1, 0)
  7258. llegm.C1 = CFrame.new(0, 1, 0)
  7259. llegm.Part0 = torso
  7260. llegm.Part1 = ll
  7261. llegm.Name = "Left Hip"
  7262. neck.C0 = CFrame.new(0, 1, 0)
  7263. neck.C1 = CFrame.new(0, -0.5, 0)
  7264. rj.C0 = CFrame.new(0, -1, 0)
  7265. rj.C1 = CFrame.new(0, -1, 0)
  7266. rsc0 = rm.C0
  7267. lsc0 = lm.C0
  7268. neckc0 = neck.C0
  7269. rootc0 = rj.C0
  7270. llc0 = llegm.C0
  7271. rlc0 = rlegm.C0
  7272. speed = 0.4
  7273. angle = 0
  7274. anglespeed = 0
  7275. mvmnt = 0
  7276. game:service'RunService'.RenderStepped:connect(function()
  7277.     angle = (angle % 100) + anglespeed/10
  7278.     mvmnt = math.pi * math.sin(math.pi*2/100*(angle*10))
  7279.         local rscf = rsc0
  7280.         local lscf = lsc0
  7281.         local rlcf = rlc0
  7282.         local llcf = llc0
  7283.         local rjcf = rootc0
  7284.         local ncf = neckc0
  7285.         local rayz = Ray.new(rootpart.Position, Vector3.new(0, -4.1, 0))
  7286.         local hitz, enz = workspace:findPartOnRay(rayz, char)
  7287.         --math.asin(mouse.UnitRay.Direction.y)
  7288.         ncf = neckc0 * CFrame.Angles(camera.CoordinateFrame.lookVector.y, 0, 0)
  7289.         rscf = rsc0 * CFrame.new(-.55, 0, .35) * CFrame.Angles(camera.CoordinateFrame.lookVector.y+math.pi/2, 0, 0)
  7290.         lscf = lsc0 * CFrame.new(.85, 0, -.65) * CFrame.Angles(camera.CoordinateFrame.lookVector.y+math.pi/2, 0, math.rad(45))
  7291.         if not hitz then
  7292.             ncf = neckc0 * CFrame.Angles(math.pi/18, 0, 0)
  7293.                 rscf = rsc0 * CFrame.new(-.45, 0, -.75) * CFrame.Angles(math.pi/5+math.pi/18, 0, math.rad(-70))
  7294.                 lscf = lsc0 * CFrame.new(.35, 0, 0) * CFrame.Angles(math.pi/3.5+math.pi/18, 0, 0)
  7295.             rjcf = rootc0 * CFrame.Angles(-math.pi/32, 0, 0)
  7296.                 rlcf = rlc0 * CFrame.new(0, 0.7, -0.5) * CFrame.Angles(-math.pi/14, 0, 0)
  7297.                 llcf = llc0 * CFrame.Angles(-math.pi/20, 0, 0)
  7298.         elseif humanoid.Sit then
  7299.             ncf = neckc0 * CFrame.Angles(0, 0, 0)
  7300.             rjcf = rootc0 * CFrame.new(0, -.2, 0)
  7301.             rlcf = rlc0 * CFrame.Angles(math.pi/2, 0, math.rad(7.5))
  7302.             llcf = llc0 * CFrame.Angles(math.pi/2, 0, -math.rad(7.5))
  7303.             if sprinting then
  7304.                 debounceofsprint = false
  7305.                 sprinting = false
  7306.             end
  7307.         elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude <= 2 then
  7308.             speed = 0.3
  7309.             if ctrl then
  7310.                 rjcf = rootc0 * CFrame.new(0, -1.25, 0)
  7311.                 llcf = llc0 * CFrame.new(0, 0, -.45) * CFrame.Angles(-math.pi/2.2, 0, 0)
  7312.                 rlcf = rlcf * CFrame.new(0, 1.25, -.85)
  7313.             else
  7314.                 rjcf = rootc0
  7315.                 rlcf = rlc0 * CFrame.Angles(-math.rad(.5), 0, math.rad(1.5))
  7316.                 llcf = llc0 * CFrame.Angles(math.rad(1.5), 0, -math.rad(1.5))
  7317.             end
  7318.     elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude <= 20 then
  7319.         if not humanoid.Sit then
  7320.             anglespeed = 3
  7321.             if ctrl then
  7322.                 anglespeed = 3
  7323.                 ncf = neckc0 * CFrame.Angles(camera.CoordinateFrame.lookVector.y+math.pi/18, 0, 0)
  7324.                 rjcf = rootc0 * CFrame.new(0, -.35, 0) * CFrame.Angles(-math.pi/18, 0, 0)
  7325.                 rscf = rsc0 * CFrame.new(-.55, 0, .35) * CFrame.Angles(camera.CoordinateFrame.lookVector.y+math.pi/2+math.pi/18, 0, 0)
  7326.                 lscf = lsc0 * CFrame.new(.85, 0, -.65) * CFrame.Angles(camera.CoordinateFrame.lookVector.y+math.pi/2+math.pi/18, 0, math.rad(45))
  7327.                 llcf = llc0 * CFrame.new(0, .45, -.35) * CFrame.Angles(math.pi/18 - math.sin(angle)*.45, 0, 0)
  7328.                 rlcf = rlcf * CFrame.new(0, .45, -.35) * CFrame.Angles(math.pi/18 + math.sin(angle)*.45, 0, 0)
  7329.             else
  7330.                 rjcf = rootc0
  7331.                 rlcf = rlc0 * CFrame.Angles(math.sin(-angle)*.65, 0, math.rad(.5))
  7332.                 llcf = llc0 * CFrame.Angles(math.sin(angle)*.65, 0, -math.rad(.5))
  7333.             end
  7334.             if sprinting then
  7335.                 debounceofsprint = false
  7336.                 sprinting = false
  7337.             end
  7338.             end
  7339.         elseif Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude >= 20 then
  7340.             if not humanoid.Sit then
  7341.             anglespeed = 3
  7342.                 ncf = neckc0 * CFrame.Angles(math.pi/18, 0, 0)
  7343.                 rscf = rsc0 * CFrame.new(-.45, 0, -.75) * CFrame.Angles(math.pi/5+math.pi/18, 0, math.rad(-70))
  7344.                 lscf = lsc0 * CFrame.new(.35, 0, 0) * CFrame.Angles(math.pi/3.5+math.pi/18, 0, 0)
  7345.                 rjcf = rootc0 * CFrame.new(0, 0, 0) * CFrame.Angles(-math.pi/18, math.sin(angle)*.1, math.sin(angle)*.045)
  7346.                 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))
  7347.                 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))
  7348.             sprinting = true
  7349.             debounceofsprint = true
  7350.             end
  7351.         end
  7352.     rm.C0 = clerp(rm.C0,rscf,speed)
  7353.     lm.C0 = clerp(lm.C0,lscf,speed)
  7354.     rj.C0 = clerp(rj.C0,rjcf,speed)
  7355.     rlegm.C0 = clerp(rlegm.C0,rlcf,speed)
  7356.     llegm.C0 = clerp(llegm.C0,llcf,speed)
  7357.     neck.C0 = clerp(neck.C0,ncf,speed)
  7358. end)
  7359.  
  7360. end)
  7361.  
  7362. BStyle8.Name = "B Style 8"
  7363. BStyle8.Parent = StyleMain
  7364. BStyle8.BackgroundColor3 = Color3.new(1, 0, 1)
  7365. BStyle8.Position = UDim2.new(0.613043487, 0, 0.127976164, 0)
  7366. BStyle8.Size = UDim2.new(0, 130, 0, 44)
  7367. BStyle8.Font = Enum.Font.SourceSans
  7368. BStyle8.Text = "Gyro Gun"
  7369. BStyle8.TextColor3 = Color3.new(0, 0, 0)
  7370. BStyle8.TextSize = 14
  7371. BStyle8.MouseButton:connect(function()
  7372. lp=game.Players.LocalPlayer
  7373. pl=lp.Character
  7374. tol=Instance.new("HopperBin",lp.Backpack)
  7375. tol.Name="Gyro_Gun"
  7376. for _,v in pairs(pl:GetChildren()) do if v.ClassName=="CharacterMesh" then v:remove() end end
  7377. Part = function(x,y,z,color,tr,cc,an,parent)
  7378. local p = Instance.new('Part',parent or Weapon)
  7379. p.formFactor = 'Custom'
  7380. p.Size = Vector3.new(x,y,z)
  7381. p.BrickColor = BrickColor.new(color)
  7382. p.CanCollide = cc
  7383. p.Transparency = tr
  7384. p.Anchored = an
  7385. p.TopSurface,p.BottomSurface = 0,0
  7386. return p end
  7387. Weld = function(p0,p1,x,y,z,rx,ry,rz,par)
  7388. p0.Position = p1.Position
  7389. local w = Instance.new('Motor',par or p0)
  7390. w.Part0 = p0
  7391. w.Part1 = p1
  7392. w.C1 = CFrame.new(x,y,z)*CFrame.Angles(rx,ry,rz)
  7393. return w end
  7394. Mesh = function(par,num,x,y,z)
  7395. local msh = _
  7396. if num == 1 then msh = Instance.new("CylinderMesh",par)
  7397. elseif num == 2 then msh = Instance.new("SpecialMesh",par) msh.MeshType = 3
  7398. elseif num == 3 then msh = Instance.new("BlockMesh",par)
  7399. elseif type(num) == 'string' then msh = Instance.new("SpecialMesh",par) msh.MeshId = num
  7400. end
  7401. msh.Scale = Vector3.new(x,y,z)
  7402. return msh end
  7403. wPart = function(x,y,z,color,tr,cc,an,parent)
  7404. local wp = Instance.new('WedgePart',parent or Weapon)
  7405. wp.formFactor = 'Custom'
  7406. wp.Size = Vector3.new(x,y,z)
  7407. wp.BrickColor = BrickColor.new(color)
  7408. wp.CanCollide = cc
  7409. wp.Transparency = tr
  7410. wp.Anchored = an
  7411. wp.TopSurface,wp.BottomSurface = 0,0
  7412. return wp end
  7413.  
  7414. function c1(mouse)
  7415. f=true
  7416. ft=false
  7417. lo=true
  7418. lop=false
  7419. speed=50
  7420. thro=1
  7421. dmg= Part(1,1,1,'',1,false,false,wep)
  7422. dmgwl= Weld(dmg,wep24,0,0,0,0,0,0,wep)
  7423. function touch(hit)
  7424. if hit.Parent:findFirstChild("Humanoid") ~= nil then
  7425. hit.Parent:BreakJoints()
  7426. end end
  7427. dmg.Touched:connect(touch)
  7428.  
  7429. coroutine.wrap(function()
  7430. for i=1,10 do wait()
  7431. ma.Scale=ma.Scale+Vector3.new(.2,.2,.2)
  7432. ma1.Scale=ma1.Scale+Vector3.new(.3,.3,.3)
  7433. end
  7434. end)()
  7435.  
  7436. coroutine.wrap(function()
  7437. while wait()do
  7438. for i=1,speed do wait()
  7439. if ft==true then break end
  7440. spin1w= Weld(spin1,pl['Right Arm'],0,-3,-.75,0,i/thro,0,wep)
  7441. spin2w= Weld(spin2,pl['Right Arm'],0,-3,-.75,i/thro,0,0,wep)
  7442. end
  7443. if ft==true then break end
  7444. end end)()
  7445. m=lp:GetMouse()
  7446. coroutine.wrap(function()
  7447. while wait(1) do
  7448. if lop==true then break end
  7449. bpos.position=m.Hit.p
  7450. wait(.5)
  7451. coroutine.wrap(function()
  7452. for i=1,10 do wait()
  7453. bpos.position=wep23.Position
  7454. end
  7455. end)()
  7456. end
  7457. end)()
  7458. end
  7459.  
  7460. function c2(mouse)
  7461. ft=true
  7462. f=false
  7463. lo=false
  7464. lop=true
  7465. speed=360
  7466. thro=10
  7467. dmg:remove()
  7468.  
  7469. coroutine.wrap(function()
  7470. while wait()do
  7471. if lo==true then break end
  7472. bpos.position=wep23.Position
  7473. end end)()
  7474.  
  7475. coroutine.wrap(function()
  7476. for i=1,10 do wait()
  7477. ma.Scale=ma.Scale-Vector3.new(.2,.2,.2)
  7478. ma1.Scale=ma1.Scale-Vector3.new(.3,.3,.3)
  7479. end
  7480. end)()
  7481.  
  7482. coroutine.wrap(function()
  7483. while wait()do
  7484. for i=1,speed do wait()
  7485. if f==true then break end
  7486. spin1w= Weld(spin1,pl['Right Arm'],0,-3,-.75,0,i/thro,0,wep)
  7487. spin2w= Weld(spin2,pl['Right Arm'],0,-3,-.75,i/thro,0,0,wep)
  7488. end
  7489. if f==true then break end
  7490. end end)()
  7491. end
  7492.  
  7493. tol.Selected:connect(function(mouse)
  7494. mouse.Button1Down:connect(function() c1(mouse) end)
  7495. mouse.Button1Up:connect(function() c2(mouse) end)
  7496. f=false
  7497. lo=false
  7498. wep=Instance.new("Model",pl)
  7499. bas = Part(1,1,1,'',1,false,false,wep)
  7500. bas:BreakJoints()
  7501. wep1= Part(.1,.3,1,'Really black',0,false,false,wep)
  7502. wl1= Weld(wep1,pl['Right Arm'],0,-1,0,0,0,0,wep)
  7503. wep2= Part(.5,2,.5,'Really black',0,false,false,wep)
  7504. wl2= Weld(wep2,pl['Right Arm'],0,-1,-.75,0,0,0,wep)
  7505. wep3= Part(.1,.2,1.5,'Really black',0,false,false,wep)
  7506. wl3= Weld(wep3,pl['Right Arm'],0,-1.5,-.25,-math.pi/5,0,0,wep)
  7507. wep4= Part(.3,1,.3,'Institutional white',0,false,false,wep)m=Mesh(wep4,1,1,1,1)
  7508. wl4= Weld(wep4,pl['Right Arm'],0,-2,-.75,0,0,0,wep)
  7509. wep5= Part(.2,.35,.2,'Really black',0,false,false,wep)m=Mesh(wep5,1,1,1,1)
  7510. wl5= Weld(wep5,pl['Right Arm'],0,-2.25,-.75,math.pi/2,0,0,wep)
  7511. wep6= Part(.2,.35,.2,'Really black',0,false,false,wep)m=Mesh(wep6,1,1,1,1)
  7512. wl6= Weld(wep6,pl['Right Arm'],0,-2.25,-.75,math.pi/2,0,math.pi/2,wep)
  7513. wep7= Part(.2,.2,.2,'Really black',0,false,false,wep)
  7514. m=Mesh(wep7,'http://www.roblox.com/asset/?id=3270017',2.25,2.25,.1)
  7515. wl7= Weld(wep7,pl['Right Arm'],0,-3,-.75,0,math.pi/3,0,wep)
  7516. --spinners--
  7517. spin1= Part(.2,.2,.2,'Institutional white',0,false,false,wep)
  7518. m=Mesh(spin1,'http://www.roblox.com/asset/?id=3270017',1.75,1.75,.1)
  7519. spin2= Part(.2,.2,.2,'Really black',0,false,false,wep)
  7520. m=Mesh(spin2,'http://www.roblox.com/asset/?id=3270017',1.25,1.25,.1)
  7521. --derrize
  7522. wep8= Part(1,1,1,'Really black',0,false,false,wep)
  7523. m=Mesh(wep8,1,.1,2,.1)
  7524. wl8= Weld(wep8,pl['Right Arm'],0,-3,-.75,0,math.pi/3,0,wep)
  7525. wep8= Part(1,1,1,'Really black',0,false,false,wep)
  7526. m=Mesh(wep8,1,.3,1,.3)
  7527. wl8= Weld(wep8,pl['Right Arm'],0,-3,-.75,0,math.pi/3,0,wep)
  7528. wep8.Material='Granite'
  7529. wep9= Part(1,1,1,'Lime green',0,false,false,wep)
  7530. m=Mesh(wep9,1,.4,.3,.4)
  7531. wl9= Weld(wep9,pl['Right Arm'],0,-3,-.75,0,math.pi/3,0,wep)
  7532. wep9.Material='Granite'
  7533. wep9= Part(1,1,1,'Really black',0,false,false,wep)
  7534. m=Mesh(wep9,1,.41,.27,.41)
  7535. wl9= Weld(wep9,pl['Right Arm'],0,-3,-.75,0,math.pi/3,0,wep)
  7536. wep9.Material='Granite'
  7537. wep10= Part(1,1,1,'Really black',0,false,false,wep)
  7538. m=Mesh(wep10,1,.2,.5,.2)
  7539. wl10= Weld(wep10,pl['Right Arm'],0,-4,-.75,0,math.pi/3,0,wep)
  7540. wep11= Part(1,1,1,'Institutional white',0,false,false,wep)
  7541. m=Mesh(wep11,1,.2,.5,.2)
  7542. wl11= Weld(wep11,pl['Right Arm'],0,-4.5,-.75,0,math.pi/3,0,wep)
  7543. wep12= Part(.2,.35,.2,'Really black',0,false,false,wep)m=Mesh(wep12,1,1,1,1)
  7544. wl12= Weld(wep12,pl['Right Arm'],0,-4.25,-.75,math.pi/2,0,0,wep)
  7545. wep13= Part(.2,.35,.2,'Really black',0,false,false,wep)m=Mesh(wep13,1,1,1,1)
  7546. wl13= Weld(wep13,pl['Right Arm'],0,-4.25,-.75,math.pi/2,0,math.pi/2,wep)
  7547. wep14= Part(.2,.35,.2,'Really black',0,false,false,wep)m=Mesh(wep14,1,1,1,1)
  7548. wl14= Weld(wep14,pl['Right Arm'],0,-4.5,-.75,math.pi/2,0,0,wep)
  7549. wep15= Part(.2,.35,.2,'Really black',0,false,false,wep)m=Mesh(wep15,1,1,1,1)
  7550. wl15= Weld(wep15,pl['Right Arm'],0,-4.5,-.75,math.pi/2,0,math.pi/2,wep)
  7551. wep16= Part(1,1,1,'Really black',0,false,false,wep) m=Mesh(wep16,3,2,.1,.1)
  7552. wl16= Weld(wep16,pl['Right Arm'],0,-4.7,-.75,math.pi/2,0,0,wep)
  7553. wep17= Part(1,1,1,'Really black',0,false,false,wep) m=Mesh(wep17,3,.1,2,.1)
  7554. wl17= Weld(wep17,pl['Right Arm'],0,-4.7,-.75,math.pi/2,0,0,wep)
  7555. wep18= Part(1,1,1,'Really black',0,false,false,wep) m=Mesh(wep18,3,.1,1,.1)
  7556. wl18= Weld(wep18,pl['Right Arm'],0,-5.1,-2,math.pi/5,0,0,wep)
  7557. wep19= Part(1,1,1,'Really black',0,false,false,wep) m=Mesh(wep19,3,.1,1,.1)
  7558. wl19= Weld(wep19,pl['Right Arm'],0,-5.1,.5,-math.pi/5,0,0,wep)
  7559. wep20= Part(1,1,1,'Really black',0,false,false,wep) m=Mesh(wep20,3,1,.1,.1)
  7560. wl20= Weld(wep20,pl['Right Arm'],1.35,-5,-.75,0,0,-math.pi/5,wep)
  7561. wep21= Part(1,1,1,'Really black',0,false,false,wep) m=Mesh(wep21,3,1,.1,.1)
  7562. wl21= Weld(wep21,pl['Right Arm'],-1.35,-5,-.75,0,0,math.pi/5,wep)
  7563. wep22= Part(1,1,1,'Really black',0,false,false,wep) m=Mesh(wep22,'http://www.roblox.com/asset/?id=95387759',5,5,5)
  7564. wl22= Weld(wep22,pl['Right Arm'],0,-4.7,-.75,-math.pi/2,0,0,wep)
  7565.  
  7566. wep23= Part(.1,.1,.1,'Really black',1,false,false,wep)
  7567. wl23= Weld(wep23,pl['Right Arm'],0,-6,-.75,-math.pi/2,0,0,wep)
  7568.  
  7569. wep24= Part(.1,.1,.1,'Camo',0,false,false,wep)
  7570. ma=Mesh(wep24,'http://www.roblox.com/asset/?id=1185246',0,0,0)
  7571.  
  7572. wep25= Part(.1,.1,.1,'Lime green',.5,false,false,wep)
  7573. ma1=Mesh(wep25,'http://www.roblox.com/asset/?id=1185246',0,0,0)
  7574. wl25= Weld(wep25,wep24,0,0,0,-0,0,0,wep)
  7575.  
  7576. bpos=Instance.new("BodyPosition",wep24)
  7577. bpos.maxForce=Vector3.new(1e1000,1e1000,1e1000)
  7578. coroutine.wrap(function()
  7579. while wait()do
  7580. if lo==true then break end
  7581. bpos.position=wep23.Position
  7582. end end)()
  7583.  
  7584. la1= Part(.1,.1,.1,'Lime green',.6,false,true,wep)
  7585. coroutine.wrap(function()
  7586. while wait() do
  7587. Pos1 = wep18.Position
  7588. Pos2 = wep24.Position
  7589. Dist = (Pos1-Pos2).magnitude
  7590. la1.Size = Vector3.new(0.1,0.1,Dist)
  7591. la1.CFrame = CFrame.new(Pos1,Pos2)*CFrame.new(0,0,-Dist/2)
  7592. end end)()
  7593. la2= Part(.1,.1,.1,'Lime green',.6,false,true,wep)
  7594. coroutine.wrap(function()
  7595. while wait() do
  7596. Pos1 = wep19.Position
  7597. Pos2 = wep24.Position
  7598. Dist = (Pos1-Pos2).magnitude
  7599. la2.Size = Vector3.new(0.1,0.1,Dist)
  7600. la2.CFrame = CFrame.new(Pos1,Pos2)*CFrame.new(0,0,-Dist/2)
  7601. end end)()
  7602. la3= Part(.1,.1,.1,'Lime green',.6,false,true,wep)
  7603. coroutine.wrap(function()
  7604. while wait() do
  7605. Pos1 = wep20.Position
  7606. Pos2 = wep24.Position
  7607. Dist = (Pos1-Pos2).magnitude
  7608. la3.Size = Vector3.new(0.1,0.1,Dist)
  7609. la3.CFrame = CFrame.new(Pos1,Pos2)*CFrame.new(0,0,-Dist/2)
  7610. end end)()
  7611. la4= Part(.1,.1,.1,'Lime green',.6,false,true,wep)
  7612. coroutine.wrap(function()
  7613. while wait() do
  7614. Pos1 = wep21.Position
  7615. Pos2 = wep24.Position
  7616. Dist = (Pos1-Pos2).magnitude
  7617. la4.Size = Vector3.new(0.1,0.1,Dist)
  7618. la4.CFrame = CFrame.new(Pos1,Pos2)*CFrame.new(0,0,-Dist/2)
  7619. end end)()
  7620.  
  7621. speed=360
  7622. thro=10
  7623. coroutine.wrap(function()
  7624. while wait()do
  7625. for i=1,speed do wait()
  7626. if f==true then break end
  7627. spin1w= Weld(spin1,pl['Right Arm'],0,-3,-.75,0,i/thro,0,wep)
  7628. spin2w= Weld(spin2,pl['Right Arm'],0,-3,-.75,i/thro,0,0,wep)
  7629. end
  7630. if ft==true then break end
  7631. end
  7632. end)()
  7633.  
  7634. fakel = Instance.new("Weld",wep)
  7635. fakel.Part0 = pl.Torso
  7636. fakel.Part1 = bas
  7637. coroutine.wrap(function()
  7638. for angle = 0, 45, 5 do
  7639.         if fakel == nil then return end
  7640. fakel.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.Angles(math.rad(angle*2), math.rad(0--[[angle*.3]]), math.rad(0))
  7641. wait()
  7642. end
  7643. end)()
  7644. welditbro = Instance.new("Weld", wep)
  7645. welditbro.C0 = CFrame.new(0, 0.5, 0)
  7646. welditbro.Part0 = pl['Right Arm']
  7647. welditbro.Part1 = bas
  7648. end)
  7649.  
  7650. tol.Deselected:connect(function(_)
  7651. f=true
  7652. lo=true
  7653. wep:remove()
  7654. end)
  7655. end)
  7656.  
  7657. Close.Parent = StyleMain
  7658. Close.BackgroundColor3 = Color3.new(1, 1, 1)
  7659. Close.BackgroundTransparency = 2
  7660. Close.Position = UDim2.new(0.882608652, 0, 0, 0)
  7661. Close.Size = UDim2.new(0, 60, 0, 34)
  7662. Close.Font = Enum.Font.SourceSans
  7663. Close.Text = "X"
  7664. Close.TextColor3 = Color3.new(0, 0, 0)
  7665. Close.TextSize = 14
  7666. Close.MouseButton1Down:connect(function()
  7667. OpenFrame.Visible = true
  7668. Style Main.Visible = false
  7669. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement