Advertisement
FloweyTheFlower

Roblox Scripts #61 Engineer

Oct 13th, 2017
4,383
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 93.90 KB | None | 0 0
  1. local p = game.Players.LocalPlayer
  2. local char = p.Character
  3. local hed = char.Head
  4. local hes = game.Players.LocalPlayer.Character.Humanoid
  5. for i,v in pairs(char:children()) do
  6.     if v:IsA("Hat") then
  7.         v:Destroy()
  8.     end
  9. end
  10. for i,v in pairs(hed:children()) do
  11.     if v:IsA("Sound") then
  12.         v:Destroy()
  13.     end
  14. end
  15. local Part = Instance.new("Part",hed)
  16. Part.BrickColor = BrickColor.new("Really black")
  17. Part.Size = Vector3.new(1,1,1)
  18. Part.CanCollide = false
  19. Part.Material = "Neon"
  20. local M = Instance.new("SpecialMesh",Part)
  21. M.MeshId = "rbxassetid://227430350"
  22. M.Scale = Vector3.new(3,3,3)
  23. local Part2 = Instance.new("Weld",Part)
  24. Part2.Part0 = hed
  25. Part2.Part1 = Part
  26. Part2.C0 = CFrame.new(0, 1, -0.5)
  27. hes.MaxHealth = math.huge
  28. warn'Edit By BonnieKunG1s'
  29. --[[
  30. Tf2 Engineer Class 
  31. --------------------
  32. Script by: 123jl123
  33. ---------------------  
  34. Sentry by: Madiik
  35. -- ]]
  36. local plr = game:service'Players'.LocalPlayer
  37. local char = plr.Character
  38. local mouse = plr:GetMouse()
  39. local humanoid = char:findFirstChild("Humanoid")
  40. local torso = char:findFirstChild("Torso")
  41. local head = char.Head
  42. local ra = char:findFirstChild("Right Arm")
  43. local la = char:findFirstChild("Left Arm")
  44. local rl = char:findFirstChild("Right Leg")
  45. local ll = char:findFirstChild("Left Leg")
  46. local rs = torso:findFirstChild("Right Shoulder")
  47. local ls = torso:findFirstChild("Left Shoulder")
  48. local rh = torso:findFirstChild("Right Hip")
  49. local lh = torso:findFirstChild("Left Hip")
  50. local neck = torso:findFirstChild("Neck")
  51. local rj = char:findFirstChild("HumanoidRootPart"):findFirstChild("RootJoint")
  52. local rootpart = char:findFirstChild("HumanoidRootPart")
  53. local camera = workspace.CurrentCamera
  54. local anim = char:findFirstChild("Animate")
  55. DA = false
  56. NoSentry = true
  57. maincolor = game.Players.LocalPlayer.Character.Torso.BrickColor.Name
  58. secondcolor = "Really black"
  59. WSHM = {'231917784','12222208','12222208','231917784'}
  60. WSH = WSHM[math.random(1,#WSHM)]   
  61. wait(1 / 60)
  62. Effects = { }
  63. local Player = game.Players.localPlayer
  64. local Character = Player.Character
  65. local Humanoid = Character.Humanoid
  66. local mouse = Player:GetMouse()
  67. local LeftArm = Character["Left Arm"]
  68. local RightArm = Character["Right Arm"]
  69. local LeftLeg = Character["Left Leg"]
  70. local RightLeg = Character["Right Leg"]
  71. local Head = Character.Head
  72. local Torso = Character.Torso
  73. local cam = game.Workspace.CurrentCamera
  74. local RootPart = Character.HumanoidRootPart
  75. local RootJoint = RootPart.RootJoint
  76. local equipped = false
  77. local attack = false
  78. local Anim = 'Idle'
  79. local idle = 0
  80. local attacktype = 1
  81. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  82. local velocity = RootPart.Velocity.y
  83. local sine = 0
  84. local change = 1
  85. local grabbed = false
  86. local cn = CFrame.new
  87. local mr = math.rad
  88. local angles = CFrame.Angles
  89. local ud = UDim2.new
  90. local c3 = Color3.new
  91. local slashDamage = 35
  92. trans = 1
  93. Wep = 1
  94. equippedgun2 = false
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105. --SB Plasma Shotgun 2013
  106.  
  107. --madiik's plasma shottie
  108.  
  109. --variables
  110.  
  111.  
  112.  
  113. --some more variables
  114.  
  115. local spread = 1
  116. -- end of some more variables
  117.  
  118. local sound = Instance.new("Sound",head)
  119. sound.SoundId = "http://www.roblox.com/asset?id=136523485"
  120. sound.Volume = 6.5
  121. sound.Pitch = 1
  122.  
  123.    
  124.  
  125.  
  126.  
  127.  
  128.  
  129. local sound2 = Instance.new("Sound",head)
  130. sound2.SoundId = "http://www.roblox.com/asset?id=10209881"
  131. sound2.Volume = 5.5
  132. sound2.Pitch = 1
  133.  
  134.  
  135.  
  136.  
  137.  
  138.  
  139.  
  140. function attach(weld, part0, part1)
  141. weld.Part0 = part0
  142. weld.Part1 = part1
  143. end
  144.  
  145.  
  146.  
  147.  
  148.  
  149.  
  150.  
  151.  
  152.  
  153. --create func
  154. function part(parent, size, color, formfactor, collide, transparency)
  155. if transparency == nil then transparency = 0 end
  156. if collide == nil then collide = false end
  157. if formfactor == nil then formfactor = Enum.FormFactor.Custom end
  158. local p=Instance.new("Part", parent)
  159. p.FormFactor=formfactor
  160. p.CanCollide=false
  161. p.Size=size
  162. p.Locked=true
  163. p.Transparency=transparency
  164. p.Position=torso.Position
  165. p.BrickColor=color
  166. p.FrontSurface="SmoothNoOutlines"
  167. p.BackSurface="SmoothNoOutlines"
  168. p.LeftSurface="SmoothNoOutlines"
  169. p.BottomSurface="SmoothNoOutlines"
  170. p.TopSurface="SmoothNoOutlines"
  171. p.RightSurface="SmoothNoOutlines"
  172. return p
  173. end
  174. function wedge(parent, size, color, formfactor, collide, transparency)
  175.  
  176. if transparency == nil then transparency = 0 end
  177. if collide == nil then collide = false end
  178. if formfactor == nil then formfactor = Enum.FormFactor.Custom end
  179.  
  180. local p=Instance.new("WedgePart", parent)
  181. p.FormFactor=formfactor
  182. p.CanCollide=false
  183. p.Size=size
  184. p.Locked=true
  185. p.Position = torso.Position
  186. p.BrickColor=color
  187. p.FrontSurface="SmoothNoOutlines"
  188. p.BackSurface="SmoothNoOutlines"
  189. p.LeftSurface="SmoothNoOutlines"
  190. p.BottomSurface="SmoothNoOutlines"
  191. p.TopSurface="SmoothNoOutlines"
  192. p.RightSurface="SmoothNoOutlines"
  193. return p
  194. end
  195. function weld(part0, part1, c0, parent, c1)
  196. if parent == nil then parent = gun end
  197. if c1 == nil then c1 = CFrame.new() end
  198.  
  199. local wel=Instance.new("Weld", parent)
  200. wel.Part0 = part0
  201. wel.Part1 = part1
  202. wel.C0 = c0
  203. wel.C1 = c1
  204. return wel
  205. end
  206. function specialmesh(parent, meshType, scale, meshId)
  207. local mesh = Instance.new("SpecialMesh", parent)
  208. mesh.Scale = scale
  209. mesh.MeshType = meshType
  210. mesh.MeshId = meshId
  211. return mesh
  212. end
  213.  
  214.  
  215. --some ray functi0n
  216.  
  217. function rayCast2(speed, gravity, from)
  218. coroutine.wrap(function()        
  219. if char.Humanoid.Health == 0 then return end
  220. local rayP = Instance.new("Part")
  221. rayP.Name = "rayP"
  222. rayP.BrickColor = BrickColor.new("White")
  223. rayP.Material = 'Neon'
  224. rayP.Anchored = true
  225. rayP.CanCollide = false
  226. rayP.Locked = true
  227. rayP.TopSurface = Enum.SurfaceType.Smooth
  228. rayP.BottomSurface = Enum.SurfaceType.Smooth
  229. rayP.formFactor = Enum.FormFactor.Custom
  230. rayP.Size = Vector3.new(0.2, 0.2, 0.2)
  231.  
  232.  
  233.  
  234. Instance.new("BlockMesh", rayP).Scale = Vector3.new(0.2, 0.2, 10)
  235.  
  236.  
  237.  
  238.  
  239.  
  240.  
  241.  
  242.  
  243. local bulletposition = from.Position + Vector3.new(0, 0.3, 0)
  244.  
  245. local bulletvelocity = (Vector3.new(math.random(-spread*4,spread*4), math.random(-spread*4,spread*4), math.random(-spread*4,spread*4)))+( plr:GetMouse().Hit.p - bulletposition).unit*speed
  246. local bulletlastposition = bulletposition
  247.  
  248.  
  249.  
  250.  
  251. coroutine.resume(coroutine.create(function()
  252. while true do
  253. local dt = wait()
  254. bulletlastposition = bulletposition
  255. bulletvelocity = bulletvelocity + (Vector3.new(0, -14.81*gravity, 0)*dt)
  256. bulletposition = bulletposition + (bulletvelocity*dt)
  257.  
  258. local ray = Ray.new(bulletlastposition, (bulletposition - bulletlastposition))
  259.  
  260. local hit, hitposition = workspace:FindPartOnRayWithIgnoreList( ray, { char, rayP, TrailPart} )
  261.  
  262. if (torso.Position - rayP.Position).magnitude > 540 then
  263. rayP:Destroy()
  264. break
  265. end
  266.  
  267.  
  268. if hit then
  269. local damage = math.random(10, 20)
  270. if hit.Parent:findFirstChild("Humanoid") ~= nil then
  271. hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health - damage
  272. end
  273. if hit.Parent:IsA("Hat") and hit.Parent.Parent:findFirstChild("Humanoid") ~= nil then
  274. hit.Parent.Parent.Humanoid.Health = hit.Parent.Parent.Humanoid.Health - damage        
  275. end
  276. bulletposition = hitposition
  277. rayP.CFrame = CFrame.new(bulletposition, bulletposition+bulletvelocity)
  278. rayP:Destroy()
  279. break
  280. end
  281. rayP.CFrame = CFrame.new(bulletposition, bulletposition+bulletvelocity)
  282. rayP.Parent = workspace
  283. end
  284. end))
  285. end)()
  286. end
  287.  
  288.  
  289.  
  290.  
  291.  
  292.  
  293.  
  294. --function attach(weld, part0, part1)
  295. --weld.Part0 = part0
  296. --weld.Part1 = part1
  297. --end
  298.  
  299.  
  300.  
  301.  
  302.  
  303.  
  304.  
  305.  
  306.  
  307.  
  308.  
  309.  
  310.  
  311.  
  312.  
  313.  
  314.  
  315.  
  316.  
  317.  
  318.  
  319.  
  320.  
  321.  
  322.  
  323.  
  324.  
  325. TmRed = false
  326. TmBlue = false
  327. TeamColor = BrickColor.new("Really Black")
  328.  
  329.     local BC = char["Body Colors"]
  330.     BC.HeadColor = BrickColor.new("White")
  331.     BC.LeftArmColor = BrickColor.new("White")
  332.     BC.LeftLegColor = BrickColor.new("White")
  333.     BC.RightArmColor = BrickColor.new("White")
  334.     BC.RightLegColor = BrickColor.new("White")
  335.     BC.TorsoColor = BrickColor.new("White")
  336.    
  337.    
  338. New = function(Object, Parent, Name, Data)
  339.     local Object = Instance.new(Object)
  340.     for Index, Value in pairs(Data or {}) do
  341.         Object[Index] = Value
  342.     end
  343.     Object.Parent = Parent
  344.     Object.Name = Name
  345.     return Object
  346. end
  347. local AddInstance = function(Object, ...)
  348. local Obj = Instance.new(Object)
  349. for i,v in next,(...) do
  350. Obj[i] = v
  351. end
  352. return Obj
  353. end
  354.    
  355.  
  356.  
  357.  
  358.  
  359. Team=function()
  360.    
  361. local r=math.random(1,2)
  362. if r==1 then
  363. print('RED')   
  364. script.Name = "TeamRed"
  365. TmRed = true
  366. TeamColor = BrickColor.new("White")
  367. end
  368.  
  369. if r==2 then
  370. print('BLUE')
  371. TmBlue = true
  372. script.Name = "TeamBlue"
  373. TeamColor = BrickColor.new("Really black")
  374. end
  375. print(''..r)
  376. end
  377.  
  378. Team()
  379.  
  380.  
  381.    
  382. local MusThingHat = AddInstance("Part",{
  383.             Parent = head,
  384.             CFrame = head.CFrame,
  385.             formFactor = "Symmetric",
  386.             Size = Vector3.new(1, 1, 1),
  387.             CanCollide = false,
  388.             TopSurface = "Smooth",
  389.             BottomSurface = "Smooth",
  390.             Locked = true,
  391.             BrickColor=BrickColor.new("Br. yellowish orange"),
  392.             Transparency = 1,
  393.         })
  394.         local Weld = AddInstance("Weld",{
  395.             Parent = MusThingHat,
  396.             Part0 = head,
  397.             C0 = CFrame.new(0,0.5,0)*CFrame.Angles(0,0,0),
  398.             Part1 = MusThingHat,
  399.         })
  400.         local Mesh = AddInstance("SpecialMesh",{
  401.             Parent = MusThingHat,
  402.  
  403.             Scale = Vector3.new(.1,0,.1),
  404.  
  405.         })
  406.    
  407. local Reaper = AddInstance("Part",{
  408.             Parent = head,
  409.             CFrame = head.CFrame,
  410.             formFactor = "Symmetric",
  411.             Size = Vector3.new(1, 1, 1),
  412.             CanCollide = false,
  413.             TopSurface = "Smooth",
  414.             BottomSurface = "Smooth",
  415.             Locked = true,
  416.             BrickColor=BrickColor.new("White"),
  417.         })
  418.         local Weld = AddInstance("Weld",{
  419.             Parent = Reaper,
  420.             Part0 = head,
  421.             C0 = CFrame.new(-.04,.7,-.1)*CFrame.Angles(0,0,.08),
  422.             Part1 = Reaper,
  423.         })
  424.         local Mesh = AddInstance("SpecialMesh",{
  425.             Parent = Reaper,
  426.             MeshId = "rbxassetid://0",
  427.             Scale = Vector3.new(1.06,1.05,1.06),
  428.             VertexColor = Vector3.new(1,1,1),
  429.         })
  430.  
  431. local Helmpart2 = AddInstance("Part",{
  432.             Parent = head,
  433.             CFrame = head.CFrame,
  434.             formFactor = "Symmetric",
  435.             Size = Vector3.new(1, 1, 1),
  436.             CanCollide = false,
  437.             TopSurface = "Smooth",
  438.             BottomSurface = "Smooth",
  439.             Locked = true,
  440.             BrickColor=BrickColor.new("White"),
  441.         })
  442.         local Weld = AddInstance("Weld",{
  443.             Parent = Helmpart2,
  444.             Part0 = head,
  445.             C0 = CFrame.new(.01,.4,.05)*CFrame.Angles(.1,0,-.02),
  446.             Part1 = Helmpart2,
  447.         })
  448.         local Mesh = AddInstance("SpecialMesh",{
  449.             Parent = Helmpart2,
  450.             Scale = Vector3.new(1.28,.48,1.28),
  451.             VertexColor = Vector3.new(1,1,1),
  452.         })
  453.  
  454.  
  455. local Glassespart2 = AddInstance("Part",{
  456.             Parent = head,
  457.             CFrame = head.CFrame,
  458.             formFactor = "Symmetric",
  459.             Size = Vector3.new(1, 1, 1),
  460.             CanCollide = false,
  461.             TopSurface = "Smooth",
  462.             BottomSurface = "Smooth",
  463.             Locked = true,
  464.             BrickColor=BrickColor.new("White"),
  465.         })
  466.         local Weld = AddInstance("Weld",{
  467.             Parent = Glassespart2,
  468.             Part0 = head,
  469.             C0 = CFrame.new(0,.35,0)*CFrame.Angles(0,0,0),
  470.             Part1 = Glassespart2,
  471.         })
  472.         local Mesh = AddInstance("SpecialMesh",{
  473.             Parent = Glassespart2,
  474.             Scale = Vector3.new(1.27,.5,1.27),
  475.             VertexColor = Vector3.new(1,1,1),
  476.         })
  477.  
  478.  
  479.  
  480.  
  481.  
  482.  
  483.  
  484.  
  485. local Reaper3 = AddInstance("Part",{
  486.             Parent = head,
  487.             CFrame = head.CFrame,
  488.             formFactor = "Symmetric",
  489.             Size = Vector3.new(1, 1, 1),
  490.             CanCollide = false,
  491.             TopSurface = "Smooth",
  492.             BottomSurface = "Smooth",
  493.             Locked = true,
  494.             BrickColor=BrickColor.new("Gold"),
  495.         })
  496.         local Weld = AddInstance("Weld",{
  497.             Parent = Reaper3,
  498.             Part0 = head,
  499.             C0 = CFrame.new(0,.3,-0.02)*CFrame.Angles(-.1,0,0),
  500.             Part1 = Reaper3,
  501.         })
  502.         local Mesh = AddInstance("SpecialMesh",{
  503.             Parent = Reaper3,
  504.             MeshId = "rbxassetid://0",
  505.             TextureId = "rbxassetid://0",
  506.             Scale = Vector3.new(.9,1,1),
  507.             VertexColor = Vector3.new(1,1,1),
  508.         })
  509.            
  510.            
  511.            
  512.            
  513.            
  514.            
  515.            
  516. local Reaper4 = AddInstance("Part",{
  517.             Parent = RightArm,     
  518.             CFrame = RightArm.CFrame,
  519.             formFactor = "Symmetric",
  520.             Size = Vector3.new(0.1, 0.5, 3),
  521.             CanCollide = false,
  522.             TopSurface = "Smooth",
  523.             BottomSurface = "Smooth",
  524.             Locked = true,
  525.             Transparency = 0
  526.         })
  527.         local Weld = AddInstance("Weld",{
  528.             Parent = Reaper4,
  529.             Part0 = RightArm,
  530.             C0 = CFrame.new(-0.35,-1.8,-0.4)*CFrame.Angles(4.7,3.4,0),
  531.             Part1 = Reaper4,
  532.         })
  533.         local Mesh = AddInstance("SpecialMesh",{
  534.             Parent = Reaper4,
  535.             MeshId = "rbxassetid://470533002",
  536.             TextureId = "rbxassetid://470533004",
  537.             Scale = Vector3.new(.03,.03,.03),
  538.             VertexColor = Vector3.new(1,1,1),
  539.         })             
  540.            
  541.     local GunFire = AddInstance("Part",{
  542.             Parent = RightArm,     
  543.             CFrame = RightArm.CFrame,
  544.             formFactor = "Symmetric",
  545.             Size = Vector3.new(0.1, 0.1, 0.1),
  546.             CanCollide = false,
  547.             TopSurface = "Smooth",
  548.             BottomSurface = "Smooth",
  549.             Locked = true,
  550.             Transparency = 1
  551.         })
  552.         local Weld = AddInstance("Weld",{
  553.             Parent = GunFire,
  554.             Part0 = RightArm,
  555.             C0 = CFrame.new(-0.8,-3.5,-0.7)*CFrame.Angles(4.7,3.4,0),
  556.             Part1 = GunFire,
  557.         })
  558.        
  559.            
  560.             local GunParticle = Instance.new("ParticleEmitter", GunFire);
  561.         GunParticle.VelocitySpread = 60;
  562.         GunParticle.LightEmission = 200;
  563.  
  564.         local Colors2 = {Color3.new(1,.5,0), Color3.new(1,.7,0), Color3.new(1,.9,0);}      
  565.                 GunParticle.Size = NumberSequence.new(.05,.07);
  566.  
  567.         GunParticle.Color = ColorSequence.new(Colors2[math.random(#Colors2)]);
  568.         GunParticle.Texture = "rbxassetid://252350680";
  569.         GunParticle.RotSpeed = NumberRange.new(10,100);
  570.         GunParticle.Rate = 600;
  571.         GunParticle.Speed = NumberRange.new(10);
  572.         GunParticle.Transparency = NumberSequence.new(0,1);
  573.         GunParticle.Lifetime = NumberRange.new(.01,.2);
  574. GunParticle.EmissionDirection = 'Back'
  575. GunParticle.Enabled = false
  576.            
  577.            
  578.            
  579.            
  580.            
  581.            
  582.            
  583.            
  584. local Reaper5 = AddInstance("Part",{
  585.             Parent = RightArm,     
  586.             CFrame = RightArm.CFrame,
  587.             formFactor = "Symmetric",
  588.             Size = Vector3.new(0.1, 0.5, 3),
  589.             CanCollide = false,
  590.             TopSurface = "Smooth",
  591.             BottomSurface = "Smooth",
  592.             Locked = true,
  593.             Transparency = 1
  594.         })
  595.         local Weld = AddInstance("Weld",{
  596.             Parent = Reaper5,
  597.             Part0 = RightArm,
  598.             C0 = CFrame.new(-.1,-0.75,-.7)*CFrame.Angles(1.5,0,3),
  599.             Part1 = Reaper5,
  600.         })
  601.         local Mesh = AddInstance("SpecialMesh",{
  602.             Parent = Reaper5,
  603.             MeshId = "rbxassetid://431003868",
  604.             TextureId = "rbxassetid://430627740",
  605.             Scale = Vector3.new(1.93,1.99,1.99),
  606.             VertexColor = Vector3.new(1,1,1),
  607.         }) 
  608.    
  609.    
  610.    
  611. local Arms = AddInstance("Model",{
  612.             Parent = cam,  
  613.             Name = "Arms", 
  614.        
  615.  
  616.         })
  617.  
  618. local Arm1 = AddInstance("Part",{
  619.             Parent = Arms, 
  620.             Name = "RightArm", 
  621.             CFrame = RightArm.CFrame,
  622.             formFactor = "Symmetric",
  623.             Size = Vector3.new(.85,1.85,.85),
  624.             CanCollide = false,
  625.             Material = "SmoothPlastic",
  626.             TopSurface = "Smooth",
  627.             BottomSurface = "Smooth",
  628.             Locked = true,
  629.             BrickColor=BrickColor.new("White"),
  630.             Transparency = 0
  631.         })
  632.         local Weld = AddInstance("Weld",{
  633.             Parent = Arm1,
  634.             Part0 = RightArm,
  635.             C0 = CFrame.new(0,0,0)*CFrame.Angles(0,0,0),
  636.             Part1 = Arm1,
  637.         })
  638.  
  639. local Arm2 = AddInstance("Part",{
  640.             Parent = Arms, 
  641.             Name = "LeftArm",  
  642.             CFrame = LeftArm.CFrame,
  643.             formFactor = "Symmetric",
  644.             Size = Vector3.new(.85,1.85,.85),
  645.             CanCollide = false,
  646.             Material = "SmoothPlastic",
  647.             TopSurface = "Smooth",
  648.             BottomSurface = "Smooth",
  649.             Locked = true,
  650.             BrickColor=BrickColor.new("White"),
  651.             Transparency = 0
  652.         })
  653.         local Weld = AddInstance("Weld",{
  654.             Parent = Arm2,
  655.             Part0 = LeftArm,
  656.             C0 = CFrame.new(0,0,0)*CFrame.Angles(0,0,0),
  657.             Part1 = Arm2,
  658.         })
  659.        
  660.        
  661.        
  662.        
  663.         local Arm3 = AddInstance("Part",{
  664.             Parent = Arms, 
  665.             Name = "RightArm", 
  666.             CFrame = RightArm.CFrame,
  667.             formFactor = "Symmetric",
  668.             Size = Vector3.new(.9,.9,.9),
  669.             CanCollide = false,
  670.             Material = "SmoothPlastic",
  671.             TopSurface = "Smooth",
  672.             BottomSurface = "Smooth",
  673.             Locked = true,
  674.             BrickColor=TeamColor,
  675.             Transparency = 0
  676.         })
  677.         local Weld = AddInstance("Weld",{
  678.             Parent = Arm3,
  679.             Part0 = RightArm,
  680.             C0 = CFrame.new(0,.5,0)*CFrame.Angles(0,0,0),
  681.             Part1 = Arm3,
  682.         })
  683.  
  684. local Arm4 = AddInstance("Part",{
  685.             Parent = Arms, 
  686.             Name = "LeftArm",  
  687.             CFrame = LeftArm.CFrame,
  688.             formFactor = "Symmetric",
  689.             Size = Vector3.new(.9,.9,.9),
  690.             CanCollide = false,
  691.             Material = "SmoothPlastic",
  692.             TopSurface = "Smooth",
  693.             BottomSurface = "Smooth",
  694.             Locked = true,
  695.             BrickColor=TeamColor,
  696.             Transparency = 0
  697.         })
  698.         local Weld = AddInstance("Weld",{
  699.             Parent = Arm4,
  700.             Part0 = LeftArm,
  701.             C0 = CFrame.new(0,.5,0)*CFrame.Angles(0,0,0),
  702.             Part1 = Arm4,
  703.         })
  704.             local Arm5 = AddInstance("Part",{
  705.             Parent = Arms, 
  706.             Name = "RightArm", 
  707.             CFrame = RightArm.CFrame,
  708.             formFactor = "Symmetric",
  709.             Size = Vector3.new(.86,.8,.86),
  710.             CanCollide = false,
  711.             Material = "SmoothPlastic",
  712.             TopSurface = "Smooth",
  713.             BottomSurface = "Smooth",
  714.             Locked = true,
  715.             BrickColor=BrickColor.new("White"),
  716.             Transparency = 0
  717.         })
  718.         local Weld = AddInstance("Weld",{
  719.             Parent = Arm5,
  720.             Part0 = RightArm,
  721.             C0 = CFrame.new(0,-.55,0)*CFrame.Angles(0,0,0),
  722.             Part1 = Arm5,
  723.         })
  724.  
  725. local Reaper6 = AddInstance("Part",{
  726.             Parent = Arms,     
  727.             CFrame = RightArm.CFrame,
  728.             formFactor = "Symmetric",
  729.             Size = Vector3.new(0.1, 0.1, .1),
  730.             CanCollide = false,
  731.             TopSurface = "Smooth",
  732.             BottomSurface = "Smooth",
  733.             Locked = true,
  734.             Transparency = 1
  735.         })
  736.         local Weld = AddInstance("Weld",{
  737.             Parent = Reaper6,
  738.             Part0 = RightArm,
  739.             C0 = CFrame.new(-0.35,-1.8,-0.4)*CFrame.Angles(4.7,3.4,0),
  740.             Part1 = Reaper6,
  741.         })
  742.         local Mesh = AddInstance("SpecialMesh",{
  743.             Parent = Reaper6,
  744.             MeshId = "rbxassetid://470533002",
  745.             TextureId = "rbxassetid://470533004",
  746.             Scale = Vector3.new(.029,.029,.029),
  747.             VertexColor = Vector3.new(1,1,1),
  748.         })             
  749.            
  750.            
  751.            
  752.            
  753.            
  754.            
  755.            
  756.            
  757.            
  758.            
  759.            
  760.            
  761.            
  762. local Reaper7 = AddInstance("Part",{
  763.             Parent = Arms,     
  764.             CFrame = RightArm.CFrame,
  765.             formFactor = "Symmetric",
  766.             Size = Vector3.new(0.1, 0.5, 3),
  767.             CanCollide = false,
  768.             TopSurface = "Smooth",
  769.             BottomSurface = "Smooth",
  770.             Locked = true,
  771.             Transparency = 1
  772.         })
  773.         local Weld = AddInstance("Weld",{
  774.             Parent = Reaper7,
  775.             Part0 = RightArm,
  776.             C0 = CFrame.new(-.1,-0.75,-.7)*CFrame.Angles(1.5,0,3),
  777.             Part1 = Reaper7,
  778.         })
  779.         local Mesh = AddInstance("SpecialMesh",{
  780.             Parent = Reaper7,
  781.             MeshId = "rbxassetid://431003868",
  782.             TextureId = "rbxassetid://430627740",
  783.             Scale = Vector3.new(1.9,1.98,1.98),
  784.             VertexColor = Vector3.new(1,1,1),
  785.         }) 
  786.  
  787.  
  788. head.face.Texture = "http://www.roblox.com/asset/?id=648887959"
  789. local NeckCF = cn(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  790. Humanoid.Animator:Destroy()
  791. Character.Animate:Destroy()
  792.  
  793. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  794. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  795. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  796.  
  797.  
  798. RSH, LSH = nil, nil
  799.  
  800. RW = Instance.new("Weld")
  801. LW = Instance.new("Weld")
  802.  
  803. RH = Torso["Right Hip"]
  804. LH = Torso["Left Hip"]
  805.  
  806. RSH = Torso["Right Shoulder"]
  807. LSH = Torso["Left Shoulder"]
  808.  
  809. RSH.Parent = nil
  810. LSH.Parent = nil
  811.  
  812. RW.Name = "RW"
  813. RW.Part0 = Torso
  814. RW.C0 = cn(1.5, 0.5, 0)
  815. RW.C1 = cn(0, 0.5, 0)
  816. RW.Part1 = RightArm
  817. RW.Parent = Torso
  818.  
  819. LW.Name = "LW"
  820. LW.Part0 = Torso
  821. LW.C0 = cn(-1.5, 0.5, 0)
  822. LW.C1 = cn(0, 0.5, 0)
  823. LW.Part1 = LeftArm
  824. LW.Parent = Torso
  825.  
  826. function clerp(a, b, t)
  827.     local qa = {
  828.         QuaternionFromCFrame(a)
  829.     }
  830.     local qb = {
  831.         QuaternionFromCFrame(b)
  832.     }
  833.     local ax, ay, az = a.x, a.y, a.z
  834.     local bx, by, bz = b.x, b.y, b.z
  835.     local _t = 1 - t
  836.     return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  837. end
  838.  
  839. function QuaternionFromCFrame(cf)
  840.     local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  841.     local trace = m00 + m11 + m22
  842.     if trace > 0 then
  843.         local s = math.sqrt(1 + trace)
  844.         local recip = 0.5 / s
  845.         return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  846.     else
  847.         local i = 0
  848.         if m11 > m00 then
  849.             i = 1
  850.         end
  851.         if m22 > (i == 0 and m00 or m11) then
  852.             i = 2
  853.         end
  854.         if i == 0 then
  855.             local s = math.sqrt(m00 - m11 - m22 + 1)
  856.             local recip = 0.5 / s
  857.             return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  858.         elseif i == 1 then
  859.             local s = math.sqrt(m11 - m22 - m00 + 1)
  860.             local recip = 0.5 / s
  861.             return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  862.         elseif i == 2 then
  863.             local s = math.sqrt(m22 - m00 - m11 + 1)
  864.             local recip = 0.5 / s
  865.             return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  866.         end
  867.     end
  868. end
  869.  
  870. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  871.     local xs, ys, zs = x + x, y + y, z + z
  872.     local wx, wy, wz = w * xs, w * ys, w * zs
  873.     local xx = x * xs
  874.     local xy = x * ys
  875.     local xz = x * zs
  876.     local yy = y * ys
  877.     local yz = y * zs
  878.     local zz = z * zs
  879.     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))
  880. end
  881.  
  882. function QuaternionSlerp(a, b, t)
  883.     local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  884.     local startInterp, finishInterp;
  885.     if cosTheta >= 0.0001 then
  886.         if (1 - cosTheta) > 0.0001 then
  887.             local theta = math.acos(cosTheta)
  888.             local invSinTheta = 1 / math.sin(theta)
  889.             startInterp = math.sin((1 - t) * theta) * invSinTheta
  890.             finishInterp = math.sin(t * theta) * invSinTheta  
  891.         else
  892.             startInterp = 1 - t
  893.             finishInterp = t
  894.         end
  895.     else
  896.         if (1 + cosTheta) > 0.0001 then
  897.             local theta = math.acos(-cosTheta)
  898.             local invSinTheta = 1 / math.sin(theta)
  899.             startInterp = math.sin((t - 1) * theta) * invSinTheta
  900.             finishInterp = math.sin(t * theta) * invSinTheta
  901.         else
  902.             startInterp = t - 1
  903.             finishInterp = t
  904.         end
  905.     end
  906.     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
  907. end
  908.  
  909. function swait(num)
  910.     if num == 0 or num == nil then
  911.         game:service'RunService'.RenderStepped:wait(0)
  912.     else
  913.         for i = 0, num do
  914.             game:service'RunService'.RenderStepped:wait(0)
  915.         end
  916.     end
  917. end
  918.  
  919. local RbxUtility = LoadLibrary("RbxUtility")
  920. local Create = RbxUtility.Create
  921.  
  922. function RemoveOutlines(part)
  923.     part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  924. end
  925.    
  926. function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  927.     local Part = Create("Part"){
  928.         formFactor = FormFactor,
  929.         Parent = Parent,
  930.         Reflectance = Reflectance,
  931.         Transparency = Transparency,
  932.         CanCollide = false,
  933.         Locked = true,
  934.         BrickColor = BrickColor.new(tostring(BColor)),
  935.         Name = Name,
  936.         Size = Size,
  937.         Material = Material,
  938.     }
  939.     RemoveOutlines(Part)
  940.     return Part
  941. end
  942.    
  943. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  944.     local Msh = Create(Mesh){
  945.         Parent = Part,
  946.         Offset = OffSet,
  947.         Scale = Scale,
  948.     }
  949.     if Mesh == "SpecialMesh" then
  950.         Msh.MeshType = MeshType
  951.         Msh.MeshId = MeshId
  952.     end
  953.     return Msh
  954. end
  955.    
  956. function CreateWeld(Parent, Part0, Part1, C0, C1)
  957.     local Weld = Create("Weld"){
  958.         Parent = Parent,
  959.         Part0 = Part0,
  960.         Part1 = Part1,
  961.         C0 = C0,
  962.         C1 = C1,
  963.     }
  964.     return Weld
  965. end
  966.  
  967. function rayCast(Position, Direction, Range, Ignore)
  968.     return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  969. end
  970.  
  971. function CreateSound(id, par, vol, pit)
  972.     coroutine.resume(coroutine.create(function()
  973.         local sou = Instance.new("Sound", par or workspace)
  974.         sou.Volume = vol
  975.         sou.Pitch = pit or 1
  976.         sou.SoundId = id
  977.         wait()
  978.         sou:play()
  979.         game:GetService("Debris"):AddItem(sou, 6)
  980.     end))
  981. end
  982.  
  983. local function getclosest(obj, distance)
  984.     local last, lastx = distance + 1
  985.     for i, v in pairs(workspace:GetChildren()) do
  986.         if v:IsA'Model' and v ~= Character and v:findFirstChild('Humanoid') and v:findFirstChild('Torso') and v:findFirstChild('Humanoid').Health > 0 then
  987.             local t = v.Torso
  988.             local dist = (t.Position - obj.Position).magnitude
  989.             if dist <= distance then
  990.                 if dist < last then
  991.                     last = dist
  992.                     lastx = v
  993.                 end
  994.             end
  995.         end
  996.     end
  997.     return lastx
  998. end
  999.  
  1000. function Damage(hit, damage, cooldown, Color1, Color2, HSound, HPitch)
  1001.     for i, v in pairs(hit:GetChildren()) do
  1002.         if v:IsA("Humanoid") and hit.Name ~= Character.Name then
  1003.             local find = v:FindFirstChild("Hitz")
  1004.             if not find then
  1005.                 if v.Parent:findFirstChild("Head") then
  1006.                     local BillG = Create("BillboardGui"){
  1007.                         Parent = v.Parent.Head,
  1008.                         Size = UDim2.new(1, 0, 1, 0),
  1009.                         Adornee = v.Parent.Head,
  1010.                         StudsOffset = Vector3.new(math.random(-3, 3), math.random(3, 5), math.random(-3, 3)),
  1011.                     }
  1012.                     local TL = Create("TextLabel"){
  1013.                         Parent = BillG,
  1014.                         Size = UDim2.new(3, 3, 3, 3),
  1015.                         BackgroundTransparency = 1,
  1016.                         Text = tostring(damage).."-",
  1017.                         TextColor3 = Color1.Color,
  1018.                         TextStrokeColor3 = Color2.Color,
  1019.                         TextStrokeTransparency = 0,
  1020.                         TextXAlignment = Enum.TextXAlignment.Center,
  1021.                         TextYAlignment = Enum.TextYAlignment.Center,
  1022.                         FontSize = Enum.FontSize.Size18,
  1023.                         Font = "ArialBold",
  1024.                     }
  1025.                     coroutine.resume(coroutine.create(function()
  1026.                         wait(1)
  1027.                         for i = 0, 1, .1 do
  1028.                             wait(.1)
  1029.                             BillG.StudsOffset = BillG.StudsOffset + Vector3.new(0, .1, 0)
  1030.                         end
  1031.                         BillG:Destroy()
  1032.                     end))
  1033.                 end
  1034.                 v.Health = v.Health - damage
  1035.                 local bool = Create("BoolValue"){
  1036.                     Parent = v,
  1037.                     Name = 'Hitz',
  1038.                 }
  1039.                 if HSound ~= nil and HPitch ~= nil then
  1040.                     CreateSound(HSound, hit, 1, HPitch)
  1041.                 end
  1042.                 game:GetService("Debris"):AddItem(bool, cooldown)
  1043.             end
  1044.         end
  1045.     end
  1046. end
  1047.  
  1048.  
  1049. function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  1050.     local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1051.     prt.Anchored = true
  1052.     prt.CFrame = cframe
  1053.     local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1054.     game:GetService("Debris"):AddItem(prt, 10)
  1055.     if Type == 1 or Type == nil then
  1056.         table.insert(Effects, {
  1057.             prt,
  1058.             "Block1",
  1059.             delay,
  1060.             x3,
  1061.             y3,
  1062.             z3,
  1063.             msh
  1064.         })
  1065.     elseif Type == 2 then
  1066.         table.insert(Effects, {
  1067.             prt,
  1068.             "Block2",
  1069.             delay,
  1070.             x3,
  1071.             y3,
  1072.             z3,
  1073.             msh
  1074.         })
  1075.     end
  1076. end
  1077.  
  1078. function SphereEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1079.     local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1080.     prt.Anchored = true
  1081.     prt.CFrame = cframe
  1082.     local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1083.     game:GetService("Debris"):AddItem(prt, 10)
  1084.     table.insert(Effects, {
  1085.         prt,
  1086.         "Cylinder",
  1087.         delay,
  1088.         x3,
  1089.         y3,
  1090.         z3,
  1091.         msh
  1092.     })
  1093. end
  1094.  
  1095. function RingEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1096.     local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  1097.     prt.Anchored = true
  1098.     prt.CFrame = cframe * CFrame.new(x1, y1, z1)
  1099.     local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1100.     game:GetService("Debris"):AddItem(prt, 10)
  1101.     table.insert(Effects, {
  1102.         prt,
  1103.         "Cylinder",
  1104.         delay,
  1105.         x3,
  1106.         y3,
  1107.         z3,
  1108.         msh
  1109.     })
  1110. end
  1111.  
  1112. function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1113.     local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1114.     prt.Anchored = true
  1115.     prt.CFrame = cframe
  1116.     local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1117.     game:GetService("Debris"):AddItem(prt, 10)
  1118.     table.insert(Effects, {
  1119.         prt,
  1120.         "Cylinder",
  1121.         delay,
  1122.         x3,
  1123.         y3,
  1124.         z3,
  1125.         msh
  1126.     })
  1127. end
  1128.  
  1129. function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1130.     local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1131.     prt.Anchored = true
  1132.     prt.CFrame = cframe
  1133.     local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1134.     game:GetService("Debris"):AddItem(prt, 10)
  1135.     table.insert(Effects, {
  1136.         prt,
  1137.         "Cylinder",
  1138.         delay,
  1139.         x3,
  1140.         y3,
  1141.         z3,
  1142.         msh
  1143.     })
  1144. end
  1145.  
  1146. function SpecialEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  1147.     local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  1148.     prt.Anchored = true
  1149.     prt.CFrame = cframe
  1150.     local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1151.     game:GetService("Debris"):AddItem(prt, 10)
  1152.     table.insert(Effects, {
  1153.         prt,
  1154.         "Cylinder",
  1155.         delay,
  1156.         x3,
  1157.         y3,
  1158.         z3,
  1159.         msh
  1160.     })
  1161. end
  1162.  
  1163. function BreakEffect(brickcolor, cframe, x1, y1, z1)
  1164.     local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  1165.     prt.Anchored = true
  1166.     prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1167.     local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  1168.     local num = math.random(10, 50) / 1000
  1169.     game:GetService("Debris"):AddItem(prt, 10)
  1170.     table.insert(Effects, {
  1171.         prt,
  1172.         "Shatter",
  1173.         num,
  1174.         prt.CFrame,
  1175.         math.random() - math.random(),
  1176.         0,
  1177.         math.random(50, 100) / 100
  1178.     })
  1179. end
  1180.  
  1181.  
  1182.    
  1183.  
  1184.     for i = 0, 1, 0.05 do
  1185.         swait()
  1186.         RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
  1187.         Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(0), math.rad(0)), .1)
  1188.         RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1)
  1189.         LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3)
  1190.         if Torsovelocity > 2 then
  1191.         RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-50 * math.cos(sine / 4)), math.rad(0), math.rad(4 * math.cos(sine / 4))), .2)
  1192.         RH.C0 = clerp(RH.C0, cn(1, -1 + .1 * math.cos(sine / 5), 0) * RHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 4))), .3)
  1193.         LH.C0 = clerp(LH.C0, cn(-1, -1 + .1 * math.cos(sine / 5), 0) * LHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 4))), .3)
  1194.         elseif Torsovelocity < 1 then
  1195.         RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1)
  1196.         RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1)
  1197.         LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1)
  1198.         end
  1199.     end
  1200.     attack = false
  1201.  
  1202.  
  1203.  
  1204. game:GetService'RunService'.Stepped:connect(function()
  1205.    
  1206.    
  1207.    
  1208.     if Wep == 1 then
  1209.         equippedgun2 = false
  1210. Reaper4.Transparency = 1   
  1211.     Reaper5.Transparency = 0
  1212.     Reaper6.Transparency = 1
  1213.     Reaper7.Transparency = 0
  1214.     end
  1215.         if Wep == 2 then
  1216.             equippedgun2 = true
  1217. Reaper4.Transparency = 0   
  1218.     Reaper5.Transparency = 1
  1219.         Reaper6.Transparency = 0
  1220.     Reaper7.Transparency = 1
  1221.         end
  1222.                 if Wep == 3 then
  1223.             equippedgun2 = false
  1224. Reaper4.Transparency = 1   
  1225.     Reaper5.Transparency = 1
  1226.             Reaper6.Transparency = 1
  1227.     Reaper7.Transparency = 1
  1228.         end
  1229.        
  1230.     Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  1231.     velocity = RootPart.Velocity.y
  1232.     sine = sine + change
  1233.     local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  1234.     if equipped == true or equipped == false then
  1235.         if RootPart.Velocity.y > 1 and hit == nil then
  1236.             Anim = "Jump"
  1237.             if attack == false and Wep == 1 then
  1238.                     RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(0)), .1)
  1239.                     Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(0)), .1)
  1240.                     RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-40), math.rad(0), math.rad(30)), .1)
  1241.                     LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-40), math.rad(0), math.rad(-30)), .1)
  1242.                     RH.C0 = clerp(RH.C0, cn(1, -.9, -.3) * RHCF * angles(math.rad(3), math.rad(0), math.rad(0)), .1)
  1243.                     LH.C0 = clerp(LH.C0, cn(-1, -.7, -.5) * LHCF * angles(math.rad(-3), math.rad(0), math.rad(0)), .1)
  1244.             end
  1245.         elseif RootPart.Velocity.y < -1 and hit == nil then
  1246.             Anim = "Fall"
  1247.             if attack == false and Wep == 1 then
  1248.                     RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), .1)
  1249.                     Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(0)), .1)
  1250.                     RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(50)), .1)
  1251.                     LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-50)), .1)
  1252.                     RH.C0 = clerp(RH.C0, cn(1, -1, -.3) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .1)
  1253.                     LH.C0 = clerp(LH.C0, cn(-1, -.8, -.3) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .1)
  1254.             end
  1255.         elseif Torsovelocity < 1 and hit ~= nil then
  1256.             Anim = "Idle"
  1257.             if attack == false and Wep == 1 then
  1258.                 change = 1
  1259.                     RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.1 + 0.1 * math.cos(sine / 25)) * angles(math.rad(0), math.rad(0), math.rad(5)), .1)
  1260.                     Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5 - 2 * math.cos(sine / 25)), math.rad(0), math.rad(-5)), .1)
  1261.                     RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5 - -.1 * math.cos(sine / 25), 0) * angles(math.rad(50), math.rad(35 - 25 * math.cos(sine / 25)), math.rad(5 + 3 * math.cos(sine / 25))), 0.1)
  1262.                     LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -.4) * angles(math.rad(80 + 7 * math.cos(sine / 25)), math.rad(-30), math.rad(35 - 1 * math.cos(sine / 25))), 0.1)
  1263.                     RH.C0 = clerp(RH.C0, cn(1, -.9 - 0.1 * math.cos(sine / 25), 0) * RHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(-5), math.rad(0 + 2 * math.cos(sine / 25))), .1)
  1264.                     LH.C0 = clerp(LH.C0, cn(-1, -.9 - 0.1 * math.cos(sine / 25), 0) * LHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(-5), math.rad(0 + 2 * math.cos(sine / 25))), .1)
  1265.             end
  1266.         elseif Torsovelocity > 2 and hit ~= nil then
  1267.             Anim = "Walk"
  1268.             if attack == false and Wep == 1 then
  1269.                     RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.05 + .1 * math.cos(sine / 3)) * angles(math.rad(5), math.rad(0) + RootPart.RotVelocity.Y / 30, math.rad(5 * math.cos(sine / 5))), .2)
  1270.                     Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-3), math.rad(0), math.rad(-5 * math.cos(sine / 5)) + RootPart.RotVelocity.Y / 9), .2)
  1271.                     RW.C0 = clerp(RW.C0, CFrame.new(1.2 - -.05 * math.cos(sine / 4), 0.5 - -.05 * math.cos(sine / 4), 0) * angles(math.rad(50), math.rad(57 - .1 * math.cos(sine / 25)), math.rad(5 + 3 * math.cos(sine / 25))), 0.1)
  1272.                     LW.C0 = clerp(LW.C0, CFrame.new(-1.2 - -.05 * math.cos(sine / 4), 0.4 - -.05 * math.cos(sine / 4), -.4) * angles(math.rad(80 + 1 * math.cos(sine / 25)), math.rad(-30), math.rad(35 - 1 * math.cos(sine / 25))), 0.1)
  1273.                     RH.C0 = clerp(RH.C0, cn(1, -.9 + -.1 * math.cos(sine / 4),0 + -.1 * math.cos(sine / 4)) * RHCF * angles(math.rad(-2), math.rad(0), math.rad(50 * math.cos(sine / 4))), .3)
  1274.                     LH.C0 = clerp(LH.C0, cn(-1, -.9 + .1 * math.cos(sine / 4), 0 + .1 * math.cos(sine / 4)) * LHCF * angles(math.rad(-2), math.rad(0), math.rad(50 * math.cos(sine / 4))), .3)
  1275.             end
  1276.         end
  1277.     end
  1278.     -----------------------[Anim2]--------------------------------------------------------------------------------------------------------------------------
  1279.    
  1280.         if equipped == true or equipped == false then
  1281.         if RootPart.Velocity.y > 1 and hit == nil then
  1282.             Anim = "Jump"
  1283.             if attack == false and Wep == 2 then
  1284.                     RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(0)), .1)
  1285.                     Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(0)), .1)
  1286.                     RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.2, 0) * angles(math.rad(60), math.rad(0 - .01 * math.cos(sine / 25)), math.rad(-40 + 0.1 * math.cos(sine / 25))), 0.1)
  1287.                     LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.1, -.4) * angles(math.rad(55 + 1 * math.cos(sine / 25)), math.rad(15), math.rad(-10 - 1 * math.cos(sine / 25))), 0.1)
  1288.                     RH.C0 = clerp(RH.C0, cn(1, -.9, -.3) * RHCF * angles(math.rad(3), math.rad(0), math.rad(0)), .1)
  1289.                     LH.C0 = clerp(LH.C0, cn(-1, -.7, -.5) * LHCF * angles(math.rad(-3), math.rad(0), math.rad(0)), .1)
  1290.             end
  1291.            
  1292.         elseif RootPart.Velocity.y < -1 and hit == nil then
  1293.             Anim = "Fall"
  1294.             if attack == false and Wep == 2 then
  1295.                     RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), .1)
  1296.                     Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(0)), .1)
  1297.                     RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.8, 0) * angles(math.rad(60), math.rad(0 - .01 * math.cos(sine / 25)), math.rad(-40 + 0.1 * math.cos(sine / 25))), 0.05)
  1298.                     LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.7, -.4) * angles(math.rad(55 + 1 * math.cos(sine / 25)), math.rad(15), math.rad(-10 - 1 * math.cos(sine / 25))), 0.05)
  1299.                     RH.C0 = clerp(RH.C0, cn(1, -1, -.3) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .1)
  1300.                     LH.C0 = clerp(LH.C0, cn(-1, -.8, -.3) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .1)
  1301.             end
  1302.         elseif Torsovelocity < 1 and hit ~= nil then
  1303.             Anim = "Idle"
  1304.             if attack == false and Wep == 2 then
  1305.                 change = 1
  1306.                     RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.1 + 0.1 * math.cos(sine / 25)) * angles(math.rad(0), math.rad(0), math.rad(5)), .1)
  1307.                     Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5 - 2 * math.cos(sine / 25)), math.rad(0), math.rad(-5)), .1)
  1308.                     RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(60), math.rad(0 - .01 * math.cos(sine / 25)), math.rad(-40 + 0.1 * math.cos(sine / 25))), 0.1)
  1309.                     LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -.4) * angles(math.rad(55 + 1 * math.cos(sine / 25)), math.rad(15), math.rad(-10 - 1 * math.cos(sine / 25))), 0.1)
  1310.                     RH.C0 = clerp(RH.C0, cn(1, -.9 - 0.1 * math.cos(sine / 25), 0) * RHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(-5), math.rad(0 + 2 * math.cos(sine / 25))), .1)
  1311.                     LH.C0 = clerp(LH.C0, cn(-1, -.9 - 0.1 * math.cos(sine / 25), 0) * LHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(-5), math.rad(0 + 2 * math.cos(sine / 25))), .1)
  1312.             end
  1313.         elseif Torsovelocity > 2 and hit ~= nil then
  1314.             Anim = "Walk"
  1315.             if attack == false and Wep == 2 then
  1316.                     RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.05 + .1 * math.cos(sine / 3)) * angles(math.rad(5), math.rad(0) + RootPart.RotVelocity.Y / 30, math.rad(-25 - 5 * math.cos(sine / 5))), .2)
  1317.                     Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-3), math.rad(0), math.rad(25 + 5 * math.cos(sine / 5)) + RootPart.RotVelocity.Y / 9), .2)
  1318.                     RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(60), math.rad(0 - .01 * math.cos(sine / 25)), math.rad(-40 + 0.1 * math.cos(sine / 25))), 0.1)
  1319.                     LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -.4) * angles(math.rad(55 + 1 * math.cos(sine / 25)), math.rad(15), math.rad(-10 - 1 * math.cos(sine / 25))), 0.1)
  1320.                     RH.C0 = clerp(RH.C0, cn(.95, -.9 + -.1 * math.cos(sine / 4),-.35) * RHCF * angles(math.rad(-2), math.rad(25), math.rad(50 * math.cos(sine / 4))), .3)
  1321.                     LH.C0 = clerp(LH.C0, cn(-.95, -.9 + .1 * math.cos(sine / 4), .35) * LHCF * angles(math.rad(-2), math.rad(25), math.rad(50 * math.cos(sine / 4))), .3)
  1322.             end
  1323.            
  1324.         end
  1325.     end
  1326.    
  1327.    
  1328.    
  1329.         -----------------------[Noraml Anim]--------------------------------------------------------------------------------------------------------------------------
  1330.  
  1331.     if equipped == true or equipped == false then
  1332.         if RootPart.Velocity.y > 1 and hit == nil then
  1333.             Anim = "Jump"
  1334.             if attack == false and Wep == 3 then
  1335.                     RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(0)), .1)
  1336.                     Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(0)), .1)
  1337.                     RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-40), math.rad(0), math.rad(30)), .1)
  1338.                     LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-40), math.rad(0), math.rad(-30)), .1)
  1339.                     RH.C0 = clerp(RH.C0, cn(1, -.9, -.3) * RHCF * angles(math.rad(3), math.rad(0), math.rad(0)), .1)
  1340.                     LH.C0 = clerp(LH.C0, cn(-1, -.7, -.5) * LHCF * angles(math.rad(-3), math.rad(0), math.rad(0)), .1)
  1341.             end
  1342.         elseif RootPart.Velocity.y < -1 and hit == nil then
  1343.             Anim = "Fall"
  1344.             if attack == false and Wep == 3 then
  1345.                     RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), .1)
  1346.                     Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(0)), .1)
  1347.                     RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(50)), .1)
  1348.                     LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-50)), .1)
  1349.                     RH.C0 = clerp(RH.C0, cn(1, -1, -.3) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .1)
  1350.                     LH.C0 = clerp(LH.C0, cn(-1, -.8, -.3) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .1)
  1351.             end
  1352.         elseif Torsovelocity < 1 and hit ~= nil then
  1353.             Anim = "Idle"
  1354.             if attack == false and Wep == 3 then
  1355.                 change = 1
  1356.                     RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.1 + 0.1 * math.cos(sine / 25)) * angles(math.rad(0), math.rad(0), math.rad(5)), .1)
  1357.                     Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5 - 2 * math.cos(sine / 25)), math.rad(0), math.rad(-5)), .1)
  1358.                     RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5 - 0 * math.cos(sine / 25), 0) * angles(math.rad(0), math.rad(0 - 0 * math.cos(sine / 25)), math.rad(5 + 3 * math.cos(sine / 25))), 0.1)
  1359.                     LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0 + 0 * math.cos(sine / 25)), math.rad(-0), math.rad(-5 - 3 * math.cos(sine / 25))), 0.1)
  1360.                     RH.C0 = clerp(RH.C0, cn(1, -.9 - 0.1 * math.cos(sine / 25), 0) * RHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(-5), math.rad(0 + 2 * math.cos(sine / 25))), .1)
  1361.                     LH.C0 = clerp(LH.C0, cn(-1, -.9 - 0.1 * math.cos(sine / 25), 0) * LHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(-5), math.rad(0 + 2 * math.cos(sine / 25))), .1)
  1362.             end
  1363.         elseif Torsovelocity > 2 and hit ~= nil then
  1364.             Anim = "Walk"
  1365.             if attack == false and Wep == 3 then
  1366.                     RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.05 + .1 * math.cos(sine / 3)) * angles(math.rad(5), math.rad(0) + RootPart.RotVelocity.Y / 30, math.rad(5 * math.cos(sine / 5))), .2)
  1367.                     Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-3), math.rad(0), math.rad(-5 * math.cos(sine / 5)) + RootPart.RotVelocity.Y / 9), .2)
  1368.                     RW.C0 = clerp(RW.C0, CFrame.new(1.5 - -0 * math.cos(sine / 4), 0.5 - -.05 * math.cos(sine / 4), 0) * angles(math.rad(10 + -50 * math.cos(sine / 4)), math.rad(0 - .1 * math.cos(sine / 25)), math.rad(5 + 3 * math.cos(sine / 25))), 0.3)
  1369.                     LW.C0 = clerp(LW.C0, CFrame.new(-1.5 - -0 * math.cos(sine / 4), 0.5 - -.05 * math.cos(sine / 4), 0) * angles(math.rad(10 + 50 * math.cos(sine / 4)), math.rad(-0), math.rad(-5 - 3 * math.cos(sine / 25))), 0.3)
  1370.                     RH.C0 = clerp(RH.C0, cn(1, -.9 + -.1 * math.cos(sine / 4),0 + -.1 * math.cos(sine / 4)) * RHCF * angles(math.rad(-2), math.rad(0), math.rad(50 * math.cos(sine / 4))), .3)
  1371.                     LH.C0 = clerp(LH.C0, cn(-1, -.9 + .1 * math.cos(sine / 4), 0 + .1 * math.cos(sine / 4)) * LHCF * angles(math.rad(-2), math.rad(0), math.rad(50 * math.cos(sine / 4))), .3)
  1372.             end
  1373.         end
  1374.     end
  1375.    
  1376.    
  1377.    
  1378.    
  1379.    
  1380.    
  1381.    
  1382.    
  1383.    
  1384.    
  1385.    
  1386.    
  1387.    
  1388.    
  1389.    
  1390.    
  1391.    
  1392.    
  1393.     if #Effects > 0 then
  1394.         for e = 1, #Effects do
  1395.             if Effects[e] ~= nil then
  1396.                 local Thing = Effects[e]
  1397.                 if Thing ~= nil then
  1398.                     local Part = Thing[1]
  1399.                     local Mode = Thing[2]
  1400.                     local Delay = Thing[3]
  1401.                     local IncX = Thing[4]
  1402.                     local IncY = Thing[5]
  1403.                     local IncZ = Thing[6]
  1404.                     if Thing[1].Transparency <= 1 then
  1405.                         if Thing[2] == "Block1" then
  1406.                             Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  1407.                             local Mesh = Thing[1].Mesh
  1408.                             Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1409.                             Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1410.                         elseif Thing[2] == "Block2" then
  1411.                             Thing[1].CFrame = Thing[1].CFrame
  1412.                             local Mesh = Thing[7]
  1413.                             Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1414.                             Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1415.                         elseif Thing[2] == "Cylinder" then
  1416.                             local Mesh = Thing[1].Mesh
  1417.                             Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1418.                             Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1419.                         elseif Thing[2] == "Blood" then
  1420.                             local Mesh = Thing[7]
  1421.                             Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, .5, 0)
  1422.                             Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  1423.                             Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1424.                         elseif Thing[2] == "Elec" then
  1425.                             local Mesh = Thing[1].Mesh
  1426.                             Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  1427.                             Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1428.                         elseif Thing[2] == "Disappear" then
  1429.                             Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1430.                         elseif Thing[2] == "Shatter" then
  1431.                             Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  1432.                             Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  1433.                             Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  1434.                             Thing[6] = Thing[6] + Thing[5]
  1435.                         end
  1436.                     else
  1437.                         Part.Parent = nil
  1438.                         table.remove(Effects, e)
  1439.                     end
  1440.                 end
  1441.             end
  1442.         end
  1443.     end
  1444. end)
  1445.  
  1446.  
  1447.  
  1448.  
  1449.  
  1450.  
  1451.  
  1452.  
  1453.  
  1454.  
  1455.  
  1456.  
  1457.  
  1458. local No = Instance.new("Sound", head);
  1459. No.SoundId = "rbxassetid://245064504"
  1460. No.Volume = 3
  1461. local yes = Instance.new("Sound", head);
  1462. yes.SoundId = "rbxassetid://131384028"
  1463. yes.Volume = 3
  1464. local HitM = Instance.new("Sound", Reaper5);
  1465. HitM.SoundId = "rbxassetid://"..WSH
  1466. HitM.Volume = 1.1
  1467. local Swing = Instance.new("Sound", Reaper5);
  1468. Swing.SoundId = "rbxassetid://10209850"
  1469. Swing.Volume = 1.5
  1470. Swing.Pitch = 1.1
  1471. local SwingH = Instance.new("Sound", Reaper5);
  1472. SwingH.SoundId = "rbxassetid://10209590"
  1473. SwingH.Volume = 2.9
  1474. SwingH.Pitch = .8
  1475. local Taunt = Instance.new("Sound", head);
  1476. Taunt.SoundId = "rbxassetid://150611842"
  1477. Taunt.Volume = 2
  1478. local RUS = Instance.new("Sound", char);
  1479. RUS.SoundId = "rbxassetid://322621962"
  1480. RUS.Volume = 2.5
  1481. RUS.Pitch = 1
  1482. RUS.Looped = true
  1483.  
  1484.  
  1485.  
  1486.  
  1487.  
  1488.  
  1489.  
  1490.  
  1491.  
  1492.  
  1493. function BuildSentry()
  1494. do --CFrame lerp (stravant, clerp by AntiBoomz0r)
  1495.         local function QuaternionFromCFrame(cf)  -- y u no axis angle interpolation?
  1496.                 local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1497.                 local trace = m00 + m11 + m22
  1498.                 if trace > 0 then
  1499.                         local s = math.sqrt(1 + trace)
  1500.                         local recip = 0.5/s
  1501.                         return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
  1502.                 else
  1503.                         local i = 0
  1504.                         if m11 > m00 then
  1505.                                 i = 1
  1506.                         end
  1507.                         if m22 > (i == 0 and m00 or m11) then
  1508.                                 i = 2
  1509.                         end
  1510.                         if i == 0 then
  1511.                                 local s = math.sqrt(m00-m11-m22+1)
  1512.                                 local recip = 0.5/s
  1513.                                 return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
  1514.                         elseif i == 1 then
  1515.                                 local s = math.sqrt(m11-m22-m00+1)
  1516.                                 local recip = 0.5/s
  1517.                                 return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
  1518.                         elseif i == 2 then
  1519.                                 local s = math.sqrt(m22-m00-m11+1)
  1520.                                 local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
  1521.                         end
  1522.                 end
  1523.         end
  1524.         local function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1525.                 local xs, ys, zs = x + x, y + y, z + z
  1526.                 local wx, wy, wz = w*xs, w*ys, w*zs
  1527.                 local xx = x*xs
  1528.                 local xy = x*ys
  1529.                 local xz = x*zs
  1530.                 local yy = y*ys
  1531.                 local yz = y*zs
  1532.                 local zz = z*zs
  1533.                 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))
  1534.         end  
  1535.         function QuaternionSlerp(a, b, t)
  1536.                 local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
  1537.                 local startInterp, finishInterp;
  1538.                 if cosTheta >= 0.0001 then
  1539.                         if (1 - cosTheta) > 0.0001 then
  1540.                                 local theta = math.acos(cosTheta)
  1541.                                 local invSinTheta = 1/math.sin(theta)
  1542.                                 startInterp = math.sin((1-t)*theta)*invSinTheta
  1543.                                 finishInterp = math.sin(t*theta)*invSinTheta  
  1544.                         else
  1545.                                 startInterp = 1-t
  1546.                                 finishInterp = t
  1547.                         end
  1548.                 else
  1549.                         if (1+cosTheta) > 0.0001 then
  1550.                                 local theta = math.acos(-cosTheta)
  1551.                                 local invSinTheta = 1/math.sin(theta)
  1552.                                 startInterp = math.sin((t-1)*theta)*invSinTheta
  1553.                                 finishInterp = math.sin(t*theta)*invSinTheta
  1554.                         else
  1555.                                 startInterp = t-1
  1556.                                 finishInterp = t
  1557.                         end
  1558.                 end
  1559.                 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
  1560.         end  
  1561.         function clerp(a,b,t)
  1562.                 local qa = {QuaternionFromCFrame(a)}
  1563.                 local qb = {QuaternionFromCFrame(b)}
  1564.                 local ax, ay, az = a.x, a.y, a.z
  1565.                 local bx, by, bz = b.x, b.y, b.z  
  1566.                 local _t = 1-t
  1567.                 return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
  1568.         end
  1569. end
  1570.  
  1571.  
  1572.  
  1573.  
  1574. local ABS = math.abs;
  1575. local SIN = math.sin;
  1576. local ASIN = math.asin;
  1577. local COS = math.cos;
  1578.  
  1579. local new = Instance.new;
  1580.  
  1581. function math_pos(float)
  1582.     if float < 0 then float = 0 end
  1583.     return float
  1584. end
  1585. function math_neg(float)
  1586.     if float > 0 then float = 0 end
  1587.     return float
  1588. end
  1589. function math_max(float, max)
  1590.     if float > max then float = max end
  1591.     return float
  1592. end
  1593. function math_min(float, min)
  1594.     if float > min then float = min end
  1595.     return float
  1596. end
  1597.  
  1598. function SharpSin(double_p1)
  1599.     return ASIN(SIN(double_p1));
  1600. end
  1601.  
  1602. local Storage = Instance.new("Model", script);
  1603.  
  1604. function WeldP(part0, part1, C0, C1)
  1605.     local W = new("Weld", Storage);
  1606.     W.Part0 = part0;
  1607.     W.Part1 = part1;
  1608.     W.C0 = C0 or CFrame.new();
  1609.     W.C1 = C1 or CFrame.new();
  1610.     return W;
  1611. end
  1612.  
  1613. function Bevel(part, sizeV3)
  1614.     local BvlMesh = new("SpecialMesh", part)
  1615.     BvlMesh.MeshId = "rbxasset://fonts/torso.mesh";
  1616.     if (sizeV3 ~= nil) then
  1617.         BvlMesh.Scale = Vector3.new(sizeV3.x/2, sizeV3.y/2, sizeV3.z);
  1618.     else
  1619.         BvlMesh.Scale = Vector3.new(part.Size.x/2, part.Size.y/2, part.Size.z);
  1620.     end
  1621. end
  1622.  
  1623.  
  1624.  
  1625. local Scale = 0.5 -- 1 is size of a robloxian (mostly);
  1626.  
  1627. Storage.Name = "ä";
  1628.  
  1629. local BasePart = new("Part");
  1630. BasePart.FormFactor = "Custom";
  1631. BasePart.TopSurface = 10;
  1632. BasePart.BottomSurface = 10;
  1633. BasePart.LeftSurface = 10;
  1634. BasePart.RightSurface = 10;
  1635. BasePart.FrontSurface = 10;
  1636. BasePart.BackSurface = 10;
  1637.  
  1638. local CylPart = new("Part");
  1639. CylPart.FormFactor = "Custom";
  1640. CylPart.TopSurface = 10;
  1641. CylPart.BottomSurface = 10;
  1642. CylPart.LeftSurface = 10;
  1643. CylPart.RightSurface = 10;
  1644. CylPart.FrontSurface = 10;
  1645. CylPart.BackSurface = 10;
  1646. new("CylinderMesh", CylPart);
  1647.  
  1648. local TopFrame = BasePart:clone()
  1649. TopFrame.Parent = Storage;
  1650. TopFrame.Size = Vector3.new(3.5*Scale, 1.5*Scale, 3.5*Scale);
  1651. TopFrame.BrickColor = TeamColor;
  1652.  
  1653. new("CylinderMesh", TopFrame);
  1654.  
  1655. local Screw = CylPart:clone();
  1656. Screw.Parent = Storage;
  1657. Screw.Size = Vector3.new(.3*Scale, 1.6*Scale, .3*Scale);
  1658. Screw.BrickColor = BrickColor.new(199);
  1659.  
  1660. local CGreyStyle = CylPart:clone()
  1661. CGreyStyle.Parent = Storage;
  1662. CGreyStyle.Size = Vector3.new(2.2*Scale, 1.52*Scale, 2.6*Scale);
  1663. CGreyStyle.BrickColor = BrickColor.new(199);
  1664.  
  1665. local TurretCasing = BasePart:clone();
  1666. TurretCasing.Size = Vector3.new(2.2*Scale, 1.4*Scale, 5.6*Scale);
  1667. TurretCasing.BrickColor = BrickColor.new(199);
  1668. TurretCasing.Parent = Storage;
  1669.  
  1670. Bevel(TurretCasing);
  1671.  
  1672. local TurretFront = BasePart:clone();
  1673. TurretFront.Size = Vector3.new(1.7*Scale, 1*Scale, .2*Scale);
  1674. TurretFront.BrickColor = TeamColor;
  1675. TurretFront.Parent = Storage;
  1676.  
  1677. local Barrel = CylPart:clone();
  1678. Barrel.Parent = Storage;
  1679. Barrel.Size = Vector3.new(.7*Scale, .4*Scale, .7*Scale);
  1680. Barrel.BrickColor = BrickColor.Black();
  1681.  
  1682.  
  1683.         local Particle = Instance.new("ParticleEmitter", Barrel);
  1684.         Particle.VelocitySpread = 30;
  1685.         Particle.LightEmission = 200;
  1686.  
  1687.         local Colors = {Color3.new(1,.5,0), Color3.new(1,.7,0), Color3.new(1,.9,0);}
  1688.  
  1689.         Particle.Size = NumberSequence.new(.05,.07);
  1690.  
  1691.         Particle.Color = ColorSequence.new(Colors[math.random(#Colors)]);
  1692.         Particle.Texture = "rbxassetid://252350680";
  1693.         Particle.RotSpeed = NumberRange.new(10,70);
  1694.         Particle.Rate = 300;
  1695.         Particle.Speed = NumberRange.new(15);
  1696.         Particle.Transparency = NumberSequence.new(0,1);
  1697.         Particle.Lifetime = NumberRange.new(.01,.2);
  1698. Particle.Enabled = false
  1699.  
  1700.  
  1701.  
  1702. local RedDot = BasePart:clone();
  1703. RedDot.Parent = Storage;
  1704. RedDot.Size = Vector3.new(.2*Scale, .2*Scale, .2*Scale);
  1705. RedDot.BrickColor = BrickColor.new("Really red");
  1706.  
  1707. local Sphere = Instance.new("SpecialMesh", RedDot);
  1708. Sphere.MeshType = "Sphere";
  1709. Sphere.Scale = Vector3.new(1*Scale,1*Scale,1*Scale);
  1710.  
  1711.  
  1712. Bevel(TurretFront, Vector3.new(1.7*Scale, 1*Scale, .05*Scale));
  1713.  
  1714. local Joint = CylPart:clone();
  1715. Joint.Parent = Storage;
  1716. Joint.Size = Vector3.new(.7*Scale, 2*Scale, .7*Scale);
  1717. Joint.BrickColor = BrickColor.Black();
  1718.  
  1719. local Hold = BasePart:clone();
  1720. Hold.Parent = Storage;
  1721. Hold.BrickColor = BrickColor.Black();
  1722. Hold.Size = Vector3.new(2.2*Scale, .2*Scale, .75*Scale);
  1723.  
  1724. local Bolt = BasePart:clone();
  1725. Bolt.Size = Vector3.new(.2*Scale, 1.5*Scale, .5*Scale);
  1726. Bolt.Parent = Storage;
  1727. Bolt.BrickColor = BrickColor.Black();
  1728.  
  1729. local Bolt2 = BasePart:clone();
  1730. Bolt2.Size = Vector3.new(.2*Scale, 1.5*Scale, .5*Scale);
  1731. Bolt2.Parent = Storage;
  1732. Bolt2.BrickColor = BrickColor.Black();
  1733.  
  1734.  
  1735. local TurretToFrame = WeldP(TopFrame, TurretCasing, CFrame.new(0, 0, 1.4*Scale));
  1736. WeldP(TopFrame, CGreyStyle);
  1737. WeldP(TurretCasing, TurretFront, CFrame.new(0, 0, 2.8*Scale));
  1738. WeldP(TopFrame, Screw);
  1739. local BarrelWeld = WeldP(Barrel, TurretFront, CFrame.new(.3*Scale, -.2*Scale, 0), CFrame.Angles(math.pi/2, 0, 0));
  1740.  
  1741. WeldP(RedDot, TurretFront, CFrame.new(-.55*Scale, 0, -.15*Scale), CFrame.Angles(math.pi/2, 0, 0));
  1742.  
  1743. local RotateAxisY = WeldP(Bolt, TurretCasing, CFrame.Angles(0,0,0), CFrame.new(1.1*Scale, -.75*Scale, 1*Scale));
  1744.  
  1745. WeldP(Bolt, Hold, CFrame.new(-1.1*Scale, -.5*Scale, 0));
  1746.  
  1747. WeldP(Bolt2, Hold, CFrame.new(1.1*Scale, -.5*Scale, 0));
  1748.  
  1749. local RotateAxisX = WeldP(Hold, Joint, CFrame.new(0, -1*Scale, 0));
  1750.  
  1751.  
  1752.  
  1753. local Leg1 = BasePart:clone();
  1754. Leg1.Size = Vector3.new(.2*Scale, 3.5*Scale, .5*Scale);
  1755. Leg1.Parent = Storage;
  1756. Leg1.BrickColor = BrickColor.Black();
  1757.  
  1758.  
  1759. WeldP(Leg1, Joint, CFrame.new(0, -1.75*Scale, 0), CFrame.new(0, -.75*Scale, 0) * CFrame.Angles(math.pi/3, 0, math.pi));
  1760.  
  1761.  
  1762. local Leg2 = BasePart:clone();
  1763. Leg2.Size = Vector3.new(.2*Scale, 3.5*Scale, .5*Scale);
  1764. Leg2.Parent = Storage;
  1765. Leg2.BrickColor = BrickColor.Black();
  1766.  
  1767.  
  1768. WeldP(Leg2, Joint, CFrame.new(0, -1.75*Scale, 0), CFrame.new(0, -.45*Scale, 0) * CFrame.Angles(-math.pi/4, 0, math.pi + -math.pi/6));
  1769.  
  1770.  
  1771. local Leg3 = BasePart:clone();
  1772. Leg3.Size = Vector3.new(.2*Scale, 3.5*Scale, .5*Scale);
  1773. Leg3.Parent = Storage;
  1774. Leg3.BrickColor = BrickColor.Black();
  1775.  
  1776.  
  1777. WeldP(Leg3, Joint, CFrame.new(0, -1.75*Scale, 0), CFrame.new(0, -.45*Scale, 0) * CFrame.Angles(-math.pi/4, 0, math.pi + math.pi/6));
  1778.  
  1779.     for i,v in pairs(Storage:children()) do
  1780.         if v.Name== "Part" then
  1781.             trans = 1
  1782.             v.Transparency = 1
  1783.         end
  1784.         end
  1785.  
  1786. local InvisiBox = BasePart:clone();
  1787. InvisiBox.Size = Storage:GetModelSize() + Vector3.new(2*Scale, 0, 0);
  1788. InvisiBox.Parent = Storage;
  1789. InvisiBox.Transparency = 1
  1790. InvisiBox.Name = 'box'
  1791. WeldP(InvisiBox, Joint, CFrame.new(0, -.2*Scale, .97*Scale));
  1792.  
  1793. local InvisiBox2 = BasePart:clone();
  1794. InvisiBox2.Size = Storage:GetModelSize() + Vector3.new(2*Scale, 0, 0);
  1795. InvisiBox2.Parent = Arms;
  1796. InvisiBox2.Transparency = .9
  1797. InvisiBox2.Name = 'box'
  1798. InvisiBox2.CanCollide = false
  1799. InvisiBox2.BrickColor = TeamColor
  1800. InvisiBox2.Material = 'Neon'
  1801. WeldP(InvisiBox2, Joint, CFrame.new(0, -1.2*Scale, .97*Scale));
  1802.  
  1803. InvisiBox.CFrame = torso.CFrame * CFrame.new(0, 5.5*Scale, -2.9) * CFrame.Angles(0, math.pi, 0);
  1804.  
  1805. local Action = "Idle";
  1806.  
  1807. local Target = nil;
  1808.  
  1809. wait(1)
  1810.  
  1811. InvisiBox.Anchored = true
  1812.  
  1813. for i,v in pairs(Storage:children()) do
  1814.     if v:IsA'Part' then
  1815.         v.Locked = true
  1816.     end
  1817. end
  1818. --//
  1819. --// SOUNDS
  1820. --//
  1821.     for i,v in pairs(Storage:children()) do
  1822.         if v.Name== "Part" then
  1823.             trans = 1
  1824.             v.Transparency = 1
  1825.         end
  1826.         end
  1827.     for i,v in pairs(Storage:children()) do
  1828.         if v.Name== "Part" then
  1829.             trans = 1
  1830.             v.Transparency = 1
  1831.         for i = 1,11 do
  1832.                
  1833.             trans = trans - .1
  1834.             v.Transparency = trans
  1835.             wait()
  1836.             end
  1837.             end
  1838.     end
  1839.     trans = 1
  1840.  
  1841. local OnFind = new("Sound", TopFrame);
  1842. OnFind.SoundId = "rbxassetid://10209260"
  1843. OnFind.Volume = 1
  1844.  
  1845.  
  1846. local OnFire = new("Sound", TopFrame);
  1847. OnFire.SoundId = "rbxassetid://10209257"
  1848. OnFire.Volume = 1
  1849.  
  1850. local OnEmpty = new("Sound", TopFrame);
  1851. OnEmpty.SoundId = "rbxassetid://10209225"
  1852. OnEmpty.Volume = 1
  1853.  
  1854. local Scanning = new("Sound", TopFrame);
  1855. Scanning.SoundId = "rbxassetid://258704234"
  1856. Scanning.Volume = 1
  1857.  
  1858. local Explode = new("Sound", TopFrame);
  1859. Explode.SoundId = "rbxassetid://10209236"
  1860. Explode.Volume = .5
  1861.  
  1862. local Move = new("Sound", TopFrame);
  1863. Move.SoundId = "rbxassetid://258704467";
  1864. Move.Volume = 1;
  1865.  
  1866.  
  1867.  
  1868.  
  1869.  
  1870. function FindShortest(Table)
  1871. local Current = Table[1]
  1872. local Final
  1873. for _,v in pairs(Table) do
  1874. if v[2] ~= Current[2] then
  1875. if v[1] < Current[1] then
  1876. Current = v
  1877. end
  1878. end
  1879. end
  1880. Final = Current
  1881. return Final
  1882. end
  1883.  
  1884. function GetNearbyPlayer()
  1885.  
  1886.     local List = {}
  1887.     for i,v in pairs(workspace:children()) do
  1888.         if (v ~= nil) then
  1889.             if (v:IsA'Model') then
  1890.                 if (v:findFirstChild'Torso' ~= nil) then
  1891.                     local rx, ry, rz = Hold.CFrame:toEulerAnglesXYZ();
  1892.                     if (v:findFirstChild'Torso'.Position - Hold.CFrame * CFrame.new(0, 0, 20) * CFrame.Angles(0, ry, 0).p).magnitude < 20 then
  1893.                         if (v ~= char) then
  1894.                             for x,z in next, v:children() do
  1895.                                 if z:IsA'Humanoid' and z.Health > 0.01 then
  1896.                                     table.insert(List, {(v:findFirstChild'Torso'.Position - Hold.CFrame * CFrame.new(0, 0, 20) * CFrame.Angles(0, ry, 0).p).magnitude, v})
  1897.                                 end
  1898.                             end
  1899.                         end
  1900.                     end
  1901.                 end
  1902.             end
  1903.         end
  1904.     end
  1905.     if (FindShortest(List) ~= nil) then
  1906.         return FindShortest(List)[2];
  1907.     else
  1908.         return nil;
  1909.     end
  1910. end
  1911.  
  1912. local Health = Instance.new("Humanoid", Storage);
  1913. Health.MaxHealth = 150;
  1914. Health.Health = 150;
  1915.  
  1916.  
  1917.  
  1918. function RayC(Part, speed)
  1919.     coroutine.wrap(function()
  1920.         local Visual = BasePart:clone();
  1921.         Visual.FormFactor = "Custom";
  1922.         Visual.BrickColor = BrickColor.Yellow();
  1923.         Visual.Size = Vector3.new(.2, 3, .2);
  1924.         Visual.CFrame = Part.CFrame * CFrame.new(0, -1, 0);
  1925.         Visual.Anchored = true;
  1926.         Visual.CanCollide = false;
  1927.         Visual.Locked = true
  1928.  
  1929.  
  1930.         coroutine.wrap(function()
  1931.  
  1932.             wait(.2)
  1933.            
  1934.             wait(.1);
  1935.             wait(.3)
  1936.  
  1937.         end)()
  1938.  
  1939.         Instance.new("SpecialMesh", Visual).MeshType = "Sphere";
  1940.         Visual.Mesh.Scale = Vector3.new(.5, 1, .5);
  1941.  
  1942.         local bulletpos = Visual.Position
  1943.         local bulletvelocity = (Part.CFrame.p - bulletpos).unit*speed
  1944.         local lastbulletpos = Visual.Position
  1945.         Visual.Parent = Storage;
  1946.         while game:service'RunService'.Stepped:wait() do
  1947.  
  1948.                     lastbulletpos = bulletpos
  1949.                     bulletpos = bulletpos + bulletvelocity
  1950.                     local RayCast = Ray.new(lastbulletpos, (bulletpos - lastbulletpos))
  1951.                     local hit, hitpos = workspace:FindPartOnRay(RayCast, Storage, false, true)
  1952.                     if (Joint.Position - Visual.Position).magnitude > 1000 or Visual.Parent == nil then
  1953.                         Visual:Destroy();
  1954.                         break
  1955.                     end
  1956.                     Visual.Anchored = true
  1957.                     Visual.CFrame = CFrame.new(bulletpos, bulletpos+bulletvelocity) * CFrame.Angles(math.pi/2, 0, 0);
  1958.                     if hit then
  1959.                         if hit.Parent:IsA'Hat' then
  1960.                             if hit.Parent.Parent:IsA'Model' then
  1961.                                 for x,z in next, hit.Parent.Parent:children() do
  1962.                                     if z:IsA'Humanoid' then
  1963.                                         z:TakeDamage(math.random(8,12));
  1964.                                     end
  1965.                                 end
  1966.                             end
  1967.                         else
  1968.                             if hit.Parent:IsA'Model' then
  1969.                                 for x,z in next, hit.Parent:children() do
  1970.                                     if z:IsA'Humanoid' then
  1971.                                         z:TakeDamage(math.random(8,12));
  1972.                                     end
  1973.                                 end
  1974.                             end
  1975.                         end
  1976.  
  1977.                         Visual:Destroy();
  1978.                         break
  1979.                     end
  1980.         end
  1981.     end)()
  1982. end
  1983.  
  1984. lastTick = tick();
  1985. local db = false;
  1986. game:service'RunService'.RenderStepped:connect(function()
  1987.     if Action == "DEAD" then return end;
  1988.  
  1989.  
  1990.     if not Wrangler then
  1991.         --//
  1992.         --// AUTOMATED MODE, MOTION SENSOR WILL DETECT MOVEMENT
  1993.         --//
  1994.  
  1995.  
  1996.         --//
  1997.         --// IF PLAYER USED WRANGLER, THERE IS A SHIELD WICH MUST BE REMOVED
  1998.         --//
  1999.  
  2000.         if (Storage:findFirstChild'Shield') then
  2001.             Storage:findFirstChild'Shield':Destroy();
  2002.         end
  2003.  
  2004.         local LastTarget = Target;
  2005.  
  2006.         --//
  2007.         --// CHECK FOR NEARBY ENEMIES
  2008.         --//
  2009.         local Player = GetNearbyPlayer();
  2010.         Target = Player;
  2011.  
  2012.         --//
  2013.         --// BEEP ON TARGET FOUND
  2014.         --//
  2015.         if (Target ~= LastTarget and Target ~= nil) then
  2016.             Move.Pitch = 0.9 + math.random()/9;
  2017.             Move:play();
  2018.             OnFind:play();
  2019.             Action = "Standby";
  2020.         end
  2021.  
  2022.         --//
  2023.         --// IDLE
  2024.         --//
  2025.         if Action == "Idle" then
  2026.             RotateAxisX.C1 = clerp(RotateAxisX.C1, CFrame.Angles(0, SharpSin(tick()*2)*.2, 0), .1);
  2027.             RotateAxisY.C0 = clerp(RotateAxisY.C0, CFrame.new(), .1);
  2028.         end
  2029.  
  2030.  
  2031.         --//
  2032.         --// SENTRY DEAD
  2033.         --//
  2034.  
  2035.         --//
  2036.         --// IF PLAYER EXISTS, FIRE!
  2037.         --//
  2038.  
  2039.  
  2040.  
  2041.         if Action == "Standby" then
  2042.             pcall(function()
  2043.                 local tor = Target.Torso.CFrame.p -- Target CFrame
  2044.                 local direction = InvisiBox.CFrame.lookVector -- Direction handling, welds mess up, just a workaround.
  2045.                 local heading = math.atan2(direction.x, direction.z)--
  2046.                 local RotY = math.deg(heading)
  2047.                     if RotY < 0 then
  2048.                         RotY = (360 - math.abs(RotY));
  2049.                     end
  2050.                 RotateAxisX.C1 = --Begin here
  2051.                 clerp(RotateAxisX.C1,
  2052.                 CFrame.new(
  2053.  
  2054.                   Vector3.new(), --The Pivot0 of pointing the weld.
  2055.                   Vector3.new(tor.x, 0, tor.z) - Vector3.new(RotateAxisX.Part1.CFrame.x, 0, RotateAxisX.Part1.CFrame.z)) --We point the sentry here
  2056.  
  2057.                 * CFrame.Angles(0, math.rad(360) - math.rad(RotY), 0),
  2058.                 .1
  2059.                 );
  2060.                
  2061.                 local Point = Hold.CFrame:toObjectSpace(CFrame.new(Hold.CFrame.p,tor))*CFrame.Angles(0,math.rad(180),0)
  2062.                 local RX, RY, RZ = Point:toEulerAnglesXYZ()
  2063.                 if math.deg(RX) > 45 then
  2064.                     RX = math.rad(45)
  2065.                 elseif math.deg(RX) < -55 then
  2066.                     RX = math.rad(-55)
  2067.                 end
  2068.                 RotateAxisY.C0 = clerp(RotateAxisY.C0,CFrame.Angles(RX,0,0),.1)
  2069.                
  2070.             end)
  2071.         end
  2072.         if Action == "Fire" then
  2073.             pcall(function()
  2074.                 local tor = Target.Torso.CFrame.p;
  2075.                 local direction = InvisiBox.CFrame.lookVector
  2076.                 local heading = math.atan2(direction.x, direction.z)
  2077.                 local RotY = math.deg(heading)
  2078.                     if RotY < 0 then
  2079.                         RotY = (360 - math.abs(RotY));
  2080.                     end
  2081.                 RotateAxisX.C1 = --Begin here
  2082.                 clerp(RotateAxisX.C1,
  2083.                 CFrame.new(
  2084.  
  2085.                   Vector3.new(), --The Pivot0 of pointing the weld.
  2086.                   Vector3.new(tor.x, 0, tor.z) - Vector3.new(RotateAxisX.Part1.CFrame.x, 0, RotateAxisX.Part1.CFrame.z)) --We point the sentry here
  2087.  
  2088.                 * CFrame.Angles(0, math.rad(360) - math.rad(RotY), 0),
  2089.                 .1
  2090.                 );
  2091.  
  2092.                 BarrelWeld.C0 = clerp(BarrelWeld.C0, CFrame.new())
  2093.                 local Point = Hold.CFrame:toObjectSpace(CFrame.new(Hold.CFrame.p,tor))*CFrame.Angles(0,math.rad(180),0)
  2094.                 local RX, RY, RZ = Point:toEulerAnglesXYZ()
  2095.                 if math.deg(RX) > 45 then
  2096.                     RX = math.rad(45)
  2097.                 elseif math.deg(RX) < -55 then
  2098.                     RX = math.rad(-55)
  2099.                 end
  2100.                 RotateAxisY.C0 = clerp(RotateAxisY.C0,CFrame.Angles(RX,0,0),.1)
  2101.             end)
  2102.         end
  2103.  
  2104.         if (Target ~= nil) then
  2105.             if Action == "Fire" or db then return end
  2106.             if Action == "Standby" then
  2107.                 db = true
  2108.                 wait(.2);
  2109.             end
  2110.             Action = "Fire";
  2111.             db = false
  2112.             OnFire:play();
  2113.  
  2114.         Particle.Color = ColorSequence.new(Colors[math.random(#Colors)]);
  2115.  
  2116.             local PointLight = Instance.new("PointLight", Barrel);
  2117.             PointLight.Color = Color3.new(1,.8,0)
  2118.             PointLight.Brightness = 6;
  2119. Particle.Enabled = true
  2120.             game:service'Debris':AddItem(PointLight, .05);
  2121.  
  2122.  
  2123.  
  2124.             RayC(Barrel, 20)
  2125.  
  2126.  
  2127.  
  2128.  
  2129.             wait(.1)
  2130. Particle.Enabled = false
  2131.             if (Target ~= nil) then
  2132.                 Action = "Standby";
  2133.             else
  2134.                 Action = "Idle";
  2135.             end
  2136.         end
  2137.  
  2138.         if tick() - lastTick > 2.5 and Target == nil then
  2139.             lastTick = tick();
  2140.             Scanning:play();
  2141.         end
  2142.     end
  2143.  
  2144.     if (Health.Health < 0.0001 or RotateAxisX.Parent == nil) then
  2145.             Action = "DEAD";
  2146.             if db then return end
  2147.             RotateAxisY:Destroy();
  2148.             TurretToFrame:Destroy();
  2149.             Joint:Destroy();
  2150. InvisiBox2:Destroy();
  2151.             db = true
  2152.             local expl = Instance.new("Explosion", Storage);
  2153.            
  2154. expl.BlastRadius = .3;
  2155. expl.BlastPressure = 2050000;
  2156.             expl.Position = TopFrame.Position;
  2157. Explode:Play()
  2158. NoSentry = true
  2159.             game:service'Debris':AddItem(Storage, 3);
  2160.            
  2161.         end
  2162.  
  2163. end)
  2164. end
  2165.  
  2166.  
  2167.  
  2168. combo = 0
  2169.     function strike(hit)
  2170.         if hit and hit.Parent and hit.Parent.Name ~= char.Name then
  2171.             local targetHumanoid = hit.Parent:FindFirstChild("Humanoid")
  2172.             if targetHumanoid and targetHumanoid ~= char:FindFirstChild("Humanoid") then
  2173.                 if combo == 1 then
  2174.                     targetHumanoid:TakeDamage(slashDamage)
  2175.                     SwingH:Play()
  2176.                
  2177.                 end
  2178.  
  2179.  
  2180.  
  2181.             end
  2182.         end
  2183.     end
  2184.  
  2185.  
  2186.  
  2187. Reaper5.Touched:connect(strike)
  2188. --------------------------------------------------------------------------------------------------------------------------
  2189.         function AnimSit()
  2190.             for i = 0, 1, 0.05 do
  2191.                
  2192.         swait()
  2193.         RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, -1, -.6) * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
  2194.         Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
  2195.         LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.3, .1) * angles(math.rad(20), math.rad(0), math.rad(20)), 0.1)
  2196.         RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(0), math.rad(0), math.rad(5)), 0.1)
  2197.         RH.C0 = clerp(RH.C0, cn(1, -.4, -.4) * RHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1)
  2198.         LH.C0 = clerp(LH.C0, cn(-1, -1, -.6) * LHCF * angles(math.rad(-2), math.rad(5), math.rad(60)), .1)
  2199.         end
  2200.            
  2201.         end
  2202.        
  2203.         function AnimSitHit1()
  2204.             for i = 0, 1, 0.05 do
  2205.                
  2206.         swait()
  2207.         RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, -1, -.6) * angles(math.rad(10), math.rad(0), math.rad(0)), .1)
  2208.         Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(0), math.rad(0)), .1)
  2209.         LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.3, .1) * angles(math.rad(20), math.rad(0), math.rad(20)), 0.1)
  2210.         RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(170), math.rad(0), math.rad(-5)), 0.08)
  2211.         RH.C0 = clerp(RH.C0, cn(1, -.4, -.4) * RHCF * angles(math.rad(-2), math.rad(5), math.rad(10)), .1)
  2212.         LH.C0 = clerp(LH.C0, cn(-1, -1, -.6) * LHCF * angles(math.rad(-2), math.rad(5), math.rad(50)), .1)
  2213.         end
  2214.            
  2215.         end
  2216.        
  2217.        
  2218.                 function AnimSitHit2()
  2219.             for i = 0, 1, 0.05 do
  2220.                
  2221.         swait()
  2222.         RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, -1, -.6) * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
  2223.         Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(15), math.rad(0), math.rad(0)), .1)
  2224.         LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.3, .1) * angles(math.rad(20), math.rad(0), math.rad(20)), 0.1)
  2225.         RW.C0 = clerp(RW.C0, CFrame.new(1.55, 0.4, -.1) * angles(math.rad(40), math.rad(3 ), math.rad(-15)), 0.3)
  2226.         RH.C0 = clerp(RH.C0, cn(1, -.4, -.4) * RHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1)
  2227.         LH.C0 = clerp(LH.C0, cn(-1, -1, -.6) * LHCF * angles(math.rad(-2), math.rad(5), math.rad(60)), .1)
  2228.         end
  2229.            
  2230.             end    
  2231. --------------------------------------------------------------------------------------------------------------------------
  2232.  
  2233.                 function No1()
  2234.             for i = 0, 1, 0.05 do
  2235.                
  2236.         swait()
  2237.         RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0,0,0) * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
  2238.         Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(30), math.rad(0), math.rad(40)), .1)
  2239.         LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, -.1) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  2240.         RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(30), math.rad(0), math.rad(0)), 0.1)
  2241.         RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1)
  2242.         LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1)
  2243.         end
  2244.            
  2245.             end
  2246.  
  2247.  
  2248.  
  2249.                 function No2()
  2250.             for i = 0, 1, 0.05 do
  2251.                
  2252.         swait()
  2253.         RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0,0,0) * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
  2254.         Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(-40)), .1)
  2255.         LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, -.1) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  2256.         RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(30), math.rad(0), math.rad(0)), 0.1)
  2257.         RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1)
  2258.         LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1)
  2259.         end
  2260.            
  2261.             end
  2262.  
  2263.  
  2264.  
  2265. --------------------------------------------------------------------------------------------------------------------------
  2266.  
  2267.                 function Yes1()
  2268.             for i = 0, 1, 0.1 do
  2269.                
  2270.         swait()
  2271.         RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0,0,0) * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
  2272.         Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(25), math.rad(0), math.rad(0)), .1)
  2273.         LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, -.1) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  2274.         RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(30), math.rad(0), math.rad(0)), 0.1)
  2275.         RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1)
  2276.         LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1)
  2277.         end
  2278.            
  2279.             end
  2280.  
  2281.  
  2282.  
  2283.                 function Yes2()
  2284.             for i = 0, 1, 0.1 do
  2285.                
  2286.         swait()
  2287.         RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0,0,0) * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
  2288.         Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .1)
  2289.         LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, -.1) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
  2290.         RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(30), math.rad(0), math.rad(0)), 0.1)
  2291.         RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1)
  2292.         LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1)
  2293.         end
  2294.            
  2295.             end
  2296.  
  2297.  
  2298.  
  2299. --------------------------------------------------------------------------------------------------------------------------
  2300. function AttackAnim1()
  2301. for i = 0, 1, 0.05 do
  2302.         swait()
  2303.         RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(0)), .1)
  2304.         Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(0), math.rad(0)), .1)
  2305.         RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(170), math.rad(0), math.rad(10)), 0.08)
  2306.         LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(40), math.rad(0), math.rad(10)), 0.3)
  2307.         if Torsovelocity > 2 then
  2308.         RH.C0 = clerp(RH.C0, cn(1, -1 + .1 * math.cos(sine / 5), 0) * RHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 4))), .3)
  2309.         LH.C0 = clerp(LH.C0, cn(-1, -1 + .1 * math.cos(sine / 5), 0) * LHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 4))), .3)
  2310.         elseif Torsovelocity < 1 then
  2311.         RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-2), math.rad(5), math.rad(-5)), .1)
  2312.         LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-2), math.rad(5), math.rad(5)), .1)
  2313.         end
  2314. end
  2315. end
  2316.  
  2317.  
  2318. function AttackAnim2()
  2319. for i = 0, 1, 0.05 do
  2320.         swait()
  2321.         RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(5), math.rad(0), math.rad(0)), .2)
  2322.         Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(0), math.rad(0)), .1)
  2323.         RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(5), math.rad(10), math.rad(-10)), 0.25)
  2324.         LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(10)), 0.3)
  2325.         if Torsovelocity > 2 then
  2326.                     RH.C0 = clerp(RH.C0, cn(1, -.9 + -.1 * math.cos(sine / 4),0 + -.1 * math.cos(sine / 4)) * RHCF * angles(math.rad(-2), math.rad(0), math.rad(50 * math.cos(sine / 4))), .3)
  2327.                     LH.C0 = clerp(LH.C0, cn(-1, -.9 + .1 * math.cos(sine / 4), 0 + .1 * math.cos(sine / 4)) * LHCF * angles(math.rad(-2), math.rad(0), math.rad(50 * math.cos(sine / 4))), .3)
  2328.    
  2329.         elseif Torsovelocity < 1 then
  2330.         RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-2), math.rad(5), math.rad(5)), .1)
  2331.         LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-2), math.rad(5), math.rad(-5)), .1)
  2332.         end
  2333. end
  2334. end
  2335. --------------------------------------------------------------------------------------------------------------------------
  2336.  
  2337.  
  2338.  
  2339. function ShotAttackAnim1()
  2340. for i = 0, 1, 0.07 do
  2341.         swait()
  2342.  
  2343.         if Torsovelocity > 2 then
  2344.                     RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.05 + .1 * math.cos(sine / 3)) * angles(math.rad(5), math.rad(0) + RootPart.RotVelocity.Y / 30, math.rad(-50 - 5 * math.cos(sine / 5))), .2)
  2345.                     Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-3), math.rad(0), math.rad(50 + 5 * math.cos(sine / 5)) + RootPart.RotVelocity.Y / 9), .2)
  2346.                     RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(90), math.rad(0 - .01 * math.cos(sine / 25)), math.rad(-40 + 0.1 * math.cos(sine / 25))), 0.2)
  2347.                     LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -.4) * angles(math.rad(85 + 1 * math.cos(sine / 25)), math.rad(15), math.rad(-10 - 1 * math.cos(sine / 25))), 0.2)
  2348.                     RH.C0 = clerp(RH.C0, cn(.9, -.9 + -.1 * math.cos(sine / 4),-.6) * RHCF * angles(math.rad(-2), math.rad(50), math.rad(50 * math.cos(sine / 4))), .3)
  2349.                     LH.C0 = clerp(LH.C0, cn(-.9, -.9 + .1 * math.cos(sine / 4),  .5) * LHCF * angles(math.rad(-2), math.rad(50), math.rad(50 * math.cos(sine / 4))), .3)               
  2350.                
  2351.                
  2352.  
  2353.         elseif Torsovelocity < 1 then
  2354.            
  2355.            
  2356.                     RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), .2)
  2357.                     Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(50)), .2)
  2358.                     RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(90), math.rad(0 - .01 * math.cos(sine / 25)), math.rad(-40 + 0.1 * math.cos(sine / 25))), 0.2)
  2359.                     LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -.4) * angles(math.rad(85 + 1 * math.cos(sine / 25)), math.rad(15), math.rad(-10 - 1 * math.cos(sine / 25))), 0.2)
  2360.                     RH.C0 = clerp(RH.C0, cn(.9, -.9 - 0.1 * math.cos(sine / 25), -.6) * RHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(50), math.rad(10 + 2 * math.cos(sine / 25))), .2)
  2361.                     LH.C0 = clerp(LH.C0, cn(-.9, -.9 - 0.1 * math.cos(sine / 25), .5) * LHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(50), math.rad(10 + 2 * math.cos(sine / 25))), .2)           
  2362.            
  2363.  
  2364.         end
  2365. end
  2366. end
  2367.  
  2368.  
  2369.  
  2370.  
  2371.  
  2372. function ShotAttackAnim2()
  2373. for i = 0, 1, 0.05 do
  2374.         swait()
  2375.  
  2376.         if Torsovelocity > 2 then
  2377.                     RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.05 + .1 * math.cos(sine / 3)) * angles(math.rad(5), math.rad(0) + RootPart.RotVelocity.Y / 30, math.rad(-50 - 5 * math.cos(sine / 5))), .2)
  2378.                     Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-3), math.rad(0), math.rad(50 + 5 * math.cos(sine / 5)) + RootPart.RotVelocity.Y / 9), .2)
  2379.                     RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(100), math.rad(0 - .01 * math.cos(sine / 25)), math.rad(-40 + 0.1 * math.cos(sine / 25))), 0.1)
  2380.                     LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -.4) * angles(math.rad(75 + 1 * math.cos(sine / 25)), math.rad(15), math.rad(-10 - 1 * math.cos(sine / 25))), 0.1)
  2381.                     RH.C0 = clerp(RH.C0, cn(.9, -.9 + -.1 * math.cos(sine / 4),-.6) * RHCF * angles(math.rad(-2), math.rad(50), math.rad(50 * math.cos(sine / 4))), .3)
  2382.                     LH.C0 = clerp(LH.C0, cn(-.9, -.9 + .1 * math.cos(sine / 4),  .5) * LHCF * angles(math.rad(-2), math.rad(50), math.rad(50 * math.cos(sine / 4))), .3)               
  2383.                
  2384.                
  2385.  
  2386.         elseif Torsovelocity < 1 then
  2387.            
  2388.            
  2389.                     RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), .2)
  2390.                     Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(50)), .2)
  2391.                     RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.5, 0) * angles(math.rad(100), math.rad(0 - .01 * math.cos(sine / 25)), math.rad(-40 + 0.1 * math.cos(sine / 25))), 0.1)
  2392.                     LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.4, -.4) * angles(math.rad(75 + 1 * math.cos(sine / 25)), math.rad(15), math.rad(-10 - 1 * math.cos(sine / 25))), 0.1)
  2393.                     RH.C0 = clerp(RH.C0, cn(.9, -.9 - 0.1 * math.cos(sine / 25), -.6) * RHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(50), math.rad(10 + 2 * math.cos(sine / 25))), .2)
  2394.                     LH.C0 = clerp(LH.C0, cn(-.9, -.9 - 0.1 * math.cos(sine / 25), .5) * LHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(50), math.rad(10 + 2 * math.cos(sine / 25))), .2)           
  2395.            
  2396.  
  2397.         end
  2398. end
  2399. end
  2400.  
  2401.  
  2402.  
  2403. function ShotAttackAnim3()
  2404. for i = 0, 1, 0.05 do
  2405.         swait()
  2406.  
  2407.         if Torsovelocity > 2 then
  2408.                     RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.05 + .1 * math.cos(sine / 3)) * angles(math.rad(5), math.rad(0) + RootPart.RotVelocity.Y / 30, math.rad(-50 - 5 * math.cos(sine / 5))), .2)
  2409.                     Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-3), math.rad(0), math.rad(50 + 5 * math.cos(sine / 5)) + RootPart.RotVelocity.Y / 9), .2)
  2410.                     RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.56, -.2) * angles(math.rad(45), math.rad(-20 - .01 * math.cos(sine / 25)), math.rad(-70 + 0.1 * math.cos(sine / 25))), 0.2)
  2411.                     LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.6, -.6) * angles(math.rad(115 + 1 * math.cos(sine / 25)), math.rad(15), math.rad(-30 - 1 * math.cos(sine / 25))), 0.2)
  2412.                     RH.C0 = clerp(RH.C0, cn(.9, -.9 + -.1 * math.cos(sine / 4),-.6) * RHCF * angles(math.rad(-2), math.rad(50), math.rad(50 * math.cos(sine / 4))), .3)
  2413.                     LH.C0 = clerp(LH.C0, cn(-.9, -.9 + .1 * math.cos(sine / 4),  .5) * LHCF * angles(math.rad(-2), math.rad(50), math.rad(50 * math.cos(sine / 4))), .3)               
  2414.                
  2415.                
  2416.  
  2417.         elseif Torsovelocity < 1 then
  2418.            
  2419.            
  2420.                     RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), .2)
  2421.                     Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(50)), .2)
  2422.                     RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.56, -.2) * angles(math.rad(45), math.rad(-20 - .01 * math.cos(sine / 25)), math.rad(-70 + 0.1 * math.cos(sine / 25))), 0.2)
  2423.                     LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.6, -.6) * angles(math.rad(115 + 1 * math.cos(sine / 25)), math.rad(15), math.rad(-30 - 1 * math.cos(sine / 25))), 0.2)
  2424.                     RH.C0 = clerp(RH.C0, cn(.9, -.9 - 0.1 * math.cos(sine / 25), -.6) * RHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(50), math.rad(10 + 2 * math.cos(sine / 25))), .2)
  2425.                     LH.C0 = clerp(LH.C0, cn(-.9, -.9 - 0.1 * math.cos(sine / 25), .5) * LHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(50), math.rad(10 + 2 * math.cos(sine / 25))), .2)           
  2426.            
  2427.  
  2428.         end
  2429. end
  2430. end
  2431.  
  2432. function ShotAttackAnim4()
  2433. for i = 0, 1, 0.05 do
  2434.         swait()
  2435.  
  2436.         if Torsovelocity > 2 then
  2437.                     RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.05 + .1 * math.cos(sine / 3)) * angles(math.rad(5), math.rad(0) + RootPart.RotVelocity.Y / 30, math.rad(-50 - 5 * math.cos(sine / 5))), .2)
  2438.                     Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-3), math.rad(0), math.rad(50 + 5 * math.cos(sine / 5)) + RootPart.RotVelocity.Y / 9), .2)
  2439.                     RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.56, 0) * angles(math.rad(45), math.rad(-20 - .01 * math.cos(sine / 25)), math.rad(-70 + 0.1 * math.cos(sine / 25))), 0.2)
  2440.                     LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.6, -.8) * angles(math.rad(115 + 1 * math.cos(sine / 25)), math.rad(15), math.rad(-50 - 1 * math.cos(sine / 25))), 0.2)
  2441.                     RH.C0 = clerp(RH.C0, cn(.9, -.9 + -.1 * math.cos(sine / 4),-.6) * RHCF * angles(math.rad(-2), math.rad(50), math.rad(50 * math.cos(sine / 4))), .3)
  2442.                     LH.C0 = clerp(LH.C0, cn(-.9, -.9 + .1 * math.cos(sine / 4),  .5) * LHCF * angles(math.rad(-2), math.rad(50), math.rad(50 * math.cos(sine / 4))), .3)               
  2443.                
  2444.                
  2445.  
  2446.         elseif Torsovelocity < 1 then
  2447.            
  2448.            
  2449.                     RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), .2)
  2450.                     Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(0), math.rad(0), math.rad(50)), .2)
  2451.                     RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.56, 0) * angles(math.rad(45), math.rad(-20 - .01 * math.cos(sine / 25)), math.rad(-70 + 0.1 * math.cos(sine / 25))), 0.2)
  2452.                     LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.6, -.8) * angles(math.rad(115 + 1 * math.cos(sine / 25)), math.rad(15), math.rad(-50 - 1 * math.cos(sine / 25))), 0.2)
  2453.                     RH.C0 = clerp(RH.C0, cn(.9, -.9 - 0.1 * math.cos(sine / 25), -.6) * RHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(50), math.rad(10 + 2 * math.cos(sine / 25))), .2)
  2454.                     LH.C0 = clerp(LH.C0, cn(-.9, -.9 - 0.1 * math.cos(sine / 25), .5) * LHCF * angles(math.rad(-2 + 1 * math.cos(sine / 25)), math.rad(50), math.rad(10 + 2 * math.cos(sine / 25))), .2)           
  2455.            
  2456.  
  2457.         end
  2458. end
  2459. end
  2460. --------------------------------------------------------------------------------------------------------------------------
  2461.  
  2462.                 function DanAni1()
  2463.             for i = 0, .8, 0.05 + MusThingHat.Mesh.Scale.Y*0.025 do
  2464.                
  2465.         swait()
  2466.         RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0,0,-.4) * angles(math.rad(5), math.rad(-8), math.rad(0)), MusThingHat.Mesh.Scale.Y*0.2)
  2467.         Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(MusThingHat.Mesh.Scale.Y*30)    +math.rad(-10),0,math.rad(0)),MusThingHat.Mesh.Scale.Y*0.2)
  2468.         LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -.25) * angles(math.rad(170), math.rad(0), math.rad(20)), MusThingHat.Mesh.Scale.Y*0.2)
  2469.         RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.0) * angles(math.rad(90), math.rad(0), math.rad(-45)), MusThingHat.Mesh.Scale.Y*0.2)
  2470.         RH.C0 = clerp(RH.C0, cn(1, -.2, -.4) * RHCF * angles(math.rad(-4), math.rad(-15), math.rad(-5)), MusThingHat.Mesh.Scale.Y*0.3)
  2471.         LH.C0 = clerp(LH.C0, cn(-1, -1, -.0) * LHCF * angles(math.rad(4), math.rad(5), math.rad(5)), MusThingHat.Mesh.Scale.Y*0.2)
  2472.         end
  2473.            
  2474.             end
  2475.  
  2476.  
  2477.  
  2478.                 function DanAni2()
  2479.             for i = 0, .8, 0.05 + MusThingHat.Mesh.Scale.Y*0.025 do
  2480.                
  2481.         swait()
  2482.         RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0,0,-.5) * angles(math.rad(8), math.rad(8), math.rad(0)), MusThingHat.Mesh.Scale.Y*0.2)
  2483.         Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(MusThingHat.Mesh.Scale.Y*30)    +math.rad(-10),0,math.rad(0)),MusThingHat.Mesh.Scale.Y*0.2)
  2484.         LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.6, -.25) * angles(math.rad(180), math.rad(0), math.rad(25)), MusThingHat.Mesh.Scale.Y*0.2)
  2485.         RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.0) * angles(math.rad(0), math.rad(0), math.rad(45)), MusThingHat.Mesh.Scale.Y*0.2)
  2486.         RH.C0 = clerp(RH.C0, cn(1, -1, -.0) * RHCF * angles(math.rad(4), math.rad(-5), math.rad(-8)), MusThingHat.Mesh.Scale.Y*0.2)
  2487.         LH.C0 = clerp(LH.C0, cn(-1, -.2, -.4) * LHCF * angles(math.rad(-4), math.rad(15), math.rad(8)), MusThingHat.Mesh.Scale.Y*0.3)
  2488.         end
  2489.        
  2490.            
  2491.             end
  2492.  
  2493.  
  2494.  
  2495. --------------------------------------------------------------------------------------------------------------------------
  2496.  
  2497. BuildNow = false
  2498.        
  2499. Shotuse = false
  2500.        
  2501. wait2 = false
  2502.  
  2503. mouse.KeyDown:connect(function(key)
  2504.  
  2505.     if key == "g" and attack == false then
  2506. yes:Play()
  2507. head.face.Texture = "http://www.roblox.com/asset/?id=393521316"
  2508.         humanoid.WalkSpeed = 0
  2509.         attack = true
  2510.         Yes1()
  2511.         Yes2()
  2512.         Yes1()
  2513.         Yes2()
  2514.         attack = false
  2515.         humanoid.WalkSpeed = 16
  2516.         head.face.Texture = "http://www.roblox.com/asset/?id=156600391"
  2517.     end
  2518. end)
  2519.  
  2520.  
  2521. mouse.KeyDown:connect(function(key)
  2522.     if key == "e" and attack == false then
  2523. if Wep == 1 then
  2524. Wep = 2
  2525. else    
  2526. Wep = 1    
  2527. end    
  2528.        
  2529.        
  2530.     end
  2531.     end)
  2532.  
  2533. mouse.KeyDown:connect(function(key)
  2534.     if key == "p" and attack == false then
  2535.    
  2536. Wep = 3    
  2537.    
  2538.        
  2539.        
  2540.     end
  2541.     end)
  2542.  
  2543.  
  2544.  
  2545.  
  2546.  
  2547.  
  2548.  
  2549.  
  2550.  
  2551.  
  2552.  
  2553.  
  2554. equippedgun = true
  2555.  
  2556.  
  2557.  
  2558.  
  2559. coroutine.wrap(function()
  2560. while equippedgun do
  2561.  
  2562. if spread < 0 then spread = 0 end
  2563. if humanoid.Health == 0 then break end
  2564.      
  2565.  
  2566. game:service'RunService'.Stepped:wait()
  2567. end
  2568. end)()
  2569.    
  2570. mouse.Button1Down:connect(function()
  2571. if debounce then return end
  2572. if equippedgun2 == true and attack == false then
  2573.     Shotuse = true
  2574. debounce = true
  2575.  
  2576. wait(.2)
  2577.  
  2578. sound:play()
  2579.  
  2580.  
  2581.  
  2582. coroutine.wrap(function()
  2583. wait(0.3)
  2584. for angle = 0, 4 do
  2585.  
  2586. wait()
  2587. end
  2588.  
  2589. wait(0.2)
  2590. sound2:play()
  2591.  
  2592.  
  2593. wait(0.1)
  2594. for move = 0, 3 do
  2595. if move > 2 then return end
  2596.  
  2597.  
  2598. wait(0.06)
  2599. end
  2600. end)()
  2601. spread = spread + 1
  2602. coroutine.wrap(function()
  2603. for bullitz = 0, 7 do
  2604. if bullitz > 6 then return end
  2605. rayCast2(300, 1, Reaper4)
  2606. GunParticle.Enabled = true
  2607.             local PointLight = Instance.new("PointLight", Reaper4);
  2608.             PointLight.Color = Color3.new(.2,.2,0)
  2609.             PointLight.Brightness = 2;
  2610.             game:service'Debris':AddItem(PointLight, .05);
  2611. end
  2612. end)()
  2613. coroutine.wrap(function()
  2614. for _ = 0, 50 do
  2615. pcall(function()
  2616. spread = spread - 0.03
  2617. end)
  2618. wait()
  2619. end
  2620. end)()
  2621. wait(1)
  2622. debounce = false
  2623. end
  2624.  
  2625. end)
  2626.  
  2627.  
  2628.  
  2629.  
  2630.  
  2631.  
  2632.  
  2633.  
  2634.  
  2635. mouse.Button1Down:connect(function(key)
  2636.  
  2637.     if attack == false and Wep == 1 then
  2638. attack = true
  2639.  
  2640. AttackAnim1()
  2641. combo = 1
  2642. Swing:Play()
  2643. AttackAnim2()
  2644. attack = false
  2645. combo = 0
  2646.     end
  2647. end)
  2648.  
  2649.  
  2650.  
  2651. mouse.KeyDown:connect(function(key)
  2652.  
  2653.     if key == "f" and attack == false then
  2654.         No:Play()
  2655.         humanoid.WalkSpeed = 0
  2656.         attack = true
  2657.         No1()
  2658.         No2()
  2659.         attack = false
  2660.         humanoid.WalkSpeed = 16
  2661.     end
  2662. end)
  2663.  
  2664.  
  2665.  
  2666.  
  2667. mouse.KeyDown:connect(function(key)
  2668. if attack == false or DA == true then
  2669.     if key == "r" and Wep == 3 then
  2670.  
  2671. if DA == false then
  2672. DA = true
  2673. RUS:Play()
  2674. attack=true
  2675. humanoid.WalkSpeed = 0
  2676. head.face.Texture = "http://www.roblox.com/asset/?id=393521316"
  2677. else
  2678. DA = false
  2679. RUS:Stop()
  2680. attack=false
  2681. humanoid.WalkSpeed = 16
  2682. head.face.Texture = "http://www.roblox.com/asset/?id=156600391"
  2683. end
  2684.     end
  2685.     end
  2686.     end)
  2687.  
  2688.  
  2689.  
  2690. mouse.KeyDown:connect(function(key)
  2691.  
  2692.     if key == "t" and attack == false then
  2693.         Taunt:Play()
  2694.         humanoid.WalkSpeed = 0
  2695.         attack = true
  2696.         No1()
  2697.         Yes2()
  2698.         attack = false
  2699.         humanoid.WalkSpeed = 16
  2700.     end
  2701. end)
  2702.  
  2703. mouse.KeyDown:connect(function(key)
  2704.     if key == "z" then
  2705.        
  2706.        
  2707.        
  2708.     if  NoSentry == false and attack == false and wait2 == false  then
  2709. wait2 = true   
  2710.     for i,v in pairs(script:children()) do
  2711.         if (v:IsA'Model') then
  2712.            
  2713.            
  2714.                 for i,v in pairs(v:children()) do
  2715.                     if (v:IsA'Humanoid') then
  2716.                     v.Health = 0
  2717.                 end
  2718.             end
  2719.            
  2720.            
  2721.         end
  2722.        
  2723.     NoSentry = true
  2724.        
  2725.     end
  2726.        
  2727.        
  2728.        
  2729.     end
  2730.        
  2731.        
  2732.    
  2733.         if NoSentry == true and attack == false and wait2 == false and Wep == 1  then
  2734.         attack = true
  2735.          wait2 = true
  2736.         humanoid.WalkSpeed = 0
  2737. AnimSit()
  2738. AnimSitHit1()
  2739. WSH = WSHM[math.random(1,#WSHM)]
  2740. HitM.SoundId = "rbxassetid://"..WSH
  2741. HitM:Play()
  2742. BuildNow = true
  2743. AnimSitHit2()      
  2744. AnimSitHit1()
  2745. WSH = WSHM[math.random(1,#WSHM)]
  2746. HitM.SoundId = "rbxassetid://"..WSH
  2747. HitM:Play()
  2748. AnimSitHit2()      
  2749. AnimSitHit1()
  2750. WSH = WSHM[math.random(1,#WSHM)]
  2751. HitM.SoundId = "rbxassetid://"..WSH
  2752. HitM:Play()
  2753. AnimSitHit2()  
  2754. AnimSitHit1()
  2755. WSH = WSHM[math.random(1,#WSHM)]
  2756. HitM.SoundId = "rbxassetid://"..WSH
  2757. HitM:Play()
  2758. AnimSitHit2()
  2759. AnimSitHit1()
  2760. WSH = WSHM[math.random(1,#WSHM)]
  2761. HitM.SoundId = "rbxassetid://"..WSH
  2762. HitM:Play()
  2763. AnimSitHit2()
  2764. AnimSitHit1()
  2765. WSH = WSHM[math.random(1,#WSHM)]
  2766. HitM.SoundId = "rbxassetid://"..WSH
  2767. HitM:Play()
  2768. AnimSitHit2()  
  2769. AnimSitHit1()
  2770. WSH = WSHM[math.random(1,#WSHM)]
  2771. HitM.SoundId = "rbxassetid://"..WSH
  2772. HitM:Play()
  2773. AnimSitHit2()
  2774. AnimSitHit1()
  2775. WSH = WSHM[math.random(1,#WSHM)]
  2776. HitM.SoundId = "rbxassetid://"..WSH
  2777. HitM:Play()
  2778. AnimSitHit2()
  2779. AnimSitHit1()
  2780. WSH = WSHM[math.random(1,#WSHM)]
  2781. HitM.SoundId = "rbxassetid://"..WSH
  2782. HitM:Play()
  2783. AnimSitHit2()
  2784. AnimSitHit1()
  2785. WSH = WSHM[math.random(1,#WSHM)]
  2786. HitM.SoundId = "rbxassetid://"..WSH
  2787. HitM:Play()
  2788. AnimSitHit2()
  2789. AnimSit()          
  2790.  
  2791.     humanoid.WalkSpeed = 16    
  2792.         attack = false
  2793. NoSentry = false
  2794.  
  2795.         end
  2796.         wait()
  2797.        
  2798.         wait2 = false
  2799. end end)
  2800.  
  2801.  
  2802.  
  2803. humanoid.Died:connect(function()
  2804.     Arms:Destroy()
  2805. end)
  2806.  
  2807. print([[
  2808.    
  2809.    
  2810. ----------------------------------------
  2811. Tf2 Engineer Class
  2812. ----------------------------------------
  2813. Script by: 123jl123
  2814. Sentry by: Madiik
  2815. TheBoozled gave me a Mesh and Sounds from tf2
  2816. ----------------------------------------
  2817. Dont leak and dont do it.....
  2818. ----------------------------------------
  2819. ]])
  2820.  
  2821. game:GetService("RunService"):BindToRenderStep("ew", 0, function()
  2822.     MusThingHat.Mesh.Scale = Vector3.new(MusThingHat.Mesh.Scale.X, RUS.PlaybackLoudness / 160, MusThingHat.Mesh.Scale.Z)
  2823. end)
  2824.  
  2825.     local mesh1anan = Instance.new("SpecialMesh")
  2826.     mesh1anan.MeshType = Enum.MeshType.FileMesh
  2827.     mesh1anan.Scale = Vector3.new(3,3,3)
  2828. mesh1anan.MeshId = "http://www.roblox.com/asset/?id=521754610"
  2829. mesh1anan.TextureId = "http://www.roblox.com/asset/?id=521754612"
  2830.  
  2831. Glow1 = Color3.new(1,1,1)
  2832. Glow2 = Color3.new(0,0,0)
  2833.  
  2834. GlowParticle = Instance.new("ParticleEmitter")
  2835. GlowParticle.LightEmission = 1
  2836.  
  2837. GlowParticle.Size = NumberSequence.new(0,2)
  2838. GlowParticle.Texture = "http://www.roblox.com/asset/?id=52620985"
  2839. GlowParticle.Transparency = NumberSequence.new(0,1)
  2840. GlowParticle.LockedToPart = false
  2841. GlowParticle.Lifetime = NumberRange.new(0.5)
  2842. GlowParticle.Rate= 25
  2843. GlowParticle.Speed =NumberRange.new(0) 
  2844.    
  2845.    
  2846.     function RainDucks()
  2847.             local locationanan = char.Torso.CFrame
  2848.             local tacoa = Instance.new("Part")
  2849.             tacoa.Size = Vector3.new(.5,.5,.5)
  2850.             tacoa.CanCollide = false
  2851.             tacoa.RotVelocity = Vector3.new(math.random(0,6),math.random(0,6),math.random(0,6))
  2852.             local meshanananan = mesh1anan:clone()
  2853.             meshanananan.Parent = tacoa
  2854.             meshanananan.Scale = Vector3.new(1,1,1)
  2855.             tacoa.CFrame = locationanan * CFrame.new(math.random(-8,8),math.random(10,40),math.random(-8,8))
  2856.             tacoa.Parent = workspace
  2857.            
  2858.  
  2859.             game:GetService("Debris"):AddItem(tacoa,4) 
  2860.      local GP = GlowParticle:clone()
  2861.     GP.Parent = tacoa
  2862.     Glow1 = Color3.new(math.random(), math.random(), math.random())
  2863.     GP.Color = ColorSequence.new(Glow1,Glow2)
  2864.    
  2865.     end
  2866.    
  2867.    
  2868.    
  2869. --]]
  2870.  
  2871.  
  2872.  
  2873. while true do wait()
  2874.     if BuildNow == true then
  2875.     BuildNow = false
  2876.  
  2877. BuildSentry()      
  2878.     end
  2879.     if Shotuse == true then
  2880.         Shotuse = false
  2881.         attack = true
  2882.         ShotAttackAnim1()
  2883.         GunParticle.Enabled = false
  2884.         ShotAttackAnim2()
  2885.         ShotAttackAnim3()
  2886.         ShotAttackAnim4()
  2887.         ShotAttackAnim3()
  2888.         attack = false
  2889.     end
  2890.    
  2891.    
  2892.    
  2893.    
  2894. if DA == true then
  2895. DanAni1()  
  2896.     RainDucks()
  2897.             local PointLight = Instance.new("PointLight", Torso);
  2898.             PointLight.Color = Color3.new(math.random(), math.random(), math.random())
  2899.             PointLight.Brightness = 50;
  2900.             PointLight.Range = MusThingHat.Mesh.Scale.Y*10;
  2901.             game:service'Debris':AddItem(PointLight, .3);
  2902.    
  2903. DanAni2()  
  2904.     RainDucks()
  2905.             local PointLight = Instance.new("PointLight", Torso);
  2906.             PointLight.Color = Color3.new(math.random(), math.random(), math.random())
  2907.             PointLight.Brightness = 50;
  2908.             PointLight.Range = MusThingHat.Mesh.Scale.Y*10;
  2909.             game:service'Debris':AddItem(PointLight, .3);
  2910.    
  2911.  
  2912.    
  2913. end
  2914.    
  2915.  
  2916.    
  2917.    
  2918.    
  2919.    
  2920. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement