Advertisement
FloweyTheFlower

Roblox Scripts #48 Crimson Pistol

Sep 15th, 2017
1,048
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 70.17 KB | None | 0 0
  1. -- Crimson Pistol by Ph0sphoria
  2. Player = game.Players.LocalPlayer
  3. Character = Player.Character
  4. PlayerGui = Player.PlayerGui
  5. Backpack = Player.Backpack
  6. Torso = Character.Torso
  7. Head = Character.Head
  8. Humanoid = Character.Humanoid
  9. LeftArm = Character["Left Arm"]
  10. LeftLeg = Character["Left Leg"]
  11. RightArm = Character["Right Arm"]
  12. RightLeg = Character["Right Leg"]
  13. PlayerGui = Player.PlayerGui
  14. Backpack = Player.Backpack
  15. Torso = Character.Torso
  16. Head = Character.Head
  17. Humanoid = Character.Humanoid
  18. LeftArm = Character["Left Arm"]
  19. LeftLeg = Character["Left Leg"]
  20. RightArm = Character["Right Arm"]
  21. RightLeg = Character["Right Leg"]
  22. LS = Torso["Left Shoulder"]
  23. RS = Torso["Right Shoulder"]
  24. Neck = Torso.Neck
  25. attacktype = 1
  26. vt = Vector3.new
  27. cf = CFrame.new
  28. euler = CFrame.fromEulerAnglesXYZ
  29. angles = CFrame.Angles
  30. necko = cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  31. necko2 = cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  32. LHC0 = cf(-1, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  33. LHC1 = cf(-0.5, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  34. RHC0 = cf(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  35. RHC1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  36. RootPart = Character.HumanoidRootPart
  37. RootJoint = RootPart.RootJoint
  38. RootCF = euler(-1.57, 0, 3.14)
  39. attack = false
  40. equipped = false
  41. local Anim = "Idle"
  42. local Effects = {}
  43. cam = workspace.CurrentCamera
  44. ZTarget = nil
  45. RocketTarget = nil
  46. local RbxUtility = LoadLibrary("RbxUtility")
  47. local Create = RbxUtility.Create
  48. local m = Create("Model"){
  49.     Parent = Character,
  50.     Name = "WeaponModel",
  51. }
  52.  
  53. game:GetService"SoundService".AmbientReverb=9
  54.  
  55. local Moosic=Create"Sound"{
  56.     Looped=true;
  57.     Volume=500;
  58.     Pitch=1;
  59.     Parent=Character;
  60.     SoundId="rbxassetid://488464235";
  61. }
  62. wait()
  63. Moosic:Play()
  64.  
  65. Humanoid.WalkSpeed=35
  66. Humanoid.MaxHealth=math.huge
  67. Humanoid.Health=math.huge
  68. mouse = Player:GetMouse()
  69. RSH = Torso["Right Shoulder"]
  70. LSH = Torso["Left Shoulder"]
  71. RHP = Character.Torso["Right Hip"]
  72. LHP = Character.Torso["Left Hip"]  
  73.  
  74. RSH.Parent = nil
  75. LSH.Parent = nil
  76.  
  77. RHP.Parent = nil
  78. LHP.Parent = nil
  79.  
  80. RW = Create("Weld"){
  81.     Name = "Right Shoulder",
  82.     Part0 = Torso ,
  83.     C0 = cf(1.5, 0.5, 0),
  84.     C1 = cf(0, 0.5, 0),
  85.     Part1 = RightArm ,
  86.     Parent = Torso ,
  87. }
  88.  
  89. LW = Create("Weld"){
  90.     Name = "Left Shoulder",
  91.     Part0 = Torso ,
  92.     C0 = cf(-1.5, 0.5, 0),
  93.     C1 = cf(0, 0.5, 0) ,
  94.     Part1 = LeftArm ,
  95.     Parent = Torso ,
  96. }
  97.  
  98. RH = Create("Weld"){
  99.     Part0 = Torso,
  100.     C0 = cf(0, -1.5, 0), --* euler(1.3, 0, -0.5)
  101.     C1 = cf(-0.5, 0.5, 0) ,
  102.     Part1 = Character["Right Leg"],    
  103.     Parent = Torso,
  104. }
  105.  
  106. LH = Create("Weld"){
  107.     Part0 = Torso,
  108.     C0 = cf(0, -1.5, 0), --* euler(1.3, 0, -0.5)
  109.     C1 = cf(0.5, 0.5, 0) ,
  110.     Part1 = Character["Left Leg"],
  111.     Parent = Torso,
  112. }
  113.  
  114.  
  115.  
  116.     local function weldBetween(a, b)
  117.         local weldd = Instance.new("ManualWeld")
  118.         weldd.Part0 = a
  119.         weldd.Part1 = b
  120.         weldd.C0 = CFrame.new()
  121.         weldd.C1 = b.CFrame:inverse() * a.CFrame
  122.         weldd.Parent = a
  123.         return weldd
  124.     end
  125.    
  126.     it=Instance.new
  127.    
  128.     function nooutline(part)
  129.         part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
  130.     end
  131.    
  132.     function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
  133.         local fp=it("Part")
  134.         fp.formFactor=formfactor
  135.         fp.Parent=parent
  136.         fp.Reflectance=reflectance
  137.         fp.Transparency=transparency
  138.         fp.CanCollide=false
  139.         fp.Locked=true
  140.         fp.BrickColor=BrickColor.new(tostring(brickcolor))
  141.         fp.Name=name
  142.         fp.Size=size
  143.         fp.Position=Character.Torso.Position
  144.         nooutline(fp)
  145.         fp.Material=material
  146.         fp:BreakJoints()
  147.         return fp
  148.     end
  149.    
  150.     function mesh(Mesh,part,meshtype,meshid,offset,scale)
  151.         local mesh=it(Mesh)
  152.         mesh.Parent=part
  153.         if Mesh=="SpecialMesh" then
  154.             mesh.MeshType=meshtype
  155.             mesh.MeshId=meshid
  156.         end
  157.         mesh.Offset=offset
  158.         mesh.Scale=scale
  159.         return mesh
  160.     end
  161.    
  162.     function weld(parent,part0,part1,c0,c1)
  163.         local weld=it("Weld")
  164.         weld.Parent=parent
  165.         weld.Part0=part0
  166.         weld.Part1=part1
  167.         weld.C0=c0
  168.         weld.C1=c1
  169.         return weld
  170.     end
  171.  
  172.     function clerp(a, b, t)
  173.  
  174.     local function QuaternionFromCFrame(cf)
  175.         local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  176.         local trace = m00 + m11 + m22
  177.         if trace > 0 then
  178.             local s = math.sqrt(1 + trace)
  179.             local recip = 0.5 / s
  180.             return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  181.         else
  182.             local i = 0
  183.             if m11 > m00 then
  184.                 i = 1
  185.             end
  186.             if m22 > (i == 0 and m00 or m11) then
  187.                 i = 2
  188.             end
  189.             if i == 0 then
  190.                 local s = math.sqrt(m00 - m11 - m22 + 1)
  191.                 local recip = 0.5 / s
  192.                 return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  193.             elseif i == 1 then
  194.                 local s = math.sqrt(m11 - m22 - m00 + 1)
  195.                 local recip = 0.5 / s
  196.                 return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  197.             elseif i == 2 then
  198.                 local s = math.sqrt(m22 - m00 - m11 + 1)
  199.                 local recip = 0.5 / s
  200.                 return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  201.             end
  202.         end
  203.     end
  204.          
  205.     local function QuaternionToCFrame(px, py, pz, x, y, z, w)
  206.         local xs, ys, zs = x + x, y + y, z + z
  207.         local wx, wy, wz = w * xs, w * ys, w * zs
  208.         local xx = x * xs
  209.         local xy = x * ys
  210.         local xz = x * zs
  211.         local yy = y * ys
  212.         local yz = y * zs
  213.         local zz = z * zs
  214.         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))
  215.     end
  216.          
  217.     local function QuaternionSlerp(a, b, t)
  218.         local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  219.         local startInterp, finishInterp;
  220.         if cosTheta >= 0.0001 then
  221.             if (1 - cosTheta) > 0.0001 then
  222.                 local theta = math.acos(cosTheta)
  223.                 local invSinTheta = 1 / math.sin(theta)
  224.                 startInterp = math.sin((1 - t) * theta) * invSinTheta
  225.                 finishInterp = math.sin(t * theta) * invSinTheta
  226.             else
  227.                 startInterp = 1 - t
  228.                 finishInterp = t
  229.             end
  230.         else
  231.             if (1 + cosTheta) > 0.0001 then
  232.                 local theta = math.acos(-cosTheta)
  233.                 local invSinTheta = 1 / math.sin(theta)
  234.                 startInterp = math.sin((t - 1) * theta) * invSinTheta
  235.                 finishInterp = math.sin(t * theta) * invSinTheta
  236.             else
  237.                 startInterp = t - 1
  238.                 finishInterp = t
  239.             end
  240.         end
  241.         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
  242.     end
  243.  
  244.     local qa = {
  245.         QuaternionFromCFrame(a)
  246.     }
  247.     local qb = {
  248.         QuaternionFromCFrame(b)
  249.     }
  250.     local ax, ay, az = a.x, a.y, a.z
  251.     local bx, by, bz = b.x, b.y, b.z
  252.  
  253.     local _t = 1 - t
  254.     return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  255. end
  256.  
  257. function rayCast(Pos, Dir, Max, Ignore)
  258.     return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  259. end
  260.  
  261.  
  262. handle=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Maroon","Handle",Vector3.new(1.20000005, 0.400000006, 0.400000036))
  263. handleweld=weld(m,Character["Right Arm"],handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0857429504, -0.878588676, 0.0960168839, -0.0703301653, -0.277553886, -0.958131194, -0.010239129, -0.960258484, 0.278921396, -0.997471154, 0.0294269472, 0.0646932945))
  264. mesh("BlockMesh",handle,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.999000013))
  265. Crystal=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Crystal",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  266. Crystalweld=weld(m,handle,Crystal,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.687158585, -0.287097931, -2.11056709, 0.49999845, -0.866024017, -1.56462193e-007, 3.7252903e-008, -1.43423676e-007, -0.999999464, 0.866023779, 0.499999493, 9.68575478e-008))
  267. mesh("SpecialMesh",Crystal,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=11294911",Vector3.new(0, 0, 0),Vector3.new(0.150000006, 0.400000006, 0.150000006))
  268. Crystal=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Crystal",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  269. Crystalweld=weld(m,handle,Crystal,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.04151154, -0.287102699, 0.993821502, -0.965923905, 0.258818567, -6.70552254e-008, -1.93715096e-007, -2.51457095e-007, -0.999999523, -0.258818805, -0.965924561, -1.03958882e-007))
  270. mesh("SpecialMesh",Crystal,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=11294911",Vector3.new(0, 0, 0),Vector3.new(0.150000006, 0.400000006, 0.150000006))
  271. Crystal=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Crystal",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  272. Crystalweld=weld(m,handle,Crystal,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.59382164, -0.287101746, 0.971500397, 0.258818716, 0.965924382, 8.45175236e-008, -8.94069672e-008, -1.35973096e-007, -0.999999344, -0.965923905, 0.258818567, -9.68575478e-008))
  273. mesh("SpecialMesh",Crystal,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=11294911",Vector3.new(0, 0, 0),Vector3.new(0.150000006, 0.400000006, 0.150000006))
  274. Crystal=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Crystal",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  275. Crystalweld=weld(m,handle,Crystal,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.993816733, -0.287100792, 0.971496582, 0.258818716, 0.965924382, 8.45175236e-008, -8.94069672e-008, -1.35973096e-007, -0.999999344, -0.965923905, 0.258818567, -9.68575478e-008))
  276. mesh("SpecialMesh",Crystal,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=11294911",Vector3.new(0, 0, 0),Vector3.new(0.150000006, 0.400000006, 0.150000006))
  277. Crystal=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Crystal",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  278. Crystalweld=weld(m,handle,Crystal,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.11055374, -0.287097931, 0.617147446, -0.866023839, -0.499999404, -1.08033419e-007, 5.21540642e-008, -3.1478703e-007, -0.999999583, 0.49999845, -0.866024017, -1.11758709e-007))
  279. mesh("SpecialMesh",Crystal,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=11294911",Vector3.new(0, 0, 0),Vector3.new(0.150000006, 0.400000006, 0.150000006))
  280. Crystal=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Crystal",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  281. Crystalweld=weld(m,handle,Crystal,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.61631775, -0.28289032, 0.192899704, 0.866023779, 0.499999493, 5.21540642e-008, 1.04308128e-007, 1.86264515e-009, 0.999999285, 0.499998569, -0.866023958, 8.94069672e-008))
  282. mesh("SpecialMesh",Crystal,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=11294911",Vector3.new(0, 0, 0),Vector3.new(0.150000006, 0.400000006, 0.150000006))
  283. Crystal=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Crystal",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  284. Crystalweld=weld(m,handle,Crystal,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.66377163, -0.287101746, -1.04151154, -0.258818716, -0.965924382, -8.45175236e-008, -1.15483999e-007, -8.94069672e-008, -0.999999225, 0.965923905, -0.258818567, 9.68575478e-008))
  285. mesh("SpecialMesh",Crystal,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=11294911",Vector3.new(0, 0, 0),Vector3.new(0.150000006, 0.400000006, 0.150000006))
  286. Crystal=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Crystal",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  287. Crystalweld=weld(m,handle,Crystal,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.68631744, -0.287097931, 0.192905426, -0.866023839, -0.499999404, -1.08033419e-007, 5.21540642e-008, -3.1478703e-007, -0.999999583, 0.49999845, -0.866024017, -1.11758709e-007))
  288. mesh("SpecialMesh",Crystal,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=11294911",Vector3.new(0, 0, 0),Vector3.new(0.150000006, 0.400000006, 0.150000006))
  289. Crystal=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Crystal",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  290. Crystalweld=weld(m,handle,Crystal,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.971496582, -0.287100792, -1.06380117, 0.965923905, -0.258818567, 9.68575478e-008, -9.31322575e-008, -2.73808837e-007, -0.999999464, 0.258818805, 0.965924561, 1.03958882e-007))
  291. mesh("SpecialMesh",Crystal,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=11294911",Vector3.new(0, 0, 0),Vector3.new(0.150000006, 0.400000006, 0.150000006))
  292. Crystal=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Crystal",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  293. Crystalweld=weld(m,handle,Crystal,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.61632347, -0.287099838, -0.262899399, 0.866023839, 0.499999404, 1.08033419e-007, 3.7252903e-009, -9.12696123e-008, -0.999999583, -0.49999845, 0.866024017, 1.11758709e-007))
  294. mesh("SpecialMesh",Crystal,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=11294911",Vector3.new(0, 0, 0),Vector3.new(0.150000006, 0.400000006, 0.150000006))
  295. Crystal=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Crystal",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  296. Crystalweld=weld(m,handle,Crystal,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.262897491, -0.287097931, -1.68632126, 0.49999845, -0.866024017, -1.56462193e-007, 3.7252903e-008, -1.43423676e-007, -0.999999464, 0.866023779, 0.499999493, 9.68575478e-008))
  297. mesh("SpecialMesh",Crystal,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=11294911",Vector3.new(0, 0, 0),Vector3.new(0.150000006, 0.400000006, 0.150000006))
  298. Crystal=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Crystal",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  299. Crystalweld=weld(m,handle,Crystal,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.192897797, -0.287099838, 1.61631966, -0.49999845, 0.866024017, 1.56462193e-007, -1.04308128e-007, -1.86264515e-009, -0.999999285, -0.866023779, -0.499999493, -9.68575478e-008))
  300. mesh("SpecialMesh",Crystal,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=11294911",Vector3.new(0, 0, 0),Vector3.new(0.150000006, 0.400000006, 0.150000006))
  301. Crystal=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Crystal",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  302. Crystalweld=weld(m,handle,Crystal,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.06380343, -0.287103653, -1.04151154, -0.258818716, -0.965924382, -8.45175236e-008, -1.15483999e-007, -8.94069672e-008, -0.999999225, 0.965923905, -0.258818567, 9.68575478e-008))
  303. mesh("SpecialMesh",Crystal,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=11294911",Vector3.new(0, 0, 0),Vector3.new(0.150000006, 0.400000006, 0.150000006))
  304. Crystal=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Crystal",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  305. Crystalweld=weld(m,handle,Crystal,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.993815303, -0.282891273, -1.04150391, 0.258818895, 0.965924382, -3.41096893e-008, 1.04308128e-007, 1.86264515e-009, 0.999999285, 0.965923905, -0.258818477, 1.63912773e-007))
  306. mesh("SpecialMesh",Crystal,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=11294911",Vector3.new(0, 0, 0),Vector3.new(0.150000006, 0.400000006, 0.150000006))
  307. Crystal=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Crystal",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  308. Crystalweld=weld(m,handle,Crystal,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.617147446, -0.287099838, 2.04055977, -0.49999845, 0.866024017, 1.56462193e-007, -1.04308128e-007, -1.86264515e-009, -0.999999285, -0.866023779, -0.499999493, -9.68575478e-008))
  309. mesh("SpecialMesh",Crystal,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=11294911",Vector3.new(0, 0, 0),Vector3.new(0.150000006, 0.400000006, 0.150000006))
  310. Crystal=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Crystal",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  311. Crystalweld=weld(m,handle,Crystal,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.04056358, -0.287099838, -0.687137604, 0.866023839, 0.499999404, 1.08033419e-007, 3.7252903e-009, -9.12696123e-008, -0.999999583, -0.49999845, 0.866024017, 1.11758709e-007))
  312. mesh("SpecialMesh",Crystal,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=11294911",Vector3.new(0, 0, 0),Vector3.new(0.150000006, 0.400000006, 0.150000006))
  313. Crystal=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Crystal",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  314. Crystalweld=weld(m,handle,Crystal,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.687137604, -0.282889366, 2.04056549, 0.499998569, -0.866023958, 8.94069672e-008, -2.08616257e-007, -4.28408384e-008, 0.999999404, -0.866023839, -0.499999404, -1.08033419e-007))
  315. mesh("SpecialMesh",Crystal,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=11294911",Vector3.new(0, 0, 0),Vector3.new(0.150000006, 0.400000006, 0.150000006))
  316. Crystal=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Crystal",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  317. Crystalweld=weld(m,handle,Crystal,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.06380033, -0.28289032, 0.971492767, -0.258818895, -0.965924382, 3.41096893e-008, 1.04308128e-007, 1.86264515e-009, 0.999999285, -0.965923905, 0.258818477, -1.63912773e-007))
  318. mesh("SpecialMesh",Crystal,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=11294911",Vector3.new(0, 0, 0),Vector3.new(0.150000006, 0.400000006, 0.150000006))
  319. Crystal=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Crystal",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  320. Crystalweld=weld(m,handle,Crystal,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.617145538, -0.282893181, -2.11055374, -0.499998569, 0.866023958, -8.94069672e-008, -1.78813934e-007, 6.51925802e-008, 0.999999344, 0.866023839, 0.499999404, 1.08033419e-007))
  321. mesh("SpecialMesh",Crystal,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=11294911",Vector3.new(0, 0, 0),Vector3.new(0.150000006, 0.400000006, 0.150000006))
  322. Crystal=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Crystal",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  323. Crystalweld=weld(m,handle,Crystal,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.04056549, -0.28289032, 0.617149353, 0.866023779, 0.499999493, 5.21540642e-008, 1.04308128e-007, 1.86264515e-009, 0.999999285, 0.499998569, -0.866023958, 8.94069672e-008))
  324. mesh("SpecialMesh",Crystal,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=11294911",Vector3.new(0, 0, 0),Vector3.new(0.150000006, 0.400000006, 0.150000006))
  325. Crystal=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Crystal",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  326. Crystalweld=weld(m,handle,Crystal,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.971496582, -0.28289032, 0.993819714, 0.965923905, -0.258818567, 9.68575478e-008, -7.07805157e-008, -9.31322575e-008, 0.999999285, -0.258818686, -0.965924442, 3.84170562e-009))
  327. mesh("SpecialMesh",Crystal,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=11294911",Vector3.new(0, 0, 0),Vector3.new(0.150000006, 0.400000006, 0.150000006))
  328. Crystal=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Crystal",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  329. Crystalweld=weld(m,handle,Crystal,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.04150772, -0.282892227, -1.06380033, -0.965923905, 0.258818567, -9.68575478e-008, -7.07805157e-008, -9.31322575e-008, 0.999999285, 0.258818686, 0.965924442, -3.84170562e-009))
  330. mesh("SpecialMesh",Crystal,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=11294911",Vector3.new(0, 0, 0),Vector3.new(0.150000006, 0.400000006, 0.150000006))
  331. Crystal=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Crystal",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  332. Crystalweld=weld(m,handle,Crystal,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.971496582, -0.287101746, -1.66377091, 0.965923905, -0.258818567, 9.68575478e-008, -9.31322575e-008, -2.73808837e-007, -0.999999464, 0.258818805, 0.965924561, 1.03958882e-007))
  333. mesh("SpecialMesh",Crystal,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=11294911",Vector3.new(0, 0, 0),Vector3.new(0.150000006, 0.400000006, 0.150000006))
  334. Crystal=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Crystal",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  335. Crystalweld=weld(m,handle,Crystal,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.04151535, -0.287103653, 1.59382272, -0.965923905, 0.258818567, -6.70552254e-008, -1.93715096e-007, -2.51457095e-007, -0.999999523, -0.258818805, -0.965924561, -1.03958882e-007))
  336. mesh("SpecialMesh",Crystal,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=11294911",Vector3.new(0, 0, 0),Vector3.new(0.150000006, 0.400000006, 0.150000006))
  337. Crystal=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Crystal",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  338. Crystalweld=weld(m,handle,Crystal,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.192901611, -0.282891273, -1.68631554, -0.499998569, 0.866023958, -8.94069672e-008, -1.78813934e-007, 6.51925802e-008, 0.999999344, 0.866023839, 0.499999404, 1.08033419e-007))
  339. mesh("SpecialMesh",Crystal,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=11294911",Vector3.new(0, 0, 0),Vector3.new(0.150000006, 0.400000006, 0.150000006))
  340. Crystal=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Crystal",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  341. Crystalweld=weld(m,handle,Crystal,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.262895584, -0.282888412, 1.61632156, 0.499998569, -0.866023958, 8.94069672e-008, -2.08616257e-007, -4.28408384e-008, 0.999999404, -0.866023839, -0.499999404, -1.08033419e-007))
  342. mesh("SpecialMesh",Crystal,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=11294911",Vector3.new(0, 0, 0),Vector3.new(0.150000006, 0.400000006, 0.150000006))
  343. Crystal=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Crystal",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  344. Crystalweld=weld(m,handle,Crystal,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.59376526, -0.282891273, -1.04151154, 0.258818895, 0.965924382, -3.41096893e-008, 1.04308128e-007, 1.86264515e-009, 0.999999285, 0.965923905, -0.258818477, 1.63912773e-007))
  345. mesh("SpecialMesh",Crystal,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=11294911",Vector3.new(0, 0, 0),Vector3.new(0.150000006, 0.400000006, 0.150000006))
  346. Crystal=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Crystal",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  347. Crystalweld=weld(m,handle,Crystal,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.66376734, -0.282889366, 0.971496582, -0.258818895, -0.965924382, 3.41096893e-008, 1.04308128e-007, 1.86264515e-009, 0.999999285, -0.965923905, 0.258818477, -1.63912773e-007))
  348. mesh("SpecialMesh",Crystal,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=11294911",Vector3.new(0, 0, 0),Vector3.new(0.150000006, 0.400000006, 0.150000006))
  349. Crystal=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Crystal",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  350. Crystalweld=weld(m,handle,Crystal,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.04151535, -0.282891273, -1.66377103, -0.965923905, 0.258818567, -9.68575478e-008, -7.07805157e-008, -9.31322575e-008, 0.999999285, 0.258818686, 0.965924442, -3.84170562e-009))
  351. mesh("SpecialMesh",Crystal,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=11294911",Vector3.new(0, 0, 0),Vector3.new(0.150000006, 0.400000006, 0.150000006))
  352. Crystal=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Crystal",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  353. Crystalweld=weld(m,handle,Crystal,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.971500397, -0.282891273, 1.59382224, 0.965923905, -0.258818567, 9.68575478e-008, -7.07805157e-008, -9.31322575e-008, 0.999999285, -0.258818686, -0.965924442, 3.84170562e-009))
  354. mesh("SpecialMesh",Crystal,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=11294911",Vector3.new(0, 0, 0),Vector3.new(0.150000006, 0.400000006, 0.150000006))
  355. Crystal=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Crystal",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  356. Crystalweld=weld(m,handle,Crystal,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.11057281, -0.282889366, -0.687145233, -0.866023779, -0.499999493, -5.21540642e-008, -5.96046448e-008, 1.11758709e-008, 0.999999285, -0.499998569, 0.866023958, -8.94069672e-008))
  357. mesh("SpecialMesh",Crystal,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=11294911",Vector3.new(0, 0, 0),Vector3.new(0.150000006, 0.400000006, 0.150000006))
  358. Crystal=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Crystal",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  359. Crystalweld=weld(m,handle,Crystal,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.68632507, -0.282889366, -0.262893677, -0.866023779, -0.499999493, -5.21540642e-008, -5.96046448e-008, 1.11758709e-008, 0.999999285, -0.499998569, 0.866023958, -8.94069672e-008))
  360. mesh("SpecialMesh",Crystal,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=11294911",Vector3.new(0, 0, 0),Vector3.new(0.150000006, 0.400000006, 0.150000006))
  361. Gun=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Black","Gun",Vector3.new(0.400000006, 0.600000024, 0.400000006))
  362. Gunweld=weld(m,handle,Gun,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.81469727e-006, -1.9319849, 0.928161621, 8.56816769e-008, 9.49949026e-008, 0.999999821, 0.499999434, 0.866024733, 8.1025064e-008, -0.86602354, 0.499999166, -2.98023224e-008))
  363. mesh("SpecialMesh",Gun,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.5, 1, 1))
  364. Gun=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Bright red","Gun",Vector3.new(0.400000006, 1, 0.800000012))
  365. Gunweld=weld(m,handle,Gun,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.90734863e-006, -2.22590351, -0.896587372, -1.04308128e-007, -1.86264515e-009, -0.999999285, 0.258818805, 0.965924203, 7.96280801e-008, 0.965923905, -0.258818567, 7.4505806e-008))
  366. mesh("SpecialMesh",Gun,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.800000012, 1, 1))
  367. Gun=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Black","Gun",Vector3.new(0.400000006, 0.600000024, 0.400000006))
  368. Gunweld=weld(m,handle,Gun,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.86102295e-006, -1.75995064, 0.596515656, 8.56816769e-008, 9.49949026e-008, 0.999999821, 0.707106948, 0.707107246, 9.87201929e-008, -0.707106352, 0.70710659, -1.11758709e-008))
  369. mesh("SpecialMesh",Gun,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.5, 1, 1))
  370. Gun=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Bright red","Gun",Vector3.new(0.400000006, 0.800000012, 1.19999993))
  371. Gunweld=weld(m,handle,Gun,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(9.53674316e-007, -0.896579742, -1.12592745, 8.56816769e-008, 9.49949026e-008, 0.999999821, 0.965923905, -0.258818567, 6.70552254e-008, 0.258818775, 0.965924442, 9.37143341e-008))
  372. mesh("BlockMesh",Gun,"","",Vector3.new(0, 0, 0),Vector3.new(0.800000012, 1, 1))
  373. Gun=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Black","Gun",Vector3.new(0.400000006, 0.600000024, 0.400000006))
  374. Gunweld=weld(m,handle,Gun,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.90734863e-006, -2.02588797, 1.39656448, 8.56816769e-008, 9.49949026e-008, 0.999999821, 0.258818775, 0.965924442, 9.37143341e-008, -0.965923905, 0.258818567, -6.70552254e-008))
  375. mesh("SpecialMesh",Gun,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.5, 1, 1))
  376. Gun=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Gun",Vector3.new(0.400000006, 0.800000012, 0.400000006))
  377. Gunweld=weld(m,handle,Gun,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-4.76837158e-006, -1.82588005, -0.716571808, -1.04308128e-007, -1.86264515e-009, -0.999999285, 0.258818805, 0.965924203, 7.96280801e-008, 0.965923905, -0.258818567, 7.4505806e-008))
  378. mesh("SpecialMesh",Gun,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.810000002, 1, 1))
  379. Gun=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Gun",Vector3.new(0.400000006, 0.800000012, 0.400000006))
  380. Gunweld=weld(m,handle,Gun,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.86102295e-006, 1.02589035, 0.716567993, -8.56816769e-008, -9.49949026e-008, -0.999999821, -0.258818775, -0.965924442, -9.37143341e-008, -0.965923905, 0.258818567, -6.70552254e-008))
  381. mesh("SpecialMesh",Gun,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.810000002, 1, 1))
  382. Gun=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Maroon","Gun",Vector3.new(0.399999976, 3.00000024, 0.399999976))
  383. Gunweld=weld(m,handle,Gun,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.996562958, -1.82587898, 3.81469727e-006, 0.965923905, -0.258818567, 6.70552254e-008, 0.258818775, 0.965924442, 9.37143341e-008, 8.56816769e-008, 9.49949026e-008, 0.999999821))
  384. mesh("CylinderMesh",Gun,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  385. Gun=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Gun",Vector3.new(0.399999976, 0.200000003, 0.399999976))
  386. Gunweld=weld(m,handle,Gun,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.996566772, -3.2259016, 6.67572021e-006, 0.965923905, -0.258818567, 6.70552254e-008, 0.258818775, 0.965924442, 9.37143341e-008, 8.56816769e-008, 9.49949026e-008, 0.999999821))
  387. mesh("CylinderMesh",Gun,"","",Vector3.new(0, 0, 0),Vector3.new(0.899999976, 1.00199997, 0.899999976))
  388. Gun=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Really red","Gun",Vector3.new(0.400000006, 0.600000024, 0.400000006))
  389. Gunweld=weld(m,handle,Gun,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.90734863e-006, 1.12592936, 0.736579895, -8.56816769e-008, -9.49949026e-008, -0.999999821, -0.258818775, -0.965924442, -9.37143341e-008, -0.965923905, 0.258818567, -6.70552254e-008))
  390. mesh("SpecialMesh",Gun,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.819999993, 1, 0.800000012))
  391. Gun=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Gun",Vector3.new(0.400000006, 1.4000001, 0.200000003))
  392. Gunweld=weld(m,handle,Gun,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.86102295e-006, -1.82586241, 1.1965332, 1.86264515e-008, -5.58793545e-009, 0.999995351, 0.258816361, 0.965915561, 7.48550519e-008, -0.965919554, 0.258817315, -7.4505806e-009))
  393. mesh("SpecialMesh",Gun,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.810000002, 1, 1))
  394. Gun=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Really red","Gun",Vector3.new(0.400000006, 1.4000001, 0.200000003))
  395. Gunweld=weld(m,handle,Gun,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(4.76837158e-006, -1.6858511, 1.1865654, 1.86264515e-008, -5.58793545e-009, 0.999995351, 0.258816361, 0.965915561, 7.48550519e-008, -0.965919554, 0.258817315, -7.4505806e-009))
  396. mesh("SpecialMesh",Gun,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.819999993, 0.699999988, 0.75))
  397. Gun=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Really red","Gun",Vector3.new(0.400000006, 0.600000024, 0.200000003))
  398. Gunweld=weld(m,handle,Gun,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(9.53674316e-007, 0.955905557, -1.16654968, 1.86264515e-008, -5.58793545e-009, 0.999995351, -0.258816361, -0.965915561, -7.48550519e-008, 0.965919256, -0.258817345, 7.4505806e-008))
  399. mesh("SpecialMesh",Gun,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.819999993, 0.800000012, 0.949999988))
  400. Gun=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Gun",Vector3.new(0.400000006, 0.600000024, 0.200000003))
  401. Gunweld=weld(m,handle,Gun,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.81469727e-006, 0.82590121, -1.19653702, 1.86264515e-008, -5.58793545e-009, 0.999995351, -0.258816361, -0.965915561, -7.48550519e-008, 0.965919256, -0.258817345, 7.4505806e-008))
  402. mesh("SpecialMesh",Gun,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.810000002, 1, 1.00999999))
  403. Gun=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Really red","Gun",Vector3.new(0.400000006, 0.600000024, 0.400000006))
  404. Gunweld=weld(m,handle,Gun,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.86102295e-006, -1.72590566, -0.736579895, -1.04308128e-007, -1.86264515e-009, -0.999999285, 0.258818805, 0.965924203, 7.96280801e-008, 0.965923905, -0.258818567, 7.4505806e-008))
  405. mesh("SpecialMesh",Gun,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.819999993, 1, 0.800000012))
  406. Gun=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Really red","Gun",Vector3.new(0.400000006, 1, 0.800000012))
  407. Gunweld=weld(m,handle,Gun,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.81469727e-006, -2.82593822, -0.856575012, -1.04308128e-007, -1.86264515e-009, -0.999999285, 0.258818805, 0.965924203, 7.96280801e-008, 0.965923905, -0.258818567, 7.4505806e-008))
  408. mesh("SpecialMesh",Gun,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.790000021, 1, 1))
  409. Gun=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0.5,0,"Really red","Gun",Vector3.new(0.400000006, 0.800000012, 2))
  410. Gunweld=weld(m,handle,Gun,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.81469727e-006, -0.856575012, -1.32594204, 8.56816769e-008, 9.49949026e-008, 0.999999821, 0.965923905, -0.258818567, 6.70552254e-008, 0.258818775, 0.965924442, 9.37143341e-008))
  411. mesh("BlockMesh",Gun,"","",Vector3.new(0, 0, 0),Vector3.new(0.790000021, 1, 1))
  412. Handle1=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Maroon","Handle1",Vector3.new(0.400000006, 1, 0.99999994))
  413. Handle1weld=weld(m,handle,Handle1,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.81469727e-006, -0.885490417, 0.449039459, 8.56816769e-008, 9.49949026e-008, 0.999999821, 0.866023958, 0.499999344, 6.70552254e-008, -0.499998569, 0.866024256, 4.09781933e-008))
  414. mesh("BlockMesh",Handle1,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  415. Handle2=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Really red","Handle2",Vector3.new(0.400000006, 1, 0.99999994))
  416. Handle2weld=weld(m,handle,Handle2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.81469727e-006, -0.885490417, 0.449039459, 8.56816769e-008, 9.49949026e-008, 0.999999821, 0.866023958, 0.499999344, 6.70552254e-008, -0.499998569, 0.866024256, 4.09781933e-008))
  417. mesh("BlockMesh",Handle2,"","",Vector3.new(0, 0, 0),Vector3.new(0.600000024, 1.01999998, 1.01999998))
  418. Handle2=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Handle2",Vector3.new(1.20000005, 0.400000006, 0.400000036))
  419. Handle2weld=weld(m,handle,Handle2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0, 0, 0.999997854, 3.57627869e-007, 8.56816769e-008, 3.57627869e-007, 0.999998569, 9.49949026e-008, 8.56816769e-008, 9.49949026e-008, 0.999999821))
  420. mesh("BlockMesh",Handle2,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1.00999999, 0.800000012))
  421. Handle2=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Really red","Handle2",Vector3.new(1.20000005, 0.400000006, 0.400000036))
  422. Handle2weld=weld(m,handle,Handle2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, 0, 0, 0.999997854, 3.57627869e-007, 8.56816769e-008, 3.57627869e-007, 0.999998569, 9.49949026e-008, 8.56816769e-008, 9.49949026e-008, 0.999999821))
  423. mesh("BlockMesh",Handle2,"","",Vector3.new(0, 0, 0),Vector3.new(1.00999999, 1.01999998, 0.600000024))
  424. Handle2=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Handle2",Vector3.new(0.400000006, 1, 0.99999994))
  425. Handle2weld=weld(m,handle,Handle2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.81469727e-006, -0.885490417, 0.449039459, 8.56816769e-008, 9.49949026e-008, 0.999999821, 0.866023958, 0.499999344, 6.70552254e-008, -0.499998569, 0.866024256, 4.09781933e-008))
  426. mesh("BlockMesh",Handle2,"","",Vector3.new(0, 0, 0),Vector3.new(0.800000012, 1.00999999, 1.00999999))
  427. Handle2=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Handle2",Vector3.new(0.400000006, 1, 0.99999994))
  428. Handle2weld=weld(m,handle,Handle2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.81469727e-006, -0.885490417, 0.449039459, 8.56816769e-008, 9.49949026e-008, 0.999999821, 0.866023958, 0.499999344, 6.70552254e-008, -0.499998569, 0.866024256, 4.09781933e-008))
  429. mesh("BlockMesh",Handle2,"","",Vector3.new(0, 0, 0),Vector3.new(1.00999999, 0.800000012, 0.800000012))
  430. Handle2=part(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,"Really red","Handle2",Vector3.new(0.400000006, 1, 0.99999994))
  431. Handle2weld=weld(m,handle,Handle2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.81469727e-006, -0.885490417, 0.449039459, 8.56816769e-008, 9.49949026e-008, 0.999999821, 0.866023958, 0.499999344, 6.70552254e-008, -0.499998569, 0.866024256, 4.09781933e-008))
  432. mesh("BlockMesh",Handle2,"","",Vector3.new(0, 0, 0),Vector3.new(1.01999998, 0.699999988, 0.699999988))
  433. Part2=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really red","Part2",Vector3.new(1, 1, 0.399999976))
  434. Part2weld=weld(m,handle,Part2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.496578217, -0.625906885, 3.81469727e-006, 0.965923905, -0.258818567, 6.70552254e-008, 0.258818775, 0.965924442, 9.37143341e-008, 8.56816769e-008, 9.49949026e-008, 0.999999821))
  435. mesh("SpecialMesh",Part2,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=3270017",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  436. Part1=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part1",Vector3.new(1, 1, 0.399999976))
  437. Part1weld=weld(m,handle,Part1,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.496578217, -0.625906885, 3.81469727e-006, 0.965923905, -0.258818567, 6.70552254e-008, 0.258818775, 0.965924442, 9.37143341e-008, 8.56816769e-008, 9.49949026e-008, 0.999999821))
  438. mesh("SpecialMesh",Part1,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=3270017",Vector3.new(0, 0, 0),Vector3.new(0.899999976, 0.899999976, 1))
  439. Wing=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0.30000001192093,"Bright red","Wing",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  440. Wingweld=weld(m,handle,Wing,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0254402161, -1.74765015, -0.797915459, -0.707104862, -0.707106054, -7.63684511e-008, 0.707104802, -0.7071051, 1.11758709e-008, 3.7252903e-008, -2.60770321e-008, 0.999998927))
  441. mesh("SpecialMesh",Wing,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=223377755",Vector3.new(0, 0, 0),Vector3.new(0.5, 0.5, 1.10000002))
  442. Wing=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0.69999998807907,"Crimson","Wing",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  443. Wingweld=weld(m,handle,Wing,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.166862488, -1.99257278, -0.802063942, 0.70710206, 0.707103968, 1.13621354e-007, 0.707100511, -0.707102537, 5.21540642e-008, -1.11758709e-008, 2.79396772e-008, -0.999997079))
  444. mesh("SpecialMesh",Wing,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=223377796",Vector3.new(0, 0, 0),Vector3.new(0.600000024, 0.600000024, 1.11000001))
  445. Wing=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0.69999998807907,"Maroon","Wing",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  446. Wingweld=weld(m,handle,Wing,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.16686058, -1.99258804, -0.79791069, -0.707104862, -0.707106054, -7.63684511e-008, 0.707104802, -0.7071051, 1.11758709e-008, 3.7252903e-008, -2.60770321e-008, 0.999998927))
  447. mesh("SpecialMesh",Wing,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=223377755",Vector3.new(0, 0, 0),Vector3.new(0.600000024, 0.600000024, 1.11000001))
  448. Wing=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0.30000001192093,"Bright red","Wing",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  449. Wingweld=weld(m,handle,Wing,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0254459381, -1.74763489, -0.802108765, 0.70710206, 0.707103968, 1.13621354e-007, 0.707100511, -0.707102537, 5.21540642e-008, -1.11758709e-008, 2.79396772e-008, -0.999997079))
  450. mesh("SpecialMesh",Wing,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=223377796",Vector3.new(0, 0, 0),Vector3.new(0.5, 0.5, 1.10000002))
  451. Barrel=part(Enum.FormFactor.Symmetric,m,Enum.Material.Plastic,0,1,"Medium stone grey","Barrel",Vector3.new(1, 1, 1))
  452. Barrelweld=weld(m,handle,Barrel,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0811567307, -0.671264648, 3.21516037, -0.0703301728, -0.0102390982, -0.997471154, 0.958131015, -0.278921306, -0.0646932945, -0.277553827, -0.960258424, 0.0294269156))
  453.  
  454.  
  455. function swait(num)
  456.     if num ~= nil and num > 0 then
  457.         return game:service'RunService'.RenderStepped:wait(num)
  458.     else
  459.         return game:service'RunService'.RenderStepped:wait(0)
  460.     end
  461. end
  462.  
  463. local sine=0
  464. local change=1
  465. local val=0
  466. local idle=0
  467. local donum=0
  468. local handidle=false
  469.  
  470. local ActiveAnim="Idle"
  471.  
  472. function ChargeEffect(part, x1, y1, z1, x2, y2, z2, x3, y3, z3, color)
  473.     local S = Create("Part"){
  474.     Material = "SmoothPlastic",
  475.     Name = "Effect",
  476.     formFactor = 0,
  477.     Size = vt(x1, y1, z1),
  478.     BrickColor = color,
  479.     Reflectance = 0,
  480.     TopSurface = 0,
  481.     BottomSurface = 0,
  482.     Transparency = 0,
  483.     Anchored = false,
  484.     CanCollide = false,
  485.     Material = "Neon",
  486.     CFrame = part.CFrame * cf(x2, y2, z2) * euler(x3, y3, z3),
  487.     Parent = m,
  488.     }
  489.     local msh1 = Create("SpecialMesh"){
  490.     Scale = vt(0.5, 0.5, 0.5) ,
  491.     MeshType = "Sphere",
  492.     Parent = S,
  493.     }
  494.     coroutine.resume(coroutine.create(function(Part, CF)
  495.         local f = Instance.new("BodyPosition")
  496.         f.P = 800
  497.         f.D = 100
  498.         f.maxForce = vt(math.huge, math.huge, math.huge)
  499.         f.position = part.Position
  500.         f.Parent = Part
  501.         for i = 0, 1, 0.1 do
  502.             wait()
  503.             Part.Transparency = Part.Transparency + 0.1
  504.         end
  505.         Part.Parent = nil
  506.     end), S, S.CFrame)
  507. end
  508.  
  509.  
  510. local Aiming=false
  511. local Shoot=false
  512. local SpreadShot=false
  513. local MutliShot=false
  514. local ChargeShot=false
  515. local MirrorShot=false
  516. function Grenade()
  517.     local g=Create"Part"{
  518.         Parent=workspace;
  519.         Shape="Ball";
  520.         Size=Vector3.new(1,1,1);
  521.         Velocity=Vector3.new(0, 10, 0)+RootPart.CFrame.lookVector*150;
  522.         CanCollide=true;
  523.         Anchored=false;
  524.         Locked=true;
  525.         CFrame=RootPart.CFrame;
  526.         Name="Grenade";
  527.         TopSurface=10;
  528.         BottomSurface=10;
  529.     }
  530.     coroutine.resume(coroutine.create(function()
  531.         wait(4)
  532.         local exp=Create"Explosion"{
  533.             Parent=workspace;
  534.             Position=g.Position;
  535.             BlastRadius=10;
  536.             BlastPressure=3;
  537.         }
  538.         g:destroy()
  539.     end))
  540. end
  541.  
  542. Damagefunc = function(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
  543.     if hit.Parent == nil then
  544.         return
  545.     end
  546.     local h = hit.Parent:FindFirstChild("Humanoid")
  547.     for _, v in pairs(hit.Parent:children()) do
  548.         if v:IsA("Humanoid") then
  549.             h = v
  550.         end
  551.     end
  552.     if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
  553.         if hit.Parent:findFirstChild("DebounceHit") ~= nil then
  554.             if hit.Parent.DebounceHit.Value == true then
  555.                 return
  556.             end
  557.         end
  558.         if h.MaxHealth >= math.huge then
  559.             hit:BreakJoints()
  560.         end
  561.         local c = Create("ObjectValue"){
  562.             Name = "creator",
  563.             Value = game:service("Players").LocalPlayer,
  564.             Parent = h,
  565.         }
  566.         game:GetService("Debris"):AddItem(c, .5)
  567.         local Damage = math.random(minim, maxim)
  568.         local blocked = false
  569.         local block = hit.Parent:findFirstChild("Block")
  570.         if block ~= nil then
  571.             if block.className == "IntValue" then
  572.                 if block.Value > 0 then
  573.                     blocked = true
  574.                     block.Value = block.Value - 1
  575.                     print(block.Value)
  576.                 end
  577.             end
  578.         end
  579.         if blocked == false then
  580.             h.Health = h.Health - Damage
  581.             ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Crimson").Color, BrickColor.new("Crimson").Color)
  582.         else
  583.             h.Health = h.Health - (Damage / 2)
  584.             ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, BrickColor.new("Crimson").Color, BrickColor.new("Crimson").Color)
  585.         end
  586.         if Type == "Knockdown" then
  587.             local hum = hit.Parent.Humanoid
  588.             hum.PlatformStand = true
  589.             coroutine.resume(coroutine.create(function(HHumanoid)
  590.                 swait(1)
  591.                 HHumanoid.PlatformStand = false
  592.             end), hum)
  593.             local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
  594.             local bodvol = Create("BodyVelocity"){
  595.                 velocity = angle * knockback,
  596.                 P = 5000,
  597.                 maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  598.                 Parent = hit,
  599.             }
  600.             local rl = Create("BodyAngularVelocity"){
  601.                 P = 3000,
  602.                 maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
  603.                 angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
  604.                 Parent = hit,
  605.             }
  606.             game:GetService("Debris"):AddItem(bodvol, .5)
  607.             game:GetService("Debris"):AddItem(rl, .5)
  608.         elseif Type == "Normal" then
  609.             local vp = Create("BodyVelocity"){
  610.                 P = 500,
  611.                 maxForce = Vector3.new(math.huge, 0, math.huge),
  612.                 velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 2.05,
  613.             }
  614.             if knockback > 0 then
  615.                 vp.Parent = hit.Parent.Torso
  616.             end
  617.             game:GetService("Debris"):AddItem(vp, .5)
  618.         elseif Type=="Obliterate" then
  619.  
  620.         elseif Type == "Up" then
  621.             local bodyVelocity = Create("BodyVelocity"){
  622.                 velocity = vt(0, 20, 0),
  623.                 P = 5000,
  624.                 maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
  625.                 Parent = hit,
  626.             }
  627.             game:GetService("Debris"):AddItem(bodyVelocity, .5)
  628.         elseif Type == "Snare" then
  629.             local bp = Create("BodyPosition"){
  630.                 P = 2000,
  631.                 D = 100,
  632.                 maxForce = Vector3.new(math.huge, math.huge, math.huge),
  633.                 position = hit.Parent.Torso.Position,
  634.                 Parent = hit.Parent.Torso,
  635.             }
  636.             game:GetService("Debris"):AddItem(bp, 1)
  637.         elseif Type == "Freeze" then
  638.             local BodPos = Create("BodyPosition"){
  639.                 P = 50000,
  640.                 D = 1000,
  641.                 maxForce = Vector3.new(math.huge, math.huge, math.huge),
  642.                 position = hit.Parent.Torso.Position,
  643.                 Parent = hit.Parent.Torso,
  644.             }
  645.             local BodGy = Create("BodyGyro") {
  646.                 maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  647.                 P = 20e+003,
  648.                 Parent = hit.Parent.Torso,
  649.                 cframe = hit.Parent.Torso.CFrame,
  650.             }
  651.             hit.Parent.Torso.Anchored = true
  652.             coroutine.resume(coroutine.create(function(Part)
  653.                 swait(1.5)
  654.                 Part.Anchored = false
  655.             end), hit.Parent.Torso)
  656.             game:GetService("Debris"):AddItem(BodPos, 3)
  657.             game:GetService("Debris"):AddItem(BodGy, 3)
  658.         end
  659.         local debounce = Create("BoolValue"){
  660.             Name = "DebounceHit",
  661.             Parent = hit.Parent,
  662.             Value = true,
  663.         }
  664.         game:GetService("Debris"):AddItem(debounce, Delay)
  665.         c = Instance.new("ObjectValue")
  666.         c.Name = "creator"
  667.         c.Value = Player
  668.         c.Parent = h
  669.         game:GetService("Debris"):AddItem(c, .5)
  670.     end
  671. end
  672.  
  673. function ShowDamage(Pos, Text, Time, Color, Color2)
  674.     local Rate = (1 / 30)
  675.     local Pos = (Pos or Vector3.new(0, 0, 0))
  676.     local Text = (Text or "")
  677.     local Time = (Time or 2)
  678.     local Color = (Color or Color3.new(1, 0, 0))
  679.     local EffectPart = part("Custom", workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", vt(0, 0, 0))
  680.     EffectPart.Anchored = true
  681.     local BillboardGui = Create("BillboardGui"){
  682.         Size = UDim2.new(3, 0, 3, 0),
  683.         Adornee = EffectPart,
  684.         Parent = EffectPart,
  685.     }
  686.     local TextLabel = Create("TextLabel"){
  687.         BackgroundTransparency = 1,
  688.         Size = UDim2.new(1, 0, 1, 0),
  689.         Text = Text,
  690.         TextColor3 = Color,
  691.         TextScaled = true,
  692.         Font = Enum.Font.ArialBold,
  693.         FontSize = Enum.FontSize.Size10,
  694.         TextStrokeColor3 = Color2,
  695.         TextStrokeTransparency = 0.8,
  696.         Parent = BillboardGui,
  697.     }
  698.     game.Debris:AddItem(EffectPart, (Time + 0.1))
  699.     EffectPart.Parent = game:GetService("Workspace")
  700.     delay(0, function()
  701.         local Frames = (Time / Rate)
  702.         for Frame = 1, Frames do
  703.             wait(Rate)
  704.             local Percent = (Frame / Frames)
  705.             EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
  706.             TextLabel.TextTransparency = Percent
  707.         end
  708.         if EffectPart and EffectPart.Parent then
  709.             EffectPart:Destroy()
  710.         end
  711.     end)
  712. end
  713.  
  714. function MagnitudeDamage(Hit, Part, magni, mindam, maxdam, knock, Type)
  715.     for _, c in pairs(workspace:children()) do
  716.         local hum = c:findFirstChild("Humanoid")
  717.         if hum ~= nil then
  718.             local head = c:findFirstChild("Torso")
  719.             if head ~= nil then
  720.                 local targ = head.Position - Part.Position
  721.                 local mag = targ.magnitude
  722.                 if mag <= magni and c.Name ~= Player.Name then
  723.                     Damagefunc(Hit, head, mindam, maxdam, knock, Type, RootPart, 0, "rbxassetid://199149186", 1)
  724.                 end
  725.             end
  726.         end
  727.     end
  728. end
  729.  
  730. RocketTarget = RootPart
  731.  
  732. function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  733.     local prt = part(3, Character, "Neon", 0, 0, brickcolor, "Effect", vt(0.2, 0.2, 0.2))
  734.     prt.Anchored = true
  735.     prt.CFrame = cframe
  736.     local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
  737.     game:GetService("Debris"):AddItem(prt, 5)
  738.     Effects[#Effects + 1] = {
  739.         prt,
  740.         "Cylinder",
  741.         delay,
  742.         x3,
  743.         y3,
  744.         z3
  745.     } --part, type, delay
  746. end
  747.  
  748. local lasrs = {}
  749. local lasrspd = 100
  750. local maxTravelDistance = 1000
  751. local maxRebounds = 2
  752.  
  753. function RAY(pos, dir, collidedlist, startpos, endpos, distleft)
  754.     collidedlist = collidedlist or {Character}
  755.     startpos = startpos or pos
  756.     distleft = distleft or dir.unit * dir.magnitude
  757.     endpos = endpos or pos + distleft
  758.     local ray = Ray.new(pos, distleft)
  759.     local hitz,enz = workspace:FindPartOnRayWithIgnoreList(ray, collidedlist)
  760.     if hitz ~= nil and not hitz.Parent:findFirstChild("Humanoid") then
  761.         if hitz.CanCollide == false then
  762.             table.insert(collidedlist, hitz)
  763.             local newpos = enz
  764.             local newdistleft = distleft - (dir.unit * (pos - newpos).magnitude)
  765.             if newdistleft then
  766.                 return RAY(newpos-(dir*0.01), dir, collidedlist, startpos, endpos, newdistleft+(dir*0.01))
  767.             end
  768.         end
  769.     end
  770.     return hitz, enz, ray
  771. end
  772.  
  773. function FindSurface(part, position)
  774.     local obj = part.CFrame:pointToObjectSpace(position)
  775.     local siz = part.Size/2
  776.     for i,v in pairs(Enum.NormalId:GetEnumItems()) do
  777.         local vec = Vector3.FromNormalId(v)
  778.         local wvec = part.CFrame:vectorToWorldSpace(vec)
  779.         local vz = (obj)/(siz*vec)
  780.         if (math.abs(vz.X-1) < 0.001 or math.abs(vz.Y-1) < 0.001 or math.abs(vz.Z-1) < 0.001) then
  781.             return wvec,vec
  782.         end
  783.     end
  784.     if part.className == "WedgePart" then
  785.         local pos = (part.CFrame * CFrame.new(0,part.Size.y/2,part.Size.z/2)).p
  786.         local apos = (part.CFrame * CFrame.Angles(-math.atan2(part.CFrame:pointToObjectSpace(pos).y,part.CFrame:pointToObjectSpace(pos).z),0,0) * CFrame.new(0,1,0)).p
  787.         local wvec,vec = (apos - part.Position).unit, part.CFrame:pointToObjectSpace(apos)
  788.         return wvec,vec
  789.     elseif part.className == "Part" and (part.Shape.Name == "Ball" or part.Shape.Name == "Cylinder") then
  790.         return (position - part.Position).unit, part.CFrame:vectorToObjectSpace((position - part.Position).unit)
  791.     end
  792. end
  793.  
  794. function Reflect(direction, normal)
  795.     return direction - 2 * normal:Dot(direction) * normal
  796. end
  797.  
  798. function ReflectShot(mouse)
  799.     local dir = (mouse.Hit.p - Torso.Position).unit
  800.     local tabl
  801.     local tablnum = 0
  802.     for i, v in pairs(lasrs) do
  803.         if not v[1] then
  804.             tabl = v
  805.             tablnum = i
  806.             break
  807.         end
  808.     end
  809.     if not tabl then
  810.         tablnum = #lasrs + 1
  811.         tabl = {false,nil,nil,0,0,1,{},{},{},{}}
  812.         for i = 1, 2 do
  813.             for j = 1, 3 do
  814.                 local p = Instance.new("Part")
  815.                 p.FormFactor = "Custom"
  816.                 p.CanCollide = false
  817.                 p.Anchored = true
  818.                 p.Locked = true
  819.                 p.BrickColor = BrickColor.new("Crimson")
  820.                 p.TopSurface = 10
  821.                 p.BottomSurface = 10
  822.                 p.RightSurface = 10
  823.                 p.LeftSurface = 10
  824.                 p.FrontSurface = 10
  825.                 p.BackSurface = 10
  826.                 p.Size = Vector3.new(1,1,1)
  827.                 p.Material = "Neon"
  828.                 p.Transparency = i == 1 and 0 or 0.6
  829.                 local mesh = Instance.new("CylinderMesh",p)
  830.                 table.insert(tabl[6+i],p)
  831.                 table.insert(tabl[8+i],mesh)
  832.             end
  833.         end
  834.         table.insert(lasrs,tabl)
  835.     end
  836.     -- isMoving,direction,lastPosition,rebounds,distance,recycleCount,middleLayer,outerLayer
  837.     tabl[4],tabl[5] = 0,0
  838.     tabl[3] = Barrel.Position
  839.     tabl[2] = dir
  840.     tabl[1] = true
  841. end
  842.  
  843. RailgunTarget = RootPart
  844. function ShootSomewhereCharge(asd)
  845.     local MouseLook=cf((asd.Position+mouse.Hit.p)/2,mouse.Hit.p)
  846.     local hit,pos = rayCast(asd.Position,MouseLook.lookVector,999,RailgunTarget.Parent)
  847.     local mag=(asd.Position-pos).magnitude
  848.     CylinderEffect(BrickColor.new("Crimson"),CFrame.new((asd.Position+pos)/2,pos)*angles(1.57,0,0),1,mag*5,1,1.2,0,1.2,0.1)
  849.     CylinderEffect(BrickColor.new("Institutional white"),CFrame.new((asd.Position+pos)/2,pos)*angles(1.57,0,0),1,mag*5,.5,1,0,.5,0.1)
  850.     if hit~=nil then
  851.         local ref=part(3,workspace,"SmoothPlastic",0,1,BrickColor.new("Really red"),"Reference",vt())
  852.         ref.Anchored=true
  853.         ref.CFrame=cf(pos)
  854.         game:GetService("Debris"):AddItem(ref,1)
  855.         Damagefunc(ref,hit,20,90,0,"Normal",RootPart,0)
  856.     end
  857. end
  858.  
  859. function ShootSomewhereObliterate(asd)
  860.     local MouseLook=cf((asd.Position+mouse.Hit.p)/2,mouse.Hit.p)
  861.     local hit,pos = rayCast(asd.Position,MouseLook.lookVector,999,RailgunTarget.Parent)
  862.     local mag=(asd.Position-pos).magnitude
  863.     CylinderEffect(BrickColor.new("Crimson"),CFrame.new((asd.Position+pos)/2,pos)*angles(1.57,0,0),1,mag*5,1,1.2,0,1.2,0.1)
  864.     CylinderEffect(BrickColor.new("Institutional white"),CFrame.new((asd.Position+pos)/2,pos)*angles(1.57,0,0),1,mag*5,.5,1,0,.5,0.1)
  865.     if hit~=nil then
  866.         local ref=part(3,workspace,"SmoothPlastic",0,1,BrickColor.new("Crimson"),"Reference",vt())
  867.         ref.Anchored=true
  868.         ref.CFrame=cf(pos)
  869.         game:GetService("Debris"):AddItem(ref,1)
  870.         Damagefunc(ref,hit,20,90,0,"Normal",RootPart,0)
  871.     end
  872. end
  873.  
  874. function ShootSomewhere(asd, spread1, spread2)
  875.     local MainPos = asd.Position
  876.     local MainPos2 = mouse.Hit.p
  877.     local spread = vt((math.random(-spread1, 0) + math.random()) * spread2, (math.random(-spread1, 0) + math.random()) * spread2, (math.random(-spread1, 0) + math.random()) * spread2) * (asd.Position - mouse.Hit.p).magnitude / 100
  878.     local MouseLook = cf((MainPos + MainPos2) / 2, MainPos2 + spread)
  879.     num = 30
  880.     coroutine.resume(coroutine.create(function(Spreaded)
  881.         repeat
  882.             wait()
  883.             local hit, pos = rayCast(MainPos, MouseLook.lookVector, 10, RocketTarget.Parent)
  884.             local TheHit = mouse.Hit.p
  885.             local mag = (MainPos - pos).magnitude
  886.             CylinderEffect(BrickColor.new("Crimson"), CFrame.new((MainPos + pos) / 2, pos) * angles(1.57, 0, 0), 3, mag * 5, 3, .5, 0, 1.5, 0.1)
  887.             MainPos = MainPos + (MouseLook.lookVector * 10)
  888.             num = num - 1
  889.             if hit ~= nil then
  890.                 num = 0
  891.                 local ref = part(3, workspace, "Neon", 0, 1, BrickColor.new("Really red"), "Reference", vt())
  892.                 ref.Anchored = true
  893.                 ref.CFrame = cf(pos)
  894.                 MagnitudeDamage(ref, hit, 5, 10, 20, 1, "Normal")
  895.                 game:GetService("Debris"):AddItem(ref, 5)
  896.             end
  897.         until num <= 0
  898.     end))
  899. end
  900.  
  901.  
  902. local Debounce=false
  903. function Aim()
  904.     attack=true
  905.     ActiveAnim="Attacking"
  906.     Aiming=true
  907.     for i = 0, 1, 0.2 do
  908.         swait()
  909.         RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), .5)
  910.         Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-90)), .5)
  911.         RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.5)
  912.         LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.5)
  913.         RH.C0 = clerp(RH.C0, cf(0.05, -1.5, 0) * angles(math.rad(5), math.rad(0), math.rad(5)), .5)
  914.         LH.C0 = clerp(LH.C0, cf(-0.05, -1.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-5)), .5)
  915.     end
  916.     RootJoint.C0 = RootCF * cf(0, 0, 0) * euler(0, 0, 1.57)
  917.     RW.C0 = cf(1.5, 0.5, 0) * euler(1.57, 0, 1.57)
  918.     local gairo = Create("BodyGyro"){
  919.     Parent = RootPart,
  920.     maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
  921.     P = 20e+003 ,
  922.     cframe = RootPart.CFrame,
  923.     }
  924.     local offset = nil
  925.     while Aiming == true do
  926.         swait()
  927.         local gunpos = vt(mouse.Hit.p.x, Head.Position.Y, mouse.Hit.p.z)
  928.         offset = (Torso.Position.y - mouse.Hit.p.y) / 60
  929.         local mag = (Torso.Position - mouse.Hit.p).magnitude / 80
  930.         offset = offset / mag
  931.         gairo.cframe = cf(Head.Position, gunpos)
  932.         Neck.C0 = clerp(Neck.C0, necko * euler(0, 0, -1.57), .3)
  933.         RW.C1 = clerp(RW.C1, cf(0, 0.5, 0) * euler(offset, 0, 0), .5)
  934.     end
  935.     gairo:destroy()
  936.     if not Debounce then
  937.         if Shoot then
  938.             Debounce=true
  939.             ShootSomewhere(Barrel, .2, 1)
  940.             for i = 0, 1, 0.1 do
  941.                 swait()
  942.                 RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), .3)
  943.                 Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(5), math.rad(-90)), .3)
  944.                 RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(50), math.rad(90)), 0.3)
  945.                 LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-40)), 0.3)
  946.                 RH.C0 = clerp(RH.C0, cf(0.05, -1.5, 0) * angles(math.rad(5), math.rad(0), math.rad(5)), .3)
  947.                 LH.C0 = clerp(LH.C0, cf(-0.05, -1.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-5)), .3)
  948.             end
  949.         elseif MultiShot then
  950.             Debounce=true
  951.             for i = 1, 5 do
  952.                 ShootSomewhere(Barrel, .2, 1)
  953.                 for i = 0, 1, 0.1 do
  954.                     swait()
  955.                     RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), .3)
  956.                     Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(5), math.rad(-90)), .3)
  957.                     RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(50), math.rad(90)), 0.3)
  958.                     LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-40)), 0.3)
  959.                     RH.C0 = clerp(RH.C0, cf(0.05, -1.5, 0) * angles(math.rad(5), math.rad(0), math.rad(5)), .3)
  960.                     LH.C0 = clerp(LH.C0, cf(-0.05, -1.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-5)), .3)
  961.                 end
  962.                 for i = 0,1,1 do
  963.                     swait()
  964.                     RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), .5)
  965.                     Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(-90)), .5)
  966.                     RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.5)
  967.                     LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.5)
  968.                     RH.C0 = clerp(RH.C0, cf(0.05, -1.5, 0) * angles(math.rad(5), math.rad(0), math.rad(5)), .5)
  969.                     LH.C0 = clerp(LH.C0, cf(-0.05, -1.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-5)), .5)
  970.                 end
  971.                 wait(.25)
  972.             end
  973.         elseif SpreadShot then
  974.             Debounce=true
  975.             for i = 1, 5 do
  976.                 ShootSomewhere(Barrel, 1, 3)
  977.             end
  978.             for i = 0, 1, 0.1 do
  979.                 swait()
  980.                 RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), .3)
  981.                 Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(5), math.rad(-90)), .3)
  982.                 RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(50), math.rad(90)), 0.3)
  983.                 LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-40)), 0.3)
  984.                 RH.C0 = clerp(RH.C0, cf(0.05, -1.5, 0) * angles(math.rad(5), math.rad(0), math.rad(5)), .3)
  985.                 LH.C0 = clerp(LH.C0, cf(-0.05, -1.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-5)), .3)
  986.             end
  987.         elseif ChargeShot then
  988.             Debounce=true
  989.             for i = 1, 30 do
  990.                 swait()
  991.                 ChargeEffect(Barrel, 2, 2, 2, math.random(-25, 25), math.random(-25, 25), math.random(-25, 25), 0, 0, 0, BrickColor.new("Crimson"))
  992.             end
  993.             RootPart.Velocity=RootPart.CFrame.lookVector*-100
  994.             ShootSomewhereCharge(Barrel)
  995.             for i = 0, 1, 0.1 do
  996.                 swait()
  997.                 RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), .3)
  998.                 Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(5), math.rad(-90)), .3)
  999.                 RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(50), math.rad(90)), 0.3)
  1000.                 LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-40)), 0.3)
  1001.                 RH.C0 = clerp(RH.C0, cf(0.05, -1.5, 0) * angles(math.rad(5), math.rad(0), math.rad(5)), .3)
  1002.                 LH.C0 = clerp(LH.C0, cf(-0.05, -1.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-5)), .3)
  1003.             end
  1004.         elseif MirrorShot then
  1005.             Debounce=true
  1006.             for i = 1, 95 do
  1007.                 swait()
  1008.                 ChargeEffect(Barrel, 2, 2, 2, math.random(-25, 25), math.random(-25, 25), math.random(-25, 25), 0, 0, 0, BrickColor.new("Crimson"))
  1009.             end
  1010.             RootPart.Velocity=RootPart.CFrame.lookVector*-250
  1011.             ReflectShot(mouse)
  1012.             for i = 0, 1, 0.1 do
  1013.                 swait()
  1014.                 RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), .3)
  1015.                 Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(0), math.rad(5), math.rad(-90)), .3)
  1016.                 RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(50), math.rad(90)), 0.3)
  1017.                 LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-40)), 0.3)
  1018.                 RH.C0 = clerp(RH.C0, cf(0.05, -1.5, 0) * angles(math.rad(5), math.rad(0), math.rad(5)), .3)
  1019.                 LH.C0 = clerp(LH.C0, cf(-0.05, -1.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-5)), .3)
  1020.             end
  1021.         end
  1022.     end
  1023.     Shoot=false
  1024.     MultiShot=false
  1025.     SpreadShot=false
  1026.     MirrorShot=false
  1027.     ChargeShot=false
  1028.     Aiming=false
  1029.     attack=false
  1030.     ActiveAnim="Idle"
  1031.     wait(.8)
  1032.     Debounce=false
  1033. end
  1034.  
  1035. warn("Controls : ")
  1036. print("Press \"f\" to aim")
  1037. print('Press "e" multishot')
  1038. print('Press "q" spreadshot')
  1039. print('Press "l" charged shot')
  1040. print('Press "m" mirror/reflecting shot')
  1041. print('Click standard shot')
  1042. print('The bounce is 0.8 seconds, if you try to shoot while the debounce is on, it\'ll disable the aiming.')
  1043.  
  1044.  
  1045. mouse.KeyDown:connect(function(k)
  1046.     k=k:lower()
  1047.     if not Shoot and not MultiShot and not SpreadShot and not ChargeShot and not MirrorShot then
  1048.         if k == "f" and not Aiming then
  1049.             Aim()
  1050.         elseif k == 'e' and Aiming then
  1051.             MultiShot=true
  1052.             Aiming=false
  1053.             Shoot=false
  1054.             SpreadShot=false
  1055.             ChargeShot=false
  1056.         elseif k == 'q' and Aiming then
  1057.             MultiShot=false
  1058.             Aiming=false
  1059.             Shoot=false
  1060.             SpreadShot=true
  1061.             ChargeShot=false
  1062.         elseif k == 'l' and Aiming then
  1063.             MultiShot=false
  1064.             Aiming=false
  1065.             Shoot=false
  1066.             SpreadShot=false
  1067.             ChargeShot=true
  1068.         elseif k == 'm' and Aiming then
  1069.             Shoot=false
  1070.             Aiming=false
  1071.             MultiShot=false
  1072.             Aiming=false
  1073.             SpreadShot=false
  1074.             MirrorShot=true
  1075.             ChargeShot=false
  1076.         end
  1077.     end
  1078. end)
  1079. mouse.Button1Down:connect(function()
  1080.     if Aiming then
  1081.         Shoot=true
  1082.         Aiming=false
  1083.         MultiShot=false
  1084.         SpreadShot=false
  1085.         ChargeShot=false
  1086.         MirrorShot=false
  1087.     end
  1088. end)
  1089.  
  1090.  
  1091. Effects={}
  1092.  
  1093. UpdateActiveAnim=function()
  1094.     spawn(function()
  1095.         local torvel = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  1096.         local velderp = RootPart.Velocity.y
  1097.         local hitfloor, posfloor = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 2, 0))).lookVector, 4, Character)
  1098.         if not attack then
  1099.             if torvel > 2 and hitfloor and Humanoid.WalkSpeed < 21 then
  1100.                 ActiveAnim="Walk"
  1101.             elseif torvel > 2 and hitfloor and Humanoid.WalkSpeed >= 21 then
  1102.                 ActiveAnim="Run"
  1103.             elseif RootPart.Velocity.y > 1 and not hitfloor then
  1104.                 ActiveAnim="Jump"
  1105.             elseif RootPart.Velocity.y < -1 and not hitfloor then
  1106.                 ActiveAnim="Fall"
  1107.             else
  1108.                 ActiveAnim="Idle"
  1109.             end
  1110.         else
  1111.             ActiveAnim="Attacking" 
  1112.         end
  1113.     end)
  1114. end
  1115.  
  1116. spawn(function()
  1117.     while swait() do
  1118.         if #Effects > 0 then
  1119.         for e = 1, #Effects do
  1120.             if Effects[e] ~= nil then
  1121.                 local Thing = Effects[e]
  1122.                 if Thing ~= nil then
  1123.                     local Part = Thing[1]
  1124.                     local Mode = Thing[2]
  1125.                     local Delay = Thing[3]
  1126.                     local IncX = Thing[4]
  1127.                     local IncY = Thing[5]
  1128.                     local IncZ = Thing[6]
  1129.                     if Thing[1].Transparency <= 1 then
  1130.                         if Thing[2] == "Block1" then
  1131.                             Thing[1].CFrame = Thing[1].CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1132.                             Mesh = Thing[1].Mesh
  1133.                             Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  1134.                             Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1135.                         elseif Thing[2] == "Cylinder" then
  1136.                             Mesh = Thing[1].Mesh
  1137.                             Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  1138.                             Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1139.                         elseif Thing[2] == "Blood" then
  1140.                             Mesh = Thing[7]
  1141.                             Thing[1].CFrame = Thing[1].CFrame * cf(0, .5, 0)
  1142.                             Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
  1143.                             Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1144.                         elseif Thing[2] == "Elec" then
  1145.                             Mesh = Thing[1].Mesh
  1146.                             Mesh.Scale = Mesh.Scale + vt(Thing[7], Thing[8], Thing[9])
  1147.                             Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1148.                         elseif Thing[2] == "Disappear" then
  1149.                             Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1150.                         end
  1151.                     else
  1152.                         Part.Parent = nil
  1153.                         table.remove(Effects, e)
  1154.                     end
  1155.                 end
  1156.             end
  1157.         end
  1158.     end
  1159.     end
  1160. end)
  1161.  
  1162. game:GetService("RunService").Stepped:connect(function()
  1163.     for _, lasr in pairs(lasrs) do
  1164.         for i, v in pairs(lasr[9]) do
  1165.             if lasr[7][i].Parent then
  1166.                 v.Scale = v.Scale + Vector3.new(-0.1,0,-0.1)
  1167.                 lasr[10][i].Scale = lasr[10][i].Scale + Vector3.new(-0.1,0,-0.1)
  1168.                 if v.Scale.x < 0.1 then
  1169.                     lasr[7][i].Parent = nil
  1170.                     lasr[8][i].Parent = nil
  1171.                 end
  1172.             end
  1173.         end
  1174.  
  1175.         if lasr[1] then
  1176.             local hitz, enz = RAY(lasr[3],lasr[2]*lasrspd)
  1177.             lasr[5] = lasr[5] + (lasr[3] - enz).magnitude
  1178.  
  1179.             lasr[7][lasr[6]].Parent = m
  1180.             lasr[7][lasr[6]].CFrame = CFrame.new((lasr[3] + enz)/2,enz) * CFrame.Angles(math.pi/2,0,0)
  1181.             lasr[9][lasr[6]].Scale = Vector3.new(0.7,(lasr[3] - enz).magnitude*5,0.7)
  1182.  
  1183.             lasr[8][lasr[6]].Parent = m
  1184.             lasr[8][lasr[6]].CFrame = lasr[7][lasr[6]].CFrame
  1185.             lasr[10][lasr[6]].Scale = Vector3.new(1.3,(lasr[3] - enz).magnitude*5 + 0.02,1.3)
  1186.  
  1187.             lasr[3] = enz
  1188.             lasr[6] = lasr[6]%#lasr[7] + 1
  1189.  
  1190.             if hitz then
  1191.                 lasr[4] = lasr[4] + 1
  1192.                 if lasr[4] == maxRebounds then
  1193.                     lasr[1] = false
  1194.                 else
  1195.                     local ref=part(3,workspace,"SmoothPlastic",0,1,BrickColor.new("Crimson"),"Reference",vt())
  1196.                     ref.Anchored=true
  1197.                     ref.CFrame=cf(enz)
  1198.                     game:GetService("Debris"):AddItem(ref,1)
  1199.                     Damagefunc(ref,hitz,1,100,0,"Normal",RootPart,0)
  1200.                     local norm = FindSurface(hitz,enz)
  1201.                     lasr[2] = Reflect(lasr[2],norm)
  1202.                 end
  1203.             end
  1204.             if lasr[5] > maxTravelDistance then
  1205.                 lasr[1] = false
  1206.             end
  1207.         end
  1208.     end
  1209. end)
  1210.  
  1211. print("Have fun with me Edit")
  1212. print(":P")
  1213. while swait() do
  1214.     sine=sine+change
  1215.     if not attack then
  1216.         idle=idle+1
  1217.     else
  1218.         idle=0
  1219.     end
  1220.     if idle >=500 then
  1221.         if attack==false then end
  1222.     end
  1223.     if donum>.5 then handidle=true elseif donum <= 0 then handidle=false end
  1224.     if handidle==false then
  1225.         donum=donum+.003
  1226.     else
  1227.         donum=donum-.003
  1228.     end
  1229.     UpdateActiveAnim()
  1230.     if ActiveAnim=="Idle" then
  1231.         change=.3
  1232.         RootJoint.C0=clerp(RootJoint.C0, RootCF,.3)
  1233.         Torso.Neck.C0=clerp(Torso.Neck.C0,necko,.3)
  1234.         LH.C0 = clerp(LH.C0, CFrame.new(0, -1.5, 0)*angles(0,0,math.rad(-5)), .4)
  1235.         RH.C0 = clerp(RH.C0, CFrame.new(0, -1.5, 0)*angles(0,0,math.rad(5)),.4)
  1236.         LW.C0=clerp(LW.C0,cf(-1.5,.5,0)*angles(0,0,-donum*.35),.2)
  1237.         -- LW.C0=clerp(LW.C0,cf(-1.5,.5,0)*cf(0,donum*.2,0),.2)
  1238.         RW.C0=clerp(RW.C0,cf(1.5,.5,0)*angles(math.rad(50),0,math.rad(-25))*angles(0,math.sin(sine/25)/2,0),.2)
  1239.         RW.C1 = clerp(RW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), .3)
  1240.     elseif ActiveAnim=="Walk" then
  1241.         change=2
  1242.         RootJoint.C0=clerp(RootJoint.C0, RootCF,.3)
  1243.         Torso.Neck.C0=clerp(Torso.Neck.C0,necko,.3)
  1244.         LH.C0 = clerp(LH.C0, CFrame.new(0, -1.5-0.3*math.cos(sine/14)/2, -.05 + math.sin(sine/14)/2) * CFrame.Angles(math.rad(-18) + -math.sin(sine/14)/2.3, 0, 0), .4)
  1245.         RH.C0 = clerp(RH.C0, CFrame.new(0, -1.5+0.3*math.cos(sine/14)/2, -.05 + -math.sin(sine/14)/2) * CFrame.Angles(math.rad(-18) + math.sin(sine/14)/2.3, 0, 0), .4)
  1246.         LW.C0=clerp(LW.C0,cf(-1.5,.5,0)*angles(math.sin(sine/14),0,0),.2)
  1247.         RW.C0=clerp(RW.C0,cf(1.5,.5,0)*angles(math.sin(-sine/14)/2,0,0),.2)
  1248.         RW.C1 = clerp(RW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), .3)
  1249.     elseif ActiveAnim=="Run" then
  1250.         change=1.8
  1251.         RootJoint.C0=clerp(RootJoint.C0, RootCF,.3)
  1252.         Torso.Neck.C0=clerp(Torso.Neck.C0,necko,.3)
  1253.         LH.C0 = clerp(LH.C0, CFrame.new(0, -1.5-0.3*math.cos(sine/8)/2, -.05 + math.sin(sine/8)/2) * CFrame.Angles(math.rad(-18) + -math.sin(sine/8)/2.3, 0, 0), .4)
  1254.         RH.C0 = clerp(RH.C0, CFrame.new(0, -1.5+0.3*math.cos(sine/8)/2, -.05 + -math.sin(sine/8)/2) * CFrame.Angles(math.rad(-18) + math.sin(sine/8)/2.3, 0, 0), .4)
  1255.         LW.C0=clerp(LW.C0,cf(-1.5,.5,0)*angles(math.sin(sine/8),0,0),.2)
  1256.         RW.C0=clerp(RW.C0,cf(1.5,.5,0)*angles(math.sin(-sine/8)/2,0,0),.2)
  1257.         RW.C1 = clerp(RW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), .3)
  1258.     elseif ActiveAnim=="Jump" then
  1259.         RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(0)), .3)
  1260.         Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(10), math.rad(0), math.rad(0)), .3)
  1261.         RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(30)), 0.3)
  1262.         LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-20)), 0.3)
  1263.         RH.C0 = clerp(RH.C0, cf(.05, -1.5, .5) * angles(math.rad(-20), math.rad(0), math.rad(5)), .3)
  1264.         LH.C0 = clerp(LH.C0, cf(-.05, -1.5, .5) * angles(math.rad(-20), math.rad(0), math.rad(-5)), .3)
  1265.         RW.C1 = clerp(RW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), .3)
  1266.     elseif ActiveAnim=="Fall" then
  1267.         RootJoint.C0 = clerp(RootJoint.C0, RootCF * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .3)
  1268.         Torso.Neck.C0 = clerp(Torso.Neck.C0, necko * angles(math.rad(20), math.rad(0), math.rad(0)), .3)
  1269.         RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(40)), 0.3)
  1270.         LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)), 0.3)
  1271.         RH.C0 = clerp(RH.C0, cf(0.05, -1.5, -.2) * angles(math.rad(10), math.rad(0), math.rad(5)), .3)
  1272.         LH.C0 = clerp(LH.C0, cf(-0.05, -1.5, -.2) * angles(math.rad(10), math.rad(0), math.rad(-5)), .3)
  1273.         RW.C1 = clerp(RW.C1, cf(0, 0.5, 0) * euler(0, 0, 0), .3)
  1274.     end
  1275. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement