Advertisement
wamandnj

Untitled

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