Orangeplayer1431

Agent agony

May 11th, 2019
234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 92.15 KB | None | 0 0
  1. --https://github.com/Mokiros/roblox-FE-compatibility
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,game,owner = owner,game
  4. local RealPlayer = Player
  5. do print("FE Compatibility code V2 by Mokiros")local RealPlayer=RealPlayer;script.Parent=RealPlayer.Character;local a=function(b)b[1].f[b[2]]=nil end;local c={__index={disconnect=a,Disconnect=a}}local d={__index={Connect=function(b,e)local f=tostring(math.random(0,10000))while b.f[f]do f=tostring(math.random(0,10000))end;b.f[f]=e;return setmetatable({b,f},c)end}}d.__index.connect=d.__index.Connect;local function g()return setmetatable({f={}},d)end;local h={Hit=CFrame.new(),KeyUp=g(),KeyDown=g(),Button1Up=g(),Button1Down=g(),Button2Up=g(),Button2Down=g()}h.keyUp=h.KeyUp;h.keyDown=h.KeyDown;local i={InputBegan=g(),InputEnded=g()}local CAS={Actions={},BindAction=function(self,j,k,l,...)CAS.Actions[j]=k and{Name=j,Function=k,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function m(self,n,...)for o,e in pairs(self[n].f)do e(...)end end;h.T=m;i.T=m;local p=Instance.new("RemoteEvent")p.Name="UserInput_Event"p.OnServerEvent:Connect(function(q,r)if q~=RealPlayer then return end;h.Target=r.e;h.Hit=r.d;if not r.f then local s=r.c==Enum.UserInputState.Begin;if r.b==Enum.UserInputType.MouseButton1 then return h:T(s and"Button1Down"or"Button1Up")end;if r.b==Enum.UserInputType.MouseButton2 then return h:T(s and"Button2Down"or"Button2Up")end;for o,t in pairs(CAS.Actions)do for o,u in pairs(t.Keys)do if u==r.a then t.Function(t.Name,r.c,r)end end end;h:T(s and"KeyDown"or"KeyUp",r.a.Name:lower())i:T(s and"InputBegan"or"InputEnded",r,false)end end)p.Parent=NLS([==[local a=script:WaitForChild("UserInput_Event")local b=owner:GetMouse()local c=game:GetService("UserInputService")local d=function(e,f)if f then return end;a:FireServer({a=e.KeyCode,b=e.UserInputType,c=e.UserInputState,d=b.Hit,e=b.Target})end;c.InputBegan:Connect(d)c.InputEnded:Connect(d)local g,h;local i=game:GetService("RunService").Heartbeat;while true do if g~=b.Hit or h~=b.Target then g,h=b.Hit,b.Target;a:FireServer({f=1,Target=h,d=g})end;for j=1,2 do i:Wait()end end]==],script)local v=game;local w={__index=function(self,u)local x=rawget(self,"_RealService")if x then return typeof(x[u])=="function"and function(o,...)return x[u](x,...)end or x[u]end end,__newindex=function(self,u,y)local x=rawget(self,"_RealService")if x then x[u]=y end end}local function z(t,A)t._RealService=typeof(A)=="string"and v:GetService(A)or A;return setmetatable(t,w)end;local B={GetService=function(self,x)return rawget(self,x)or v:GetService(x)end,Players=z({LocalPlayer=z({GetMouse=function(self)return h end},Player)},"Players"),UserInputService=z(i,"UserInputService"),ContextActionService=z(CAS,"ContextActionService"),RunService=z({_btrs={},RenderStepped=v:GetService("RunService").Heartbeat,BindToRenderStep=function(self,j,o,k)self._btrs[j]=self.Heartbeat:Connect(k)end,UnbindFromRenderStep=function(self,j)self._btrs[j]:Disconnect()end},"RunService")}rawset(B.Players,"localPlayer",B.Players.LocalPlayer)B.service=B.GetService;z(B,game)game,owner=B,B.Players.LocalPlayer end
  6. ---------------
  7. --Agent Agony--
  8. ----------------------------------------------------------------
  9. --By CKbackup (Sugarie Saffron) --
  10. --YT: https://www.youtube.com/channel/UC8n9FFz7e6Zo13ob_5F9MJw--
  11. --Discord: Sugarie Saffron#4705 --
  12. ----------------------------------------------------------------
  13.  
  14. print([[
  15. --Agent Agony--
  16. By CKbackup (Sugarie Saffron)
  17. YT: https://www.youtube.com/channel/UC8n9FFz7e6Zo13ob_5F9MJw
  18. Discord: Sugarie Saffron#4705
  19. --------------------------------
  20. As I've been demoted from my SB
  21. Mod rank in VSB, I don't see the
  22. need to hold this back any longer.
  23.  
  24. Also, if the anims look weird or
  25. the weapon looks out of place,
  26. it's because it's actually modeled
  27. off a scaled rig with a package.
  28. It looks better with the Boy
  29. package.
  30. --------------------------------
  31. (Keys)
  32. M - Mute/Play Music
  33.  
  34. -Common Keys-
  35. F - Kick
  36. V - Stomp
  37. T - Equip/Unequip Pistol
  38. Y - Equip/Unequip Shotgun
  39.  
  40. -CQC (no weapon)-
  41. Click - Kick
  42. Z - Smash (AoE attack)
  43. X - Grab (to throw a player)
  44. C - Head Rip and Throw
  45.  
  46. -Pistol-
  47. Click - Shoot
  48.  
  49. -Shotgun-
  50. Click - Shoot
  51. Z - Load a Slug
  52. (this makes the next shotgun
  53. shot single, powerful, and
  54. accurate)
  55. ]])
  56.  
  57. wait(1/60)
  58. Effects = { }
  59. local Player = game:service'Players'.localPlayer
  60. local chara = Player.Character
  61. local Humanoid = chara:FindFirstChildOfClass("Humanoid")
  62. local Mouse = Player:GetMouse()
  63. local LeftArm = chara["Left Arm"]
  64. local RightArm = chara["Right Arm"]
  65. local LeftLeg = chara["Left Leg"]
  66. local RightLeg = chara["Right Leg"]
  67. local Head = chara.Head
  68. local Torso = chara.Torso
  69. local Camera = workspace.CurrentCamera
  70. local RootPart = chara.HumanoidRootPart
  71. local RootJoint = RootPart.RootJoint
  72. local attack = false
  73. local Anim = 'Idle'
  74. local attacktype = 1
  75. local delays = false
  76. local play = true
  77. local targetted = nil
  78. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  79. local velocity = RootPart.Velocity.y
  80. local sine = 0
  81. local change = 1
  82. local doe = 0
  83. local Create = LoadLibrary("RbxUtility").Create
  84. local debby = game:GetService("Debris")
  85. local CurrentWep = "CQC"
  86. Humanoid.WalkSpeed = 8
  87.  
  88. Humanoid.Animator.Parent = nil
  89. chara.Animate.Parent = nil
  90.  
  91. local newMotor = function(part0, part1, c0, c1)
  92. local w = Create('Motor'){
  93. Parent = part0,
  94. Part0 = part0,
  95. Part1 = part1,
  96. C0 = c0,
  97. C1 = c1,
  98. }
  99. return w
  100. end
  101.  
  102. function clerp(a, b, t)
  103. return a:lerp(b, t)
  104. end
  105.  
  106. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  107. NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  108.  
  109. LeftArm.Size = LeftArm.Size * 3
  110. RightArm.Size = RightArm.Size * 3
  111. LeftLeg.Size = LeftLeg.Size * 3
  112. RightLeg.Size = RightLeg.Size * 3
  113. Torso.Size = Torso.Size * 3
  114. Head.Size = Head.Size * 3
  115. RootPart.Size = RootPart.Size * 3
  116.  
  117. local RW = newMotor(Torso, RightArm, CFrame.new(4.5, 0, 0), CFrame.new(0, 0, 0))
  118. local LW = newMotor(Torso, LeftArm, CFrame.new(-4.5, 0, 0), CFrame.new(0, 0, 0))
  119. local Neck = newMotor(Torso, Head, CFrame.new(0,4.5,0), CFrame.new())
  120. local RH = newMotor(Torso, RightLeg, CFrame.new(1.5, -3, 0), CFrame.new(0, 0, 0))
  121. local LH = newMotor(Torso, LeftLeg, CFrame.new(-1.5, -3, 0), CFrame.new(0, 0, 0))
  122. local RootJoint = newMotor(RootPart, Torso, CFrame.new(0,-2,0), CFrame.new(0,-2,0))
  123.  
  124. local rarmc1 = RW.C1
  125. local larmc1 = LW.C1
  126. local rlegc1 = RH.C1
  127. local llegc1 = LH.C1
  128.  
  129. local resetc1 = false
  130.  
  131. function PlayAnimationFromTable(table, speed, bool)
  132. RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
  133. Neck.C0 = clerp(Neck.C0, table[2], speed)
  134. RW.C0 = clerp(RW.C0, table[3], speed)
  135. LW.C0 = clerp(LW.C0, table[4], speed)
  136. RH.C0 = clerp(RH.C0, table[5], speed)
  137. LH.C0 = clerp(LH.C0, table[6], speed)
  138. if bool == true then
  139. if resetc1 == false then
  140. resetc1 = true
  141. RootJoint.C1 = RootJoint.C1
  142. Neck.C1 = Neck.C1
  143. RW.C1 = rarmc1
  144. LW.C1 = larmc1
  145. RH.C1 = rlegc1
  146. LH.C1 = llegc1
  147. end
  148. end
  149. end
  150.  
  151. ArtificialHB = Instance.new("BindableEvent", script)
  152. ArtificialHB.Name = "Heartbeat"
  153. script:WaitForChild("Heartbeat")
  154. frame = 0.03333333333333
  155. tf = 0
  156. allowframeloss = false
  157. tossremainder = false
  158. lastframe = tick()
  159. script.Heartbeat:Fire()
  160. game:GetService("RunService").Heartbeat:connect(function(s, p)
  161. tf = tf + s
  162. if tf >= frame then
  163. if allowframeloss then
  164. script.Heartbeat:Fire()
  165. lastframe = tick()
  166. else
  167. for i = 1, math.floor(tf / frame) do
  168. script.Heartbeat:Fire()
  169. end
  170. lastframe = tick()
  171. end
  172. if tossremainder then
  173. tf = 0
  174. else
  175. tf = tf - frame * math.floor(tf / frame)
  176. end
  177. end
  178. end)
  179. function swait(num)
  180. if num == 0 or num == nil then
  181. ArtificialHB.Event:wait()
  182. else
  183. for i = 0, num do
  184. ArtificialHB.Event:wait()
  185. end
  186. end
  187. end
  188.  
  189. function RemoveOutlines(part)
  190. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  191. end
  192.  
  193. function so(id,par,pit,vol)
  194. local sou = Instance.new("Sound", par or workspace)
  195. if par == chara then
  196. sou.Parent = chara.Torso
  197. end
  198. sou.Volume = vol
  199. sou.Pitch = pit or 1
  200. sou.SoundId = "rbxassetid://" .. id
  201. sou.PlayOnRemove = true
  202. sou:Destroy()
  203. end
  204.  
  205. --This is just for builds--
  206. New = function(Object, Parent, Name, Data)
  207. local Object = Instance.new(Object)
  208. for Index, Value in pairs(Data or {}) do
  209. Object[Index] = Value
  210. end
  211. Object.Parent = Parent
  212. Object.Name = Name
  213. return Object
  214. end
  215. FakeHeadM = New("Model",chara,"FakeHeadM",{})
  216. FakeHead = New("Part",FakeHeadM,"FakeHead",{Size = Vector3.new(6, 3, 3),CFrame = CFrame.new(26.5, 1.5, -49.8000183, 1, 0, 0, 0, 1, 0, 0, 0, 1),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  217. Mesh = New("SpecialMesh",FakeHead,"Mesh",{Scale = Vector3.new(1.25, 1.25, 1.25),})
  218. Fays = New("Decal",FakeHead,"Decal",{Texture = "rbxassetid://315622231",})
  219. Weld = New("ManualWeld",FakeHead,"Weld",{Part0 = FakeHead,Part1 = Head,})
  220. Shedo = New("Part",FakeHeadM,"Shedo",{Transparency = 1,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(26.5000114, 2.19999933, -50.2999916, 1, 0, 0, 0, 1, 0, 0, 0, 1),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  221. Mesh = New("SpecialMesh",Shedo,"Mesh",{Scale = Vector3.new(3, 3, 3),VertexColor = Vector3.new(1, 0, 0),MeshId = "rbxassetid://18755442",TextureId = "rbxassetid://65032890",MeshType = Enum.MeshType.FileMesh,})
  222. Weld = New("ManualWeld",Shedo,"Weld",{Part0 = Shedo,Part1 = FakeHead,C1 = CFrame.new(1.14440918e-05, 0.699999332, -0.499973297, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  223. Head.Transparency = 1
  224. Humanoid.CameraOffset = Vector3.new(0,3,0)
  225.  
  226. Shotii = New("Model",chara,"Shotii",{})
  227. SHandaru = New("Part",Shotii,"SHandaru",{Transparency = 1,Transparency = 1,Size = Vector3.new(0.299999952, 0.299999923, 0.299999803),CFrame = CFrame.new(82.7000122, 8.4184885, -48.6482887, 0, 0, 1, -0.173647001, 0.984807968, 0, -0.984807968, -0.173647001, 0),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  228. Mesh = New("SpecialMesh",SHandaru,"Mesh",{Scale = Vector3.new(0.00400000019, 0.00400000019, 0.00400000019),MeshId = "rbxassetid://450250994",TextureId = "rbxassetid://450251128",MeshType = Enum.MeshType.FileMesh,})
  229. Weld = New("ManualWeld",SHandaru,"Weld",{Part0 = SHandaru,Part1 = RightArm,C0 = CFrame.new(0, 0, 0, 0, -0.173647001, -0.984807968, 0, 0.984807968, -0.173647001, 1, 0, 0),C1 = CFrame.new(0.292991638, -7.6862278, -0.349998474, 0.984807849, -0.030152997, -0.171009988, 0.173647955, 0.17100893, 0.969846547, 4.55671426e-07, -0.984807968, 0.173646942),})
  230. SShot = New("Part",Shotii,"SShot",{Transparency = 1,Transparency = 1,Size = Vector3.new(0.299999952, 0.299999923, 0.299999803),CFrame = CFrame.new(82.7000122, 8.3150301, -54.4179688, 0, 0, 1, -0.173647001, 0.984807968, 0, -0.984807968, -0.173647001, 0),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  231. Weld = New("ManualWeld",SShot,"Weld",{Part0 = SShot,Part1 = SHandaru,C0 = CFrame.new(0, 0, 0, 0, -0.173647001, -0.984807968, 0, 0.984807968, -0.173647001, 1, 0, 0),C1 = CFrame.new(5.69999313, 0.900001526, 0, 0, -0.173647001, -0.984807968, 0, 0.984807968, -0.173647001, 1, 0, 0),})
  232. SSExit = New("Part",Shotii,"SSExit",{Transparency = 1,Transparency = 1,Size = Vector3.new(0.299999952, 0.299999923, 0.299999803),CFrame = CFrame.new(83.0000076, 9.67517471, -46.1282616, 0, 0, 1, -0.173647001, 0.984807968, 0, -0.984807968, -0.173647001, 0),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  233. Weld = New("ManualWeld",SSExit,"Weld",{Part0 = SSExit,Part1 = SHandaru,C0 = CFrame.new(0, 0, 0, 0, -0.173647001, -0.984807968, 0, 0.984807968, -0.173647001, 1, 0, 0),C1 = CFrame.new(-2.69996262, 0.799999237, 0.299995422, 0, -0.173647001, -0.984807968, 0, 0.984807968, -0.173647001, 1, 0, 0),})
  234.  
  235. Pistoru = New("Model",chara,"Pistoru",{})
  236. PHandaru = New("Part",Pistoru,"PHandaru",{Transparency = 1,Transparency = 1,Size = Vector3.new(0.299999952, 0.299999923, 0.299999803),CFrame = CFrame.new(90.3498764, 9.52873039, -33.8800735, -0.984808445, -0.171009943, 0.0301536396, -0.173648074, 0.969846964, -0.171010002, -2.58755817e-09, -0.173648193, -0.984807789),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  237. Mesh = New("SpecialMesh",PHandaru,"Mesh",{Scale = Vector3.new(0.00400000019, 0.00400000019, 0.00400000019),MeshId = "rbxassetid://437242703",TextureId = "rbxassetid://437242708",MeshType = Enum.MeshType.FileMesh,})
  238. Weld = New("ManualWeld",PHandaru,"Weld",{Part0 = PHandaru,Part1 = RightArm,C0 = CFrame.new(0, 0, 0, -0.984808445, -0.173648074, -2.58755817e-09, -0.171009943, 0.969846964, -0.173648193, 0.0301536396, -0.171010002, -0.984807789),C1 = CFrame.new(-0.450126648, -4.80198288, -0.307024956, 1, 0, 0, 0, 0.173647985, 0.984807849, 0, -0.984807849, 0.173647985),})
  239. PBExit = New("Part",Pistoru,"PBExit",{Transparency = 1,Transparency = 1,Size = Vector3.new(0.299999952, 0.299999923, 0.299999803),CFrame = CFrame.new(90.1265717, 10.7951508, -33.49757, -0.984809041, -0.171010062, 0.0301536396, -0.173648193, 0.96984756, -0.171010002, 0, -0.173648298, -0.984807789),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  240. Weld = New("ManualWeld",PBExit,"Weld",{Part0 = PBExit,Part1 = PHandaru,C0 = CFrame.new(0, 0, 0, -0.984807849, -0.173647985, 0, -0.173647985, 0.984807849, 0, 0, 0, -1),C1 = CFrame.new(0, 1.19999886, -0.599994659, -0.984808326, -0.173648059, 0, -0.173648059, 0.984808326, 0, 0, 0, -1),})
  241. PShot = New("Part",Pistoru,"PShot",{Transparency = 1,Transparency = 1,Size = Vector3.new(0.299999952, 0.299999923, 0.299999803),CFrame = CFrame.new(90.2109985, 10.3163252, -36.2550163, -0.984808803, -0.171010002, 0.0301536396, -0.173648134, 0.969847322, -0.171010002, -2.58755906e-09, -0.173648253, -0.984807789),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  242. Weld = New("ManualWeld",PShot,"Weld",{Part0 = PShot,Part1 = PHandaru,C0 = CFrame.new(0, 0, 0, -0.984807968, -0.173648, 0, -0.173648, 0.984807968, 0, 0, 0, -1),C1 = CFrame.new(0, 1.19999886, 2.19998932, -0.984807968, -0.173648, 0, -0.173648, 0.984807968, 0, 0, 0, -1),})
  243.  
  244. HolShot = New("Part",chara,"HolShot",{Size = Vector3.new(0.299999952, 0.299999923, 0.299999803),CFrame = CFrame.new(52.4309196, 10.2762518, -23.0499916, -0.499998987, -0.866025984, 0, -0.866025984, 0.499998987, 0, 0, 0, -1),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  245. Mesh = New("SpecialMesh",HolShot,"Mesh",{Scale = Vector3.new(0.00400000019, 0.00400000019, 0.00400000019),MeshId = "rbxassetid://450250994",TextureId = "rbxassetid://450251128",MeshType = Enum.MeshType.FileMesh,})
  246. Weld = New("ManualWeld",HolShot,"Weld",{Part0 = HolShot,Part1 = Torso,C0 = CFrame.new(0, 0, 0, -0.499998987, -0.866025984, 0, -0.866025984, 0.499998987, 0, 0, 0, -1),C1 = CFrame.new(1.33091354, 1.2762394, 1.65000534, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
  247.  
  248. HolPist = New("Part",chara,"HolPist",{Size = Vector3.new(0.299999952, 0.299999923, 0.299999803),CFrame = CFrame.new(70.7500153, 5.34207106, -26.6475906, -1, 0, 0, 0, 0.642789185, -0.766043186, 0, -0.766043186, -0.642789185),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  249. Mesh = New("SpecialMesh",HolPist,"Mesh",{Scale = Vector3.new(0.00400000019, 0.00400000019, 0.00400000019),MeshId = "rbxassetid://437242703",TextureId = "rbxassetid://437242708",MeshType = Enum.MeshType.FileMesh,})
  250. Weld = New("ManualWeld",HolPist,"Weld",{Part0 = HolPist,Part1 = Torso,C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0.642789185, -0.766043186, 0, -0.766043186, -0.642789185),C1 = CFrame.new(2.45001984, -3.72772598, 0.233430862, 1, 0, 0, 0, 0.984807849, -0.173647985, 0, 0.173647985, 0.984807849),})
  251.  
  252. Instance.new("BoolValue",chara).Name = "HolyMode"
  253. local hedcol = FakeHead.BrickColor
  254. local bcols = Instance.new("BodyColors",chara)
  255. bcols.Name = "NeoCols"
  256. bcols.HeadColor = hedcol
  257. bcols.LeftArmColor = hedcol
  258. bcols.RightArmColor = hedcol
  259. bcols.TorsoColor = hedcol
  260. bcols.LeftLegColor = hedcol
  261. bcols.RightLegColor = hedcol
  262.  
  263. for i, v in pairs(chara:children()) do
  264. if v:IsA("Shirt") or v:IsA("Pants") then
  265. v:Destroy()
  266. end
  267. end
  268. local sh = Instance.new("Shirt",chara)
  269. local pn = Instance.new("Pants",chara)
  270. sh.ShirtTemplate = "rbxassetid://676428254"
  271. pn.PantsTemplate = "rbxassetid://676428351"
  272. if chara:FindFirstChild("FaysG") then chara:FindFirstChild("FaysG"):Destroy() end
  273. ---------------------------
  274.  
  275. function rayCast(Position, Direction, Range, Ignore)
  276. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  277. end
  278.  
  279. function FindNearestTorso(Position, Distance, SinglePlayer)
  280. if SinglePlayer then
  281. return (SinglePlayer.Head.CFrame.p - Position).magnitude < Distance
  282. end
  283. local List = {}
  284. for i, v in pairs(workspace:GetDescendants()) do
  285. if v:IsA("Model") then
  286. if v:findFirstChild("Head") then
  287. if v ~= chara then
  288. if (v.Head.Position - Position).magnitude <= Distance then
  289. table.insert(List, v)
  290. end
  291. end
  292. end
  293. end
  294. end
  295. return List
  296. end
  297.  
  298. EffectModel = Create("Model"){
  299. Parent = chara,
  300. Name = "Effects",
  301. }
  302.  
  303. --Effect Functions--
  304. Effects = {
  305.  
  306. Block = function(cf,partsize,meshstart,meshadd,matr,colour,spin,inverse,factor)
  307. local p = Instance.new("Part",EffectModel)
  308. p.BrickColor = BrickColor.new(colour)
  309. p.Size = partsize
  310. p.Anchored = true
  311. p.CanCollide = false
  312. p.Material = matr
  313. p.CFrame = cf
  314. if inverse == true then
  315. p.Transparency = 1
  316. else
  317. p.Transparency = 0
  318. end
  319. local m = Instance.new("BlockMesh",p)
  320. m.Scale = meshstart
  321. coroutine.wrap(function()
  322. for i=0,1,factor do
  323. swait()
  324. if inverse == true then
  325. p.Transparency = 1-i
  326. else
  327. p.Transparency = i
  328. end
  329. m.Scale = m.Scale + meshadd
  330. if spin == true then
  331. p.CFrame = p.CFrame * CFrame.Angles(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  332. end
  333. end
  334. p:Destroy()
  335. end)()
  336. return p
  337. end,
  338.  
  339. Sphere = function(cf,partsize,meshstart,meshadd,matr,colour,inverse,factor)
  340. local p = Instance.new("Part",EffectModel)
  341. p.BrickColor = BrickColor.new(colour)
  342. p.Size = partsize
  343. p.Anchored = true
  344. p.CanCollide = false
  345. p.Material = matr
  346. p.CFrame = cf
  347. if inverse == true then
  348. p.Transparency = 1
  349. else
  350. p.Transparency = 0
  351. end
  352. local m = Instance.new("SpecialMesh",p)
  353. m.MeshType = "Sphere"
  354. m.Scale = meshstart
  355. coroutine.wrap(function()
  356. for i=0,1,factor do
  357. swait()
  358. if inverse == true then
  359. p.Transparency = 1-i
  360. else
  361. p.Transparency = i
  362. end
  363. m.Scale = m.Scale + meshadd
  364. end
  365. p:Destroy()
  366. end)()
  367. return p
  368. end,
  369.  
  370. Cylinder = function(cf,partsize,meshstart,meshadd,matr,colour,inverse,factor)
  371. local p = Instance.new("Part",EffectModel)
  372. p.BrickColor = BrickColor.new(colour)
  373. p.Size = partsize
  374. p.Anchored = true
  375. p.CanCollide = false
  376. p.Material = matr
  377. p.CFrame = cf
  378. if inverse == true then
  379. p.Transparency = 1
  380. else
  381. p.Transparency = 0
  382. end
  383. local m = Instance.new("CylinderMesh",p)
  384. m.Scale = meshstart
  385. coroutine.wrap(function()
  386. for i=0,1,factor do
  387. swait()
  388. if inverse == true then
  389. p.Transparency = 1-i
  390. else
  391. p.Transparency = i
  392. end
  393. m.Scale = m.Scale + meshadd
  394. end
  395. p:Destroy()
  396. end)()
  397. return p
  398. end,
  399.  
  400. Wave = function(cf,meshstart,meshadd,colour,spin,inverse,factor)
  401. local p = Instance.new("Part",EffectModel)
  402. p.BrickColor = BrickColor.new(colour)
  403. p.Size = Vector3.new()
  404. p.Anchored = true
  405. p.CanCollide = false
  406. p.CFrame = cf
  407. if inverse == true then
  408. p.Transparency = 1
  409. else
  410. p.Transparency = 0
  411. end
  412. local m = Instance.new("SpecialMesh",p)
  413. m.MeshId = "rbxassetid://20329976"
  414. m.Scale = meshstart
  415. coroutine.wrap(function()
  416. for i=0,1,factor do
  417. swait()
  418. if inverse == true then
  419. p.Transparency = 1-i
  420. else
  421. p.Transparency = i
  422. end
  423. m.Scale = m.Scale + meshadd
  424. p.CFrame = p.CFrame * CFrame.Angles(0,math.rad(spin),0)
  425. end
  426. p:Destroy()
  427. end)()
  428. return p
  429. end,
  430.  
  431. Ring = function(cf,meshstart,meshadd,colour,inverse,factor)
  432. local p = Instance.new("Part",EffectModel)
  433. p.BrickColor = BrickColor.new(colour)
  434. p.Size = Vector3.new()
  435. p.Anchored = true
  436. p.CanCollide = false
  437. p.CFrame = cf
  438. if inverse == true then
  439. p.Transparency = 1
  440. else
  441. p.Transparency = 0
  442. end
  443. local m = Instance.new("SpecialMesh",p)
  444. m.MeshId = "rbxassetid://3270017"
  445. m.Scale = meshstart
  446. coroutine.wrap(function()
  447. for i=0,1,factor do
  448. swait()
  449. if inverse == true then
  450. p.Transparency = 1-i
  451. else
  452. p.Transparency = i
  453. end
  454. m.Scale = m.Scale + meshadd
  455. end
  456. p:Destroy()
  457. end)()
  458. return p
  459. end,
  460.  
  461. Meshed = function(cf,meshstart,meshadd,colour,meshid,textid,spin,inverse,factor)
  462. local p = Instance.new("Part",EffectModel)
  463. p.BrickColor = BrickColor.new(colour)
  464. p.Size = Vector3.new()
  465. p.Anchored = true
  466. p.CanCollide = false
  467. p.CFrame = cf
  468. if inverse == true then
  469. p.Transparency = 1
  470. else
  471. p.Transparency = 0
  472. end
  473. local m = Instance.new("SpecialMesh",p)
  474. m.MeshId = meshid
  475. m.TextureId = textid
  476. m.Scale = meshstart
  477. coroutine.wrap(function()
  478. for i=0,1,factor do
  479. swait()
  480. if inverse == true then
  481. p.Transparency = 1-i
  482. else
  483. p.Transparency = i
  484. end
  485. m.Scale = m.Scale + meshadd
  486. p.CFrame = p.CFrame * CFrame.Angles(0,math.rad(spin),0)
  487. end
  488. p:Destroy()
  489. end)()
  490. return p
  491. end,
  492.  
  493. Explode = function(cf,partsize,meshstart,meshadd,matr,colour,move,inverse,factor)
  494. local p = Instance.new("Part",EffectModel)
  495. p.BrickColor = BrickColor.new(colour)
  496. p.Size = partsize
  497. p.Anchored = true
  498. p.CanCollide = false
  499. p.Material = matr
  500. p.CFrame = cf * CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  501. if inverse == true then
  502. p.Transparency = 1
  503. else
  504. p.Transparency = 0
  505. end
  506. local m = Instance.new("SpecialMesh",p)
  507. m.MeshType = "Sphere"
  508. m.Scale = meshstart
  509. coroutine.wrap(function()
  510. for i=0,1,factor do
  511. swait()
  512. if inverse == true then
  513. p.Transparency = 1-i
  514. else
  515. p.Transparency = i
  516. end
  517. m.Scale = m.Scale + meshadd
  518. p.CFrame = p.CFrame * CFrame.new(0,move,0)
  519. end
  520. p:Destroy()
  521. end)()
  522. return p
  523. end,
  524.  
  525. }
  526.  
  527. function chatfunc(text)
  528. coroutine.wrap(function()
  529. if chara:FindFirstChild("TalkingBillBoard")~= nil then
  530. chara:FindFirstChild("TalkingBillBoard"):destroy()
  531. end
  532. local naeeym2 = Instance.new("BillboardGui",chara)
  533. naeeym2.Size = UDim2.new(0,100,0,40)
  534. naeeym2.StudsOffset = Vector3.new(0,3,0)
  535. naeeym2.Adornee = chara.Head
  536. naeeym2.Name = "BLABLABLA"
  537. local tecks2 = Instance.new("TextLabel",naeeym2)
  538. tecks2.BackgroundTransparency = 1
  539. tecks2.BorderSizePixel = 0
  540. tecks2.Text = ""
  541. tecks2.Font = "Antique"
  542. tecks2.FontSize = "Size24"
  543. tecks2.TextStrokeTransparency = 0
  544. tecks2.TextColor3 = Color3.new(0,0,0)
  545. tecks2.TextStrokeColor3 = Color3.new(1,0,0)
  546. tecks2.Size = UDim2.new(1,0,0.5,0)coroutine.wrap(function()
  547. while tecks2 ~= nil do
  548. swait()
  549. tecks2.Position = UDim2.new(0,math.random(-3,3),0,math.random(-3,3))
  550. end
  551. end)()
  552. for i = 1,string.len(text),1 do
  553. tecks2.Text = string.sub(text,1,i)
  554. swait()
  555. end
  556. swait(30)
  557. for i = 1, 5 do
  558. swait()
  559. tecks2.Position = tecks2.Position - UDim2.new(0,0,.05,0)
  560. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.2
  561. tecks2.TextTransparency = tecks2.TextTransparency + .2
  562. end
  563. naeeym2:Destroy()
  564. end)()
  565. end
  566.  
  567. function GetDudesTorso(c)
  568. local torsy = (c:findFirstChild("Torso") or c:findFirstChild("UpperTorso"))
  569. if torsy ~= nil then
  570. return torsy
  571. end
  572. end
  573.  
  574. function BodyVel(part,faws)
  575. local bodyvel = Instance.new("BodyVelocity",part)
  576. local pep = 10000000
  577. bodyvel.P = pep
  578. bodyvel.MaxForce = Vector3.new(pep,pep,pep)
  579. bodyvel.Velocity = faws
  580. debby:AddItem(bodyvel,.2)
  581. end
  582.  
  583. function Dmg(dude,dmg,env,faws,trip,efftyp,toim)
  584. if dude and dude ~= chara then
  585. if dude:FindFirstChild("HITO") then return end
  586. local debounce = Instance.new("BoolValue",dude)
  587. debounce.Name = "HITO"
  588. debby:AddItem(debounce,toim)
  589. local hum = dude:FindFirstChildOfClass("Humanoid")
  590. local dam = dmg+math.random(-env,env)
  591. local teksu = "-"..dam
  592. if hum then
  593. local finhel = hum.Health - dam
  594. if finhel <= 0 and dude:FindFirstChild("DEATHED")==nil then
  595. Instance.new("BoolValue",dude).Name = "DEATHED"
  596. local soaa = Instance.new("Sound",dude.Head)
  597. local cho = math.random(1,5)
  598. if cho == 1 then
  599. soaa.SoundId = "rbxassetid://111896685"
  600. elseif cho == 2 then
  601. soaa.SoundId = "rbxassetid://535528169"
  602. elseif cho == 3 then
  603. soaa.SoundId = "rbxassetid://1080363252"
  604. elseif cho == 4 then
  605. soaa.SoundId = "rbxassetid://147758746"
  606. elseif cho == 5 then
  607. soaa.SoundId = "rbxassetid://626777433"
  608. soaa.Volume = .2
  609. soaa.TimePosition = 1
  610. end
  611. game:service'Debris':AddItem(soaa,6)
  612. soaa:Play()
  613. end
  614. if hum.Health > 1000 then
  615. teksu = "DEATH"
  616. dude:BreakJoints()
  617. else
  618. hum.Health = hum.Health - dam
  619. end
  620. end
  621. coroutine.wrap(function()
  622. local naeeym2 = Instance.new("BillboardGui",dude)
  623. naeeym2.Size = UDim2.new(0,100,0,40)
  624. naeeym2.StudsOffset = Vector3.new(0,3,0)
  625. naeeym2.Adornee = dude:FindFirstChild("Head")
  626. naeeym2.Name = "TalkingBillBoard"
  627. local tecks2 = Instance.new("TextLabel",naeeym2)
  628. tecks2.BackgroundTransparency = 1
  629. tecks2.BorderSizePixel = 0
  630. tecks2.Text = teksu
  631. tecks2.Font = "Antique"
  632. tecks2.TextSize = 24
  633. tecks2.TextStrokeTransparency = 0
  634. tecks2.TextColor3 = Color3.new(0,0,0)
  635. tecks2.TextStrokeColor3 = Color3.new(1,0,0)
  636. tecks2.Size = UDim2.new(1,0,0.5,0)
  637. swait(10)
  638. for i = 0,1,.05 do
  639. swait()
  640. tecks2.Position = tecks2.Position - UDim2.new(0,0,.005,0)
  641. tecks2.TextStrokeTransparency = i
  642. tecks2.TextTransparency = i
  643. end
  644. naeeym2:Destroy()
  645. end)()
  646. local torsy = GetDudesTorso(dude)
  647. if torsy then
  648. for i=1,dam/5 do
  649. local blp = Instance.new("Part",EffectModel)
  650. blp.Size = Vector3.new(.3,.3,.3)
  651. blp.BrickColor = BrickColor.new("Crimson")
  652. blp.CFrame = torsy.CFrame*CFrame.Angles(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  653. blp.Velocity = torsy.CFrame.lookVector*math.random(-8,-8) + torsy.CFrame.rightVector*math.random(-8,8) + Vector3.new(0,math.random(0,5),0)
  654. blp.RotVelocity = Vector3.new(math.random(-15,15),math.random(-15,15),math.random(-15,15))
  655. --local blm = Instance.new("SpecialMesh",blp)
  656. --blm.MeshType = "Sphere"
  657. coroutine.wrap(function()
  658. swait(10)
  659. blp.Orientation = Vector3.new(0,blp.Orientation.y,0)
  660. for i=0,1,.1 do
  661. swait()
  662. blp.Transparency = i
  663. blp.Size = blp.Size + Vector3.new(.05,-.05,.05)
  664. end
  665. blp:Destroy()
  666. end)()
  667. end
  668. if efftyp == "Blunt" then
  669. puncheff(torsy)
  670. elseif efftyp == "Sharp" then
  671. slasheff(torsy)
  672. elseif efftyp == "Shot" then
  673. so(144884872,torsy,.9,1)
  674. end
  675. if faws ~= 0 then
  676. BodyVel(torsy,faws)
  677. end
  678. if trip == true then
  679. torsy.CFrame = torsy.CFrame * CFrame.Angles(math.rad(-90),0,0)
  680. torsy.RotVelocity = Vector3.new(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  681. end
  682. end
  683. end
  684. end
  685.  
  686. function MagnitudeDmg(par,magni,dmg,env,faws,trip,efftyp,toim)
  687. for _, c in pairs(workspace:GetDescendants()) do
  688. local hum = c:FindFirstChildOfClass("Humanoid")
  689. if hum ~= nil and c:FindFirstChild("IsTeamMateOfCK")==nil then
  690. local head = GetDudesTorso(c)
  691. if head ~= nil then
  692. local targ = head.Position - par.Position
  693. local mag = targ.magnitude
  694. if magni >= mag and c ~= chara then
  695. Dmg(c,dmg,env,faws,trip,efftyp,toim)
  696. end
  697. end
  698. end
  699. end
  700. end
  701.  
  702. function CamShake(par,magni,env,dur)
  703. coroutine.wrap(function()
  704. for i=0,dur*60 do
  705. swait()
  706. Humanoid.CameraOffset = Vector3.new(math.random(-(env*10),(env*10))/10,3+math.random(-(env*10),(env*10))/10,math.random(-(env*10),(env*10))/10)
  707. end
  708. Humanoid.CameraOffset = Vector3.new(0,3,0)
  709. end)()
  710. end
  711.  
  712. function puncheff(par)
  713. if par.Parent:FindFirstChild("DebounceHit")==nil then
  714. so(386946017,par,math.random(6,8)/10,1)
  715. local bla = Effects.Sphere(par.CFrame,Vector3.new(1,1,1),Vector3.new(1,1,1),Vector3.new(1,1,1),"Neon","White",false,.1)
  716. CamShake(bla,10,.5,.5)
  717. end
  718. end
  719.  
  720. function slasheff(par)
  721. if par.Parent:FindFirstChild("DebounceHit")==nil then
  722. local cho = math.random(1,3)
  723. if cho == 1 then
  724. so(444667824,par,1,1)
  725. elseif cho == 2 then
  726. so(444667844,par,1,1)
  727. elseif cho == 3 then
  728. so(444667859,par,1,1)
  729. end
  730. --function(cf,partsize,meshstart,meshadd,matr,colour,factor)
  731. Effects.Sphere(par.CFrame*CFrame.Angles(math.random(0,360),math.random(0,360),math.random(0,360)),Vector3.new(.5,.5,.5),Vector3.new(1,0,1),Vector3.new(0,5,0),"Neon","Really red",false,.1)
  732. end
  733. end
  734.  
  735. local mus = Instance.new("Sound",chara)
  736. mus.Name = "mus"
  737. mus.SoundId = "rbxassetid://142653441"--"rbxassetid://335204822"
  738. mus.Looped = true
  739. mus.Volume = .3
  740. mus:Play()
  741.  
  742. Humanoid.MaxHealth = 1000
  743. Humanoid.Health = 1000
  744.  
  745. ------------------Intro-----------------------
  746. intro = true
  747. if intro == true then
  748. coroutine.wrap(function()
  749. attack = true
  750. Humanoid.WalkSpeed = 0
  751. Humanoid.JumpPower = 0
  752. PlayAnimationFromTable({
  753. CFrame.new(0, 233.999924, -1.90734863e-06, 1, 0, 0, 0, -1, 0, 0, 0, -1),
  754. CFrame.new(0, 3.6000421, 1.07246542, 1, 0, 0, 0, 0.76604414, -0.642788053, 0, 0.642788053, 0.76604414),
  755. CFrame.new(3.6967864, -0.452571809, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736, 0, 0, 0, 1),
  756. CFrame.new(-3.60279894, -0.418379426, 0, 0.939692736, -0.342019886, 0, 0.342019916, 0.939692736, 0, 0, 0, 1),
  757. CFrame.new(1.50001526, -4, -1.3000021, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  758. CFrame.new(-1.50001526, -6, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  759. }, 1, false)
  760. swait(120)
  761. for i=0,1,.1 do
  762. swait()
  763. PlayAnimationFromTable({
  764. CFrame.new(0, -1.00005245, -1.90734863e-06, 1, 0, 0, 0, -1, 0, 0, 0, -1),
  765. CFrame.new(0, 3.60004878, 1.07246184, 1, 0, 0, 0, 0.76604414, -0.642788053, 0, 0.642788053, 0.76604414),
  766. CFrame.new(3.69677114, -0.452568352, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736, 0, 0, 0, 1),
  767. CFrame.new(-3.60280585, -0.418371797, 0, 0.939692736, -0.342019886, 0, 0.342019916, 0.939692736, 0, 0, 0, 1),
  768. CFrame.new(1.50001526, -3.99999714, -1.3000021, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  769. CFrame.new(-1.50001526, -6, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  770. }, .4, false)
  771. end
  772. so(133680244,Torso,1,3)
  773. CamShake(Torso,20,.8,.6)
  774. MagnitudeDmg(Torso,15,30,3,Vector3.new(0,20,0)+RootPart.CFrame.lookVector*60,true,"Blunt",.5)
  775. Effects.Wave(RootPart.CFrame*CFrame.new(0,-5,0),Vector3.new(),Vector3.new(2,1,2),"",10,false,.02)
  776. Effects.Wave(RootPart.CFrame*CFrame.new(0,-5,0),Vector3.new(),Vector3.new(1.5,2.5,1.5),"",-10,false,.02)
  777. local hit,hitpos = rayCast(RootPart.Position,Vector3.new(0,-1,0),15,chara)
  778. for i = 1,12 do
  779. local size = math.random(7,10)
  780. local p = Instance.new("Part",EffectModel)
  781. p.BrickColor = hit.BrickColor
  782. p.Material = hit.Material
  783. p.Size = Vector3.new(size,size,size)
  784. p.CFrame = CFrame.new(hitpos) * CFrame.fromEulerAnglesXYZ(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360)))
  785. p.CanCollide = false
  786. p.Velocity = Vector3.new(math.random(-70,70),170,math.random(-70,70))
  787. p.RotVelocity = Vector3.new(math.random(-60,60),math.random(-60,60),math.random(-60,60))
  788. coroutine.wrap(function()
  789. swait(20)
  790. p.CanCollide = true
  791. swait(120)
  792. for i=0,1,.05 do
  793. swait()
  794. p.Transparency = i
  795. end
  796. p:Destroy()
  797. end)()
  798. end
  799. mus.Volume = 1
  800. mus:Play()
  801. RootPart.Anchored = true
  802. for i=0,6,.1 do
  803. swait()
  804. PlayAnimationFromTable({
  805. CFrame.new(0, -2.53941131, -0.348767281, 1, 0, 0, 0, 0.76604414, 0.642788053, 0, -0.642788053, 0.76604414),
  806. CFrame.new(0, 4.57664824, -0.666416466, 1, 0, 0, 0, 0.939692438, 0.34202075, 0, -0.34202075, 0.939692438),
  807. CFrame.new(4.5000205, 1.20001018, 2.22187964e-06, 0.866024792, -0.500001192, 8.88577006e-07, 0.500001252, 0.866024733, -1.28149986e-06, -1.49011612e-07, 1.54972076e-06, 1),
  808. CFrame.new(-4.5000205, 1.20001018, 2.22187964e-06, 0.866024792, 0.500001192, -8.88577006e-07, -0.500001252, 0.866024733, -1.28149986e-06, 1.49011612e-07, 1.54972076e-06, 1),
  809. CFrame.new(1.50001526, -3.52529287, -3.56594658, 1, 0, 0, 0, 0.76604414, -0.642788053, 0, 0.642788053, 0.76604414),
  810. CFrame.new(-1.50001526, -5.99999619, 6.67572112e-06, 1, 0, 0, 0, 1.00000012, 0, 0, 0, 1.00000012),
  811. }, .4, false)
  812. end
  813. RootPart.Anchored = false
  814. for i=0,2,.1 do
  815. swait()
  816. PlayAnimationFromTable({
  817. CFrame.new(0, -1.99700248, -0.27749458, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),
  818. CFrame.new(0, 4.55108547, -0.444281816, 1, 0, 0, 0, 0.939692676, 0.342020601, 0, -0.342020601, 0.939692676),
  819. CFrame.new(3.77304196, -0.53539288, 0.273614407, 0.939692736, 0.321393579, 0.116977744, -0.342019945, 0.883022368, 0.321393698, -8.56816769e-08, -0.342020065, 0.939692795),
  820. CFrame.new(-4.64490843, 0.330175281, -1.53582289e-06, 0.984807849, 0.173648134, -3.13053391e-07, -0.173648164, 0.984807909, 2.68220901e-07, 3.50177288e-07, -1.78813934e-07, 1.00000012),
  821. CFrame.new(1.50001884, -5.99037027, -0.421832889, 0.984807849, 0, -0.173647985, -0.0301536229, 0.984807849, -0.171009898, 0.171009898, 0.173647985, 0.969846487),
  822. CFrame.new(-1.50002635, -5.99037027, -0.421831638, 0.984807849, 0, 0.173647985, 0.0301536229, 0.984807849, -0.171009898, -0.171009898, 0.173647985, 0.969846487),
  823. }, .15, false)
  824. end
  825. local FShedo = New("Part",chara,"FShedo",{FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(1, 1, 1),CFrame = CFrame.new(63.4999924, 14.1999693, -2.70000529, 1, 0, 0, 0, 1, 0, 0, 0, 1),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  826. local FMesh = New("SpecialMesh",FShedo,"Mesh",{Scale = Vector3.new(3, 3, 3),VertexColor = Vector3.new(1, 0, 0),MeshId = "http://www.roblox.com/asset/?id=18755442",TextureId = "http://www.roblox.com/asset/?id=65032890",MeshType = Enum.MeshType.FileMesh,})
  827. local FWeld = New("ManualWeld",FShedo,"FWeld",{Part0 = FShedo,Part1 = RightArm,C1 = CFrame.new(-1.46309662, -4.28805161, -0.213977814, 0.478137165, 0.217331067, -0.850971282, 0.74204433, -0.618283033, 0.259029716, -0.469845891, -0.755310178, -0.456893384),})
  828. for i=0,4,.1 do
  829. swait()
  830. PlayAnimationFromTable({
  831. CFrame.new(0, -2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  832. CFrame.new(0, 4.49995232, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  833. CFrame.new(3.7809577, 2.70507407, -0.632092118, 0.478137165, 0.74204433, -0.469845891, 0.217331067, -0.618283033, -0.755310178, -0.850971282, 0.259029716, -0.456893384),
  834. CFrame.new(-4.89282131, 0.675060272, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736, 0, 0, 0, 1),
  835. CFrame.new(1.50001168, -6, -1.01327896e-06, 0.939692736, 0, -0.342019886, 0, 1, 0, 0.342019916, 0, 0.939692736),
  836. CFrame.new(-1.50001526, -6, 2.98023224e-07, 0.939692736, 0, 0.342019886, 0, 1, 0, -0.342019916, 0, 0.939692736),
  837. }, .15, false)
  838. end
  839. Fays.Texture = "rbxassetid://58425273"
  840. FShedo:Destroy()
  841. Shedo.Transparency = 0
  842. Humanoid.WalkSpeed = 8
  843. Humanoid.JumpPower = 70
  844. attack = false
  845. end)()
  846. end
  847. --------------------------------------------------
  848.  
  849. function smek()
  850. attack = true
  851. Humanoid.WalkSpeed = 2
  852. Humanoid.JumpPower = 0
  853. for i=0,1,.1 do
  854. swait()
  855. PlayAnimationFromTable({
  856. CFrame.new(0, -1.73551273, -0.521830797, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736),
  857. CFrame.new(0, 4.41427088, -0.820159078, 1, 0, 0, 0, 0.939692438, 0.342020929, 0, -0.342020959, 0.939692438),
  858. CFrame.new(4.73044586, 0.828796685, -7.02275031e-07, 0.939692616, -0.342020273, 4.69496833e-08, 0.342020273, 0.939692736, 5.36441803e-07, -2.38418579e-07, -5.06639481e-07, 1),
  859. CFrame.new(-4.85861921, 0.769028664, -6.75452611e-07, 0.939692616, 0.342020273, -4.69496833e-08, -0.342020273, 0.939692736, 5.36441803e-07, 2.38418579e-07, -5.06639481e-07, 1),
  860. CFrame.new(1.50001335, -5.50980282, 1.44903219, 1, 0, 0, 0, 0.866024911, 0.500000954, 0, -0.500000954, 0.866024852),
  861. CFrame.new(-1.50001526, -6.18578386, -0.968178153, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736),
  862. }, .2, false)
  863. end
  864. so(536642316,RightLeg,.7,3)
  865. for i=0,1,.1 do
  866. swait()
  867. PlayAnimationFromTable({
  868. CFrame.new(3.32593254e-06, -2.006042, 0.596467078, 1.0000006, -1.04904484e-06, 1.25335964e-06, -1.25487554e-06, 0.939695835, -0.342022181, 7.73278657e-07, 0.342019588, 0.939695656),
  869. CFrame.new(-7.62939453e-06, 4.41428709, -0.820158899, 1, 0, 0, 0, 0.939692736, 0.342019916, 0, -0.342019886, 0.939692736),
  870. CFrame.new(4.73044682, 0.788231254, 0.4500646, 0.939692736, -0.342019916, -1.53461215e-07, 0.29619807, 0.813797891, 0.499999791, -0.171009749, -0.469846129, 0.866025567),
  871. CFrame.new(-4.82442522, 0.817862749, 0.432947218, 0.939691901, 0.342022151, -3.89083397e-07, -0.296199679, 0.813797176, 0.500000119, 0.171011403, -0.469845951, 0.866025388),
  872. CFrame.new(1.50002289, -5.89457655, -2.13732576, 1, 0, 0, 0, 0.766043544, -0.642788708, 0, 0.642788708, 0.766043544),
  873. CFrame.new(-1.49999833, -5.95715237, 0.805552125, 1.0000006, -1.25487554e-06, 7.73278657e-07, -1.04904484e-06, 0.939695835, 0.342019588, 1.25335964e-06, -0.342022181, 0.939695656),
  874. }, .4, false)
  875. MagnitudeDmg(RightLeg,4,60,3,RootPart.CFrame.lookVector*50,true,"Blunt",.5)
  876. end
  877. swait(20)
  878. Humanoid.WalkSpeed = 8
  879. Humanoid.JumpPower = 70
  880. attack = false
  881. end
  882.  
  883. xhold = false
  884. function thesurou()
  885. attack = true
  886. Humanoid.WalkSpeed = 2
  887. local grab = nil
  888. local torsy = nil
  889. local hum = nil
  890. for i, v in pairs(FindNearestTorso((RootPart.Position-Vector3.new(0,5,0)), 6)) do
  891. if v:FindFirstChild('Head') and v:FindFirstChildOfClass("Humanoid") and v:FindFirstChildOfClass("Humanoid").Health > 1 then
  892. hum = v:FindFirstChildOfClass("Humanoid")
  893. torsy = v:FindFirstChild("UpperTorso") or v:FindFirstChild("Torso")
  894. grab = v
  895. end
  896. end
  897. if grab ~= nil and torsy ~= nil then
  898. so(200632136,RootPart,.8,1)
  899. for i = 0,1.5,.1 do
  900. swait()
  901. PlayAnimationFromTable({
  902. CFrame.new(0, -3.15879345, -2.53031492, 1, 0, 0, 0, 0.500002086, 0.866031468, 0, -0.866031468, 0.500002086),
  903. CFrame.new(0, 4.57667542, -0.666417062, 1, 0, 0, 0, 0.939692676, 0.342020601, 0, -0.342020601, 0.939692676),
  904. CFrame.new(2.90267015, 1.56676149, -2.30737209, 0.793417096, 0.357805073, 0.492407322, 0.357833058, 0.380227387, -0.852867484, -0.492387056, 0.852879107, 0.173644423),
  905. CFrame.new(-4.50001335, 1.20001578, 1.39186909e-07, 0.866023839, 0.500002861, -8.08226048e-07, -0.500002921, 0.866023898, -2.38418579e-06, -4.76837158e-07, 2.44379044e-06, 1.00000012),
  906. CFrame.new(1.50001526, -3.79331636, -2.24549532, 1, 0, 0, 0, 0.500002086, -0.866031468, 0, 0.866031468, 0.500002086),
  907. CFrame.new(-1.50001526, -6.19285679, -1.2660259, 1, 0, 0, 0, 0.866025031, -0.500000834, 0, 0.500000834, 0.866025031),
  908. }, .3, false)
  909. end
  910. so(240429615,torsy,1,1)
  911. local ref = Instance.new("Part",Camera)
  912. ref.Size = Vector3.new(0,0,0)
  913. ref.Anchored = true
  914. ref.CanCollide = false
  915. ref.Transparency = .5
  916. ref.BrickColor = BrickColor.Red()
  917. ref.Material = "Neon"
  918. local refm = Instance.new("SpecialMesh",ref)
  919. refm.MeshType = "Sphere"
  920. refm.Scale = Vector3.new(20,20,20)
  921. repeat
  922. swait()
  923. ref.CFrame = Mouse.Hit
  924. PlayAnimationFromTable({
  925. CFrame.new(0, -2, 0, 0.64278698, 0, -0.766044974, 0, 1, 0, 0.766044974, 0, 0.64278698),
  926. CFrame.new(-0.150877535, 4.46522665, -0.12660107, 0.64278698, -0.133022159, 0.754407108, 0, 0.984807849, 0.173647985, -0.766044974, -0.11161866, 0.633021653),
  927. CFrame.new(4.82286024, 2.39900613, 0.0232518315, 0.939692676, -0.296197921, 0.171010524, -0.171010047, -0.839912355, -0.515075624, 0.296198219, 0.4547683, -0.839912176),
  928. CFrame.new(-5.15264273, 1.06961691, 7.03156638e-06, 0.866025448, 0.500000119, -3.87430191e-07, -0.500000119, 0.866025388, -1.43057798e-06, -3.57627869e-07, 1.44541264e-06, 1),
  929. CFrame.new(1.50001907, -6.00000048, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  930. CFrame.new(-1.50001311, -6.00000048, 4.58955765e-06, 0.64278698, 0, 0.766044974, 0, 1, 0, -0.766044974, 0, 0.64278698),
  931. }, .3, false)
  932. torsy.CFrame = RightArm.CFrame*CFrame.new(0,-3.5,0)*CFrame.Angles(math.rad(-90),0,0)
  933. hum.PlatformStand = true
  934. torsy.Velocity = Vector3.new()
  935. --end
  936. until xhold == false
  937. ref:Destroy()
  938. so(200632136,RootPart,.9,1)
  939. local pato = Instance.new("Part",torsy)
  940. pato.CFrame = torsy.CFrame
  941. pato.Size = Vector3.new(4.1,6.1,1.1)
  942. pato.Transparency = 1
  943. pato.CanCollide = false
  944. pato.CustomPhysicalProperties = PhysicalProperties.new(0,0,0,0,0)
  945. local werudo = Instance.new("Weld",pato)
  946. werudo.Part0 = pato
  947. werudo.Part1 = torsy
  948. torsy.Velocity = (ref.Position-torsy.Position).unit*200+Vector3.new(0,30,0)
  949. torsy.RotVelocity = Vector3.new(10,10,10)
  950. coroutine.wrap(function()
  951. while true do
  952. swait()
  953. hum.PlatformStand = true
  954. end
  955. end)
  956. pato.Touched:connect(function(hit)
  957. if hit:IsDescendantOf(chara)==false then
  958. pato:Destroy()
  959. Dmg(grab,150,0,Vector3.new(0,20,0)+RootPart.CFrame.lookVector*50,true,"Blunt",.3)
  960. so(260430079,torsy,1,5)
  961. MagnitudeDmg(torsy,6,50,3,Vector3.new(0,5,0)+RootPart.CFrame.lookVector*20,true,"Blunt",.2)
  962. end
  963. end)
  964. for i = 0,1,.1 do
  965. swait()
  966. PlayAnimationFromTable({
  967. CFrame.new(0, -2, 0, 0.499998987, 0, 0.866025984, 0, 1, 0, -0.866025984, 0, 0.499998987),
  968. CFrame.new(0.142921209, 4.43258858, -0.122617245, 0.906121016, 0.296197981, -0.302012295, -0.219846055, 0.939692795, 0.262002379, 0.361403257, -0.17100969, 0.916593432),
  969. CFrame.new(2.78872228, 0.109098256, -2.12347674, 0.642787337, 0.719846368, 0.262003452, -0.262002051, 0.527982056, -0.807830453, -0.719846845, 0.450617731, 0.5279814),
  970. CFrame.new(-4.79283857, 1.09281766, -1.4803014e-05, 0.866025329, 0.500000238, -1.49011612e-07, -0.500000179, 0.866025388, 6.10661004e-07, 4.47034836e-07, -4.47034836e-07, 1),
  971. CFrame.new(1.50002027, -6, -1.07288361e-06, 0.499998987, 0, -0.866025984, 0, 1, 0, 0.866025984, 0, 0.499998987),
  972. CFrame.new(-1.50001907, -6, -3.81469727e-06, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  973. }, .3, false)
  974. end
  975. end
  976. attack = false
  977. Humanoid.WalkSpeed = 8
  978. end
  979.  
  980. function slam()
  981. attack = true
  982. Humanoid.WalkSpeed = 2
  983. Humanoid.JumpPower = 0
  984. for i=0,2,.1 do
  985. swait()
  986. PlayAnimationFromTable({
  987. CFrame.new(0, -1.93353117, 0.461958885, 1, 0, 0, 0, 0.939692736, -0.342019886, 0, 0.342019916, 0.939692736),
  988. CFrame.new(0, 4.36522532, -0.370157003, 1, 0, 0, 0, 0.866025686, 0.499999642, 0, -0.499999642, 0.866025686),
  989. CFrame.new(2.71519423, 4.60478783, -1.48087042e-06, 0.766044319, 0.642787933, 2.9919768e-08, 0.642787993, -0.766044319, -3.87430191e-07, -1.93715096e-07, 2.83122063e-07, -1),
  990. CFrame.new(-2.70285583, 4.46389866, 6.19620914e-06, 0.766044319, -0.642787933, -2.9919768e-08, -0.642787993, -0.766044319, -3.87430191e-07, 1.93715096e-07, 2.83122063e-07, -1),
  991. CFrame.new(1.50001526, -5.97923088, 0.956724763, 1, 0, 0, 0, 0.939692736, 0.342019916, 0, -0.342019886, 0.939692736),
  992. CFrame.new(-1.50001526, -3.92088175, -1.2822783, 1, 0, 0, 0, 0.939692736, 0.342019916, 0, -0.342019886, 0.939692736),
  993. }, .2, false)
  994. end
  995. so(536642316,RightLeg,.7,3)
  996. Humanoid.WalkSpeed = 0
  997. for i=0,1,.2 do
  998. swait()
  999. PlayAnimationFromTable({
  1000. CFrame.new(0, -5.00873852, -6.03775024, 1, 0, 0, 0, 0.342019022, 0.939693093, 0, -0.939693093, 0.342018992),
  1001. CFrame.new(0, 4.36520767, -0.370157599, 1, 0, 0, 0, 0.866026223, 0.499998808, 0, -0.499998808, 0.866026223),
  1002. CFrame.new(2.71519065, 1.07650685, -2.54415894, 0.766043842, 0.642788351, 6.46188241e-08, -0.11161828, 0.133021355, -0.984808087, -0.633023024, 0.754406214, 0.173647106),
  1003. CFrame.new(-2.70285606, 1.10098004, -2.40540719, 0.766043842, -0.642788351, -6.46188241e-08, 0.11161828, 0.133021355, -0.984808087, 0.633023024, 0.754406214, 0.173647106),
  1004. CFrame.new(1.50001526, -5.95997667, -0.00628298474, 1, 0, 0, 0, 1.00000012, 2.98023224e-08, 0, 2.98023224e-08, 1.00000012),
  1005. CFrame.new(-1.50001621, -2.56001854, -1.60915279, 1, 0, 0, 0, 0.984807789, -0.173648238, 0, 0.173648268, 0.98480773),
  1006. }, .4, false)
  1007. end
  1008. so(133680244,Torso,1,3)
  1009. CamShake(RightArm,10,.5,.5)
  1010. MagnitudeDmg(RightArm,10,40,3,RootPart.CFrame.lookVector*30,true,"Blunt",.5)
  1011. MagnitudeDmg(LeftArm,10,40,3,RootPart.CFrame.lookVector*30,true,"Blunt",.5)
  1012. Effects.Wave(RootPart.CFrame*CFrame.new(0,-5,-10),Vector3.new(),Vector3.new(1,1,1),"",10,false,.05)
  1013. Effects.Wave(RootPart.CFrame*CFrame.new(0,-5,-10),Vector3.new(),Vector3.new(.5,2,.5),"",-10,false,.05)
  1014. swait(50)
  1015. Humanoid.WalkSpeed = 8
  1016. Humanoid.JumpPower = 70
  1017. attack = false
  1018. end
  1019.  
  1020. chold = false
  1021. function headrip()
  1022. attack = true
  1023. Humanoid.WalkSpeed = 2
  1024. local grab = nil
  1025. local torsy = nil
  1026. local hum = nil
  1027. for i, v in pairs(FindNearestTorso((RootPart.Position-Vector3.new(0,5,0)), 6)) do
  1028. if v:FindFirstChild('Head') and v:FindFirstChildOfClass("Humanoid") and v:FindFirstChildOfClass("Humanoid").Health > 1 then
  1029. hum = v:FindFirstChildOfClass("Humanoid")
  1030. torsy = v:FindFirstChild("UpperTorso") or v:FindFirstChild("Torso")
  1031. grab = v
  1032. end
  1033. end
  1034. if grab ~= nil and torsy ~= nil then
  1035. so(200632136,RootPart,.8,1)
  1036. for i = 0,1.5,.1 do
  1037. swait()
  1038. PlayAnimationFromTable({
  1039. CFrame.new(0, -3.15884066, -2.53038549, 1, 0, 0, 0, 0.500003159, 0.866033316, 0, -0.866033316, 0.500003159),
  1040. CFrame.new(0, 4.57682848, -0.666438639, 1, 0, 0, 0, 0.939708173, 0.342026293, 0, -0.342026293, 0.939708173),
  1041. CFrame.new(4.681849, 1.59641457, -0.711094618, 0.624222994, -0.751194239, 0.214599475, 0.684884727, 0.658341169, 0.31230849, -0.375883996, -0.0479742885, 0.925433218),
  1042. CFrame.new(-2.69011021, 1.89638007, -2.91367531, 0.754421711, -0.633005977, -0.173641309, -0.133027852, 0.111603782, -0.984817266, 0.642774224, 0.76606667, -1.10864639e-05),
  1043. CFrame.new(1.50001526, -3.79332972, -2.24550533, 1, 0, 0, 0, 0.500003159, -0.866033316, 0, 0.866033316, 0.500003159),
  1044. CFrame.new(-1.50001526, -6.19305992, -1.26607037, 1, 0, 0, 0, 0.866039395, -0.500009179, 0, 0.500009179, 0.866039395),
  1045. }, .3, false)
  1046. end
  1047. so(240429615,torsy,1,1)
  1048. for i = 0,1.5,.1 do
  1049. swait()
  1050. PlayAnimationFromTable({
  1051. CFrame.new(0, -2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  1052. CFrame.new(0, 4.48268127, -0.632217944, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736),
  1053. CFrame.new(3.1680572, 1.46073127, -2.0815649, 0.866025388, 0.500000119, 5.45067223e-07, -0.0868230462, 0.150382936, -0.984807968, -0.492404222, 0.852868676, 0.173646957),
  1054. CFrame.new(-2.51076937, 2.25588131, -2.26415157, 0.103214003, -0.44736287, -0.888376772, -0.960965991, 0.185646102, -0.205133989, 0.256693006, 0.874872625, -0.410739183),
  1055. CFrame.new(1.50001526, -6, 2.98023224e-07, 0.939692736, 0, -0.342019886, 0, 1, 0, 0.342019916, 0, 0.939692736),
  1056. CFrame.new(-1.50001431, -6, 3.12924385e-06, 0.984807849, 0, 0.173647985, 0, 1, 0, -0.173647985, 0, 0.984807849),
  1057. }, .3, false)
  1058. torsy.CFrame = LeftArm.CFrame*CFrame.new(0,-3.5,0)*CFrame.Angles(math.rad(-90),0,0)
  1059. hum.PlatformStand = true
  1060. torsy.Velocity = Vector3.new()
  1061. end
  1062. local armmod = Instance.new("Model",chara)
  1063. armmod.Name = grab.Name
  1064. Instance.new("Humanoid",armmod).Health = 0
  1065. for i, v in pairs(grab:GetChildren()) do
  1066. if v:IsA("Accoutrement") then
  1067. v.Parent = armmod
  1068. if v:FindFirstChild("Handle"):FindFirstChild("AccessoryWeld") then
  1069. v.Handle.AccessoryWeld.Part1 = nil
  1070. end
  1071. end
  1072. end
  1073. local armp = grab:FindFirstChild("Head")
  1074. Instance.new("BoolValue",grab).Name = "DEATHED"
  1075. grab:BreakJoints()
  1076. armp.Parent = armmod
  1077. for i, v in pairs(armmod:GetChildren()) do
  1078. if v:IsA("Accoutrement") then
  1079. if v:FindFirstChild("Handle"):FindFirstChild("AccessoryWeld") then
  1080. v.Handle.AccessoryWeld.Part1 = armp
  1081. v.Parent = armmod
  1082. end
  1083. end
  1084. end
  1085. so(206082327,armp,1,5)
  1086. local bledp = Instance.new("Part",grab)
  1087. bledp.Size = Vector3.new(0,0,0)
  1088. bledp.Transparency = 1
  1089. bledp.CanCollide = false
  1090. local blpemit = Instance.new("ParticleEmitter")
  1091. blpemit.Color = ColorSequence.new(Color3.new(.5,0,0))
  1092. blpemit.Texture = "rbxassetid://233069772"
  1093. blpemit.Transparency = NumberSequence.new(0,1)
  1094. blpemit.Lifetime = NumberRange.new(1,3)
  1095. blpemit.Acceleration = Vector3.new(0,-10,0)
  1096. blpemit.Enabled = true
  1097. blpemit.EmissionDirection = "Front"
  1098. blpemit.Speed = NumberRange.new(1,3)
  1099. blpemit.Size = NumberSequence.new(.5)
  1100. blpemit.Rate = 1000
  1101. blpemit.RotSpeed = NumberRange.new(50)
  1102. blpemit.Rotation = NumberRange.new(0,360)
  1103. local blpe = blpemit:Clone()
  1104. blpe.Parent = bledp
  1105. blpe.EmissionDirection = "Top"
  1106. blpe.VelocitySpread = 20
  1107. local wel = Instance.new("Weld",armp)
  1108. wel.Part0 = RightArm
  1109. wel.Part1 = armp
  1110. wel.C0 = CFrame.new(0,-3.5,0) * CFrame.Angles(math.rad(-90),0,0)
  1111. local blape = bledp:Clone()
  1112. blape.Parent = armmod
  1113. blape.ParticleEmitter.EmissionDirection = "Bottom"
  1114. local bledw = Instance.new("Weld",bledp)
  1115. bledw.Part0 = torsy
  1116. bledw.Part1 = bledp
  1117. bledw.C0 = CFrame.new(0,1,0)
  1118. local bledw2 = Instance.new("Weld",blape)
  1119. bledw2.Part0 = armp
  1120. bledw2.Part1 = blape
  1121. bledw2.C0 = CFrame.new(0,-.5,0)
  1122. for i = 0,2,.1 do
  1123. swait()
  1124. PlayAnimationFromTable({
  1125. CFrame.new(3.48687149e-06, -2.00000668, 8.1956324e-07, 0.999997258, -1.74343575e-06, -2.29477928e-06, -1.74343575e-06, 1.00000334, -4.0978162e-07, -2.29477928e-06, -4.0978162e-07, 1.00000334),
  1126. CFrame.new(-1.77990187e-05, 4.48271227, -0.632223666, 0.999997258, -8.47689194e-07, -2.76961782e-06, -1.74343575e-06, 0.939696074, 0.34202069, -2.29477928e-06, -0.342021465, 0.939695656),
  1127. CFrame.new(5.08315945, 1.73977804, -0.499025792, 0.766043842, -0.642786205, -9.90775334e-07, 0.111617334, 0.133024782, -0.984809279, 0.633021057, 0.754409432, 0.173649535),
  1128. CFrame.new(-3.94786024, 2.2021482, -1.88751972, 0.103215352, 0.54567498, -0.831614494, -0.960967898, 0.270473748, 0.0582071356, 0.256692559, 0.793146551, 0.552295864),
  1129. CFrame.new(1.50003362, -6.00004482, -2.68220901e-07, 0.939689338, -1.74343575e-06, -0.342021078, -1.76123024e-06, 1.00000334, 2.14558611e-07, 0.342018902, -4.0978162e-07, 0.939696491),
  1130. CFrame.new(-1.49998772, -6.00003576, 1.09374523e-05, 0.984805524, -1.74343575e-06, 0.173645243, -1.66984103e-06, 1.00000334, -7.16618331e-07, -0.173650891, -4.0978162e-07, 0.98481071),
  1131. }, .3, false)
  1132. torsy.CFrame = LeftArm.CFrame*CFrame.new(0,-3.5,0)*CFrame.Angles(math.rad(-90),0,0)
  1133. hum.PlatformStand = true
  1134. torsy.Velocity = Vector3.new()
  1135. end
  1136. local ref = Instance.new("Part",Camera)
  1137. ref.Size = Vector3.new(0,0,0)
  1138. ref.Anchored = true
  1139. ref.CanCollide = false
  1140. ref.Transparency = .5
  1141. ref.BrickColor = BrickColor.Red()
  1142. ref.Material = "Neon"
  1143. local refm = Instance.new("SpecialMesh",ref)
  1144. refm.MeshType = "Sphere"
  1145. refm.Scale = Vector3.new(20,20,20)
  1146. repeat
  1147. swait()
  1148. ref.CFrame = Mouse.Hit
  1149. PlayAnimationFromTable({
  1150. CFrame.new(0, -2, 0, 0.64278698, 0, -0.766044974, 0, 1, 0, 0.766044974, 0, 0.64278698),
  1151. CFrame.new(-0.150877535, 4.46522665, -0.12660107, 0.64278698, -0.133022159, 0.754407108, 0, 0.984807849, 0.173647985, -0.766044974, -0.11161866, 0.633021653),
  1152. CFrame.new(4.82286024, 2.39900613, 0.0232518315, 0.939692676, -0.296197921, 0.171010524, -0.171010047, -0.839912355, -0.515075624, 0.296198219, 0.4547683, -0.839912176),
  1153. CFrame.new(-5.15264273, 1.06961691, 7.03156638e-06, 0.866025448, 0.500000119, -3.87430191e-07, -0.500000119, 0.866025388, -1.43057798e-06, -3.57627869e-07, 1.44541264e-06, 1),
  1154. CFrame.new(1.50001907, -6.00000048, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  1155. CFrame.new(-1.50001311, -6.00000048, 4.58955765e-06, 0.64278698, 0, 0.766044974, 0, 1, 0, -0.766044974, 0, 0.64278698),
  1156. }, .3, false)
  1157. torsy.CFrame = LeftArm.CFrame*CFrame.new(0,-3.5,0)*CFrame.Angles(math.rad(-90),0,0)
  1158. hum.PlatformStand = true
  1159. torsy.Velocity = Vector3.new()
  1160. --end
  1161. until chold == false
  1162. ref:Destroy()
  1163. so(200632136,RootPart,.9,1)
  1164. wel:Destroy()
  1165. armp.Velocity = (ref.Position-armp.Position).unit*200+Vector3.new(0,30,0)
  1166. armp.RotVelocity = Vector3.new(10,10,10)
  1167. armp.Touched:connect(function(hit)
  1168. if hit:IsDescendantOf(chara)==false and hit.Parent:FindFirstChildOfClass("Humanoid") and armp:FindFirstChild("HITA")==nil then
  1169. Instance.new("BoolValue",armp).Name = "HITA"
  1170. MagnitudeDmg(armp,6,120,0,Vector3.new(0,5,0)+RootPart.CFrame.lookVector*20,true,"Blunt",.2)
  1171. so(386946017,armp,.95,5)
  1172. swait(120)
  1173. for i=0,1,.05 do
  1174. armp.Transparency = i
  1175. swait()
  1176. end
  1177. armp.Parent:Destroy()
  1178. end
  1179. end)
  1180. for i = 0,1,.1 do
  1181. swait()
  1182. PlayAnimationFromTable({
  1183. CFrame.new(0, -2, 0, 0.499998987, 0, 0.866025984, 0, 1, 0, -0.866025984, 0, 0.499998987),
  1184. CFrame.new(0.142921209, 4.43258858, -0.122617245, 0.906121016, 0.296197981, -0.302012295, -0.219846055, 0.939692795, 0.262002379, 0.361403257, -0.17100969, 0.916593432),
  1185. CFrame.new(2.78872228, 0.109098256, -2.12347674, 0.642787337, 0.719846368, 0.262003452, -0.262002051, 0.527982056, -0.807830453, -0.719846845, 0.450617731, 0.5279814),
  1186. CFrame.new(-4.79283857, 1.09281766, -1.4803014e-05, 0.866025329, 0.500000238, -1.49011612e-07, -0.500000179, 0.866025388, 6.10661004e-07, 4.47034836e-07, -4.47034836e-07, 1),
  1187. CFrame.new(1.50002027, -6, -1.07288361e-06, 0.499998987, 0, -0.866025984, 0, 1, 0, 0.866025984, 0, 0.499998987),
  1188. CFrame.new(-1.50001907, -6, -3.81469727e-06, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  1189. }, .3, false)
  1190. torsy.CFrame = LeftArm.CFrame*CFrame.new(0,-3.5,0)*CFrame.Angles(math.rad(-90),0,0)
  1191. hum.PlatformStand = true
  1192. torsy.Velocity = Vector3.new()
  1193. end
  1194. end
  1195. attack = false
  1196. Humanoid.WalkSpeed = 8
  1197. end
  1198.  
  1199. function stomp()
  1200. attack = true
  1201. Humanoid.WalkSpeed = 2
  1202. Humanoid.JumpPower = 0
  1203. for i=0,2,.1 do
  1204. swait()
  1205. PlayAnimationFromTable({
  1206. CFrame.new(0, -2, 0.499992371, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  1207. CFrame.new(0, 4.42290688, -0.504058063, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736),
  1208. CFrame.new(4.92942858, 1.05621195, 0, 0.866025388, -0.500000238, 0, 0.500000238, 0.866025388, 0, 0, 0, 1),
  1209. CFrame.new(-4.79283428, 1.09282625, 0, 0.866025388, 0.500000238, 0, -0.500000238, 0.866025388, 0, 0, 0, 1),
  1210. CFrame.new(1.2052269, -2.30000162, -2.06380463, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  1211. CFrame.new(-1.50001597, -6, -0.499997646, 0.984807849, 0, 0.173647985, 0, 1, 0, -0.173647985, 0, 0.984807849),
  1212. }, .2, false)
  1213. end
  1214. so(536642316,RightLeg,.7,3)
  1215. Humanoid.WalkSpeed = 0
  1216. for i=0,1,.2 do
  1217. swait()
  1218. PlayAnimationFromTable({
  1219. CFrame.new(0, -1.82004941, -0.371783257, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736),
  1220. CFrame.new(0, 4.42290878, -0.504067779, 1, 0, 0, 0, 0.939692438, 0.342020929, 0, -0.342020959, 0.939692438),
  1221. CFrame.new(4.92943096, 1.05621648, -6.17108253e-06, 0.86602509, -0.500000656, -3.33671437e-07, 0.500000715, 0.86602509, 2.08616257e-07, 1.78813934e-07, -3.87430191e-07, 1),
  1222. CFrame.new(-4.79283619, 1.09282386, -6.2277054e-06, 0.86602509, 0.500000656, 3.33671437e-07, -0.500000715, 0.86602509, 2.08616257e-07, -1.78813934e-07, -3.87430191e-07, 1),
  1223. CFrame.new(1.2052269, -5.38336658, -2.92564583, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736),
  1224. CFrame.new(-1.50000978, -6.05502558, -1.08027697, 0.984807849, 0, 0.173647985, 0.0593910702, 0.939692736, -0.33682391, -0.163175747, 0.342019886, 0.925416768),
  1225. }, .4, false)
  1226. end
  1227. so(133680244,Torso,1,3)
  1228. CamShake(Torso,10,.5,.5)
  1229. Effects.Wave(RootPart.CFrame*CFrame.new(1,-7,-2),Vector3.new(),Vector3.new(1,.2,1),"",10,false,.05)
  1230. for _, c in pairs(workspace:GetDescendants()) do
  1231. local hum = c:FindFirstChildOfClass("Humanoid")
  1232. if hum ~= nil and c:FindFirstChild("IsTeamMateOfCK")==nil then
  1233. local head = GetDudesTorso(c)
  1234. if head ~= nil then
  1235. local targ = head.Position - RightLeg.Position
  1236. local mag = targ.magnitude
  1237. if 4 >= mag and c ~= chara then
  1238. so(206082327,head,1,3)
  1239. for ay,ee in pairs(c:children()) do
  1240. if ee:IsA("BasePart") then
  1241. for i=1,5 do
  1242. local bl = Instance.new("Part",c)
  1243. bl.CFrame = ee.CFrame + Vector3.new(math.random(-10,10)/10,0,math.random(-10,10)/10)
  1244. local rand = math.random(2,7)/10
  1245. bl.Size = Vector3.new(rand,rand,rand)
  1246. bl.BrickColor = BrickColor.new("Maroon")
  1247. bl.Material = "Granite"
  1248. ee:Destroy()
  1249. end
  1250. end
  1251. end
  1252. end
  1253. end
  1254. end
  1255. end
  1256. swait(50)
  1257. Humanoid.WalkSpeed = 8
  1258. Humanoid.JumpPower = 70
  1259. attack = false
  1260. end
  1261.  
  1262. function pshoot()
  1263. attack = true
  1264. local ref = Instance.new("Part",Camera)
  1265. ref.Size = Vector3.new(0,0,0)
  1266. ref.Anchored = true
  1267. ref.CanCollide = false
  1268. ref.Transparency = 1
  1269. so(2920959,PHandaru,.8,3)
  1270. ref.CFrame = Mouse.Hit
  1271. MagnitudeDmg(ref,3,40,2,RootPart.CFrame.lookVector*20,true,"Shot",.1)
  1272. local hitpt = Instance.new("Part",EffectModel)
  1273. hitpt.Size = Vector3.new(.3,.3,1)
  1274. hitpt.CFrame = PBExit.CFrame * CFrame.Angles(math.rad(180),0,0)
  1275. hitpt.Velocity = RootPart.CFrame.rightVector*30+Vector3.new(0,20,0)
  1276. local hitm = Instance.new("SpecialMesh",hitpt)
  1277. hitm.MeshId = "rbxassetid://94295100"
  1278. hitm.TextureId = "rbxassetid://94287792"
  1279. hitm.Scale = Vector3.new(7,7,7)
  1280. coroutine.wrap(function()
  1281. swait(30)
  1282. for i = 0,1,.1 do
  1283. swait()
  1284. hitpt.Transparency = i
  1285. end
  1286. hitpt:Destroy()
  1287. end)()
  1288. CamShake(PShot,10,.3,.2)
  1289. CamShake(ref,10,.3,.2)
  1290. Effects.Block(PShot.CFrame,Vector3.new(1,1,1),Vector3.new(1,1,1),Vector3.new(.2,.2,.2),"Neon","Bright yellow",true,false,.1)
  1291. Effects.Block(ref.CFrame,Vector3.new(1,1,1),Vector3.new(1,1,1),Vector3.new(.2,.2,.2),"Neon","Bright yellow",true,false,.1)
  1292. Effects.Block(CFrame.new((PShot.Position + ref.Position)/2,ref.Position),Vector3.new(1,1,(PShot.Position - ref.Position).magnitude),Vector3.new(1,1,1),Vector3.new(.1,.1,0),"Neon","Bright yellow",false,false,.1)
  1293. ref:Destroy()
  1294. for i=0,1,.1 do
  1295. swait()
  1296. PlayAnimationFromTable({
  1297. CFrame.new(0, -2.03907418, 0.246627718, 1, 0, 0, 0, 0.984807849, -0.173647985, 0, 0.173647985, 0.984807849),
  1298. CFrame.new(0, 4.27438593, -0.749499321, 1, 0, 0, 0, 0.866025686, 0.499999642, 0, -0.499999642, 0.866025686),
  1299. CFrame.new(4.50001526, 2.12096167, -0.0117100477, 1, 0, 0, 0, -0.500000715, -0.86602509, 0, 0.86602509, -0.500000715),
  1300. CFrame.new(-3.79128671, -0.462022513, -0.54968375, 0.939692497, -0.336824238, -0.0593918264, 0.321393669, 0.928998291, -0.183489919, 0.11697875, 0.153335959, 0.981225848),
  1301. CFrame.new(1.50001526, -5.94357777, 0.444926023, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),
  1302. CFrame.new(-1.50001526, -5.94357777, 0.444926023, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),
  1303. }, .3, false)
  1304. end
  1305. for i=0,2,.1 do
  1306. swait()
  1307. PlayAnimationFromTable({
  1308. CFrame.new(0, -2.03907442, 0.0466268957, 1, 0, 0, 0, 0.984807849, -0.173647985, 0, 0.173647985, 0.984807849),
  1309. CFrame.new(0, 4.27438593, -0.749499321, 1, 0, 0, 0, 0.866025686, 0.499999642, 0, -0.499999642, 0.866025686),
  1310. CFrame.new(4.50001526, 0.888218164, -1.46819997, 1, 0, 0, 0, 0.342019796, -0.939692855, 0, 0.939692855, 0.342019796),
  1311. CFrame.new(-3.79128027, -0.462018341, -0.549682617, 0.939692497, -0.336824238, -0.0593918264, 0.321393669, 0.928998291, -0.183489919, 0.11697875, 0.153335959, 0.981225848),
  1312. CFrame.new(1.50001526, -5.94357777, 0.444926023, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),
  1313. CFrame.new(-1.50001526, -5.94357777, 0.444926023, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),
  1314. }, .15, false)
  1315. end
  1316. attack = false
  1317. end
  1318.  
  1319. function sshoot()
  1320. attack = true
  1321. so(138083993,SHandaru,.8,3)
  1322. CamShake(SHandaru,10,.5,.3)
  1323. Effects.Block(SShot.CFrame,Vector3.new(1,1,1),Vector3.new(1,1,1),Vector3.new(.25,.25,.25),"Neon","Bright yellow",true,false,.1)
  1324. for a=1,6 do
  1325. local ref = Instance.new("Part",Camera)
  1326. ref.Size = Vector3.new(0,0,0)
  1327. ref.Anchored = true
  1328. ref.CanCollide = false
  1329. ref.Transparency = 1
  1330. ref.CFrame = Mouse.Hit*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  1331. MagnitudeDmg(ref,7,50,2,RootPart.CFrame.lookVector*20,true,"Shot",0)
  1332. CamShake(ref,10,.4,.3)
  1333. Effects.Block(ref.CFrame,Vector3.new(1,1,1),Vector3.new(1,1,1),Vector3.new(.2,.2,.2),"Neon","Bright yellow",true,false,.1)
  1334. Effects.Block(CFrame.new((SShot.Position + ref.Position)/2,ref.Position),Vector3.new(1,1,(SShot.Position - ref.Position).magnitude),Vector3.new(1,1,1),Vector3.new(.1,.1,0),"Neon","Bright yellow",false,false,.1)
  1335. ref:Destroy()
  1336. end
  1337. for i=0,2,.1 do
  1338. swait()
  1339. PlayAnimationFromTable({
  1340. CFrame.new(1.44002445e-06, -1.99998927, 1.07288088e-05, 0.500000179, -7.20012224e-07, -0.866025269, -5.03950741e-06, 0.999994636, -2.05067545e-06, 0.866026759, -5.36440439e-06, 0.499997884),
  1341. CFrame.new(-0.547573745, 4.48264122, -0.316118479, 0.500000179, -0.296203166, 0.813797355, -7.20012224e-07, 0.939689577, 0.342012942, -0.866025269, -0.17101118, 0.469843715),
  1342. CFrame.new(1.79884899, 0.344976842, -2.36338496, 0.362167031, 0.825433791, -0.433008999, 0.086823605, -0.492405862, -0.866018176, -0.928060055, 0.276049763, -0.249996945),
  1343. CFrame.new(-4.43855, 2.71461391, -2.15137076, 0.558953762, 0.0775076449, 0.825570107, 0.722433925, -0.534201145, -0.438984573, 0.406993419, 0.841796517, -0.354588091),
  1344. CFrame.new(1.26245594, -5.99997377, 0.147344589, 1.00000072, -2.5366503e-06, -2.98023224e-07, -2.50286234e-06, 0.999997318, -1.02932597e-06, -2.68220901e-07, -1.02135346e-06, 0.999999464),
  1345. CFrame.new(-1.16597474, -5.99992371, 0.0196756423, 0.500000179, -5.03950741e-06, 0.866026759, -7.20012224e-07, 0.999994636, -5.36440439e-06, -0.866025269, -2.05067545e-06, 0.499997884),
  1346. }, .3, false)
  1347. end
  1348. so(2697295,SHandaru,.4,3)
  1349. for i=0,1,.1 do
  1350. swait()
  1351. PlayAnimationFromTable({
  1352. CFrame.new(-1.44382084e-05, -2, -3.52843199e-05, 0.500002384, 7.21910419e-06, -0.866024017, -1.88881022e-05, 1, -2.56920703e-06, 0.866024017, 1.76421599e-05, 0.500002384),
  1353. CFrame.new(-0.547627807, 4.48263931, -0.316102535, 0.500002384, -0.296216011, 0.813789785, 7.21910419e-06, 0.939686358, 0.34203741, -0.866024017, -0.171013653, 0.46984759),
  1354. CFrame.new(1.81868255, -0.103687182, -2.3519392, 0.377200723, 0.740163803, -0.556666017, 0.111620866, -0.633017302, -0.766048193, -0.919380486, 0.226818368, -0.321392298),
  1355. CFrame.new(-3.0397644, 2.26208973, -1.6833154, 0.658552945, -0.00924476981, 0.752477705, 0.592071891, -0.610833943, -0.525673687, 0.46449858, 0.791704834, -0.396792918),
  1356. CFrame.new(1.76254702, -5.99993086, -0.252668977, 0.500002384, -1.88881022e-05, 0.866024017, 7.21910419e-06, 1, 1.76421599e-05, -0.866024017, -2.56920703e-06, 0.500002384),
  1357. CFrame.new(-1.16592002, -5.99993467, 0.0196563601, 0.500002384, -1.88881022e-05, 0.866024017, 7.21910419e-06, 1, 1.76421599e-05, -0.866024017, -2.56920703e-06, 0.500002384),
  1358. }, .2, false)
  1359. end
  1360. local hitpt = Instance.new("Part",EffectModel)
  1361. hitpt.Size = Vector3.new(.7,.6,2.1)
  1362. hitpt.CFrame = SSExit.CFrame * CFrame.Angles(0,math.rad(90),0)
  1363. hitpt.Velocity = RootPart.CFrame.rightVector*30+Vector3.new(0,20,0)
  1364. hitpt.BrickColor = BrickColor.Red()
  1365. local hitm = Instance.new("SpecialMesh",hitpt)
  1366. hitm.MeshId = "rbxassetid://94248124"
  1367. hitm.Scale = Vector3.new(4,4,4)
  1368. coroutine.wrap(function()
  1369. swait(30)
  1370. for i = 0,1,.1 do
  1371. swait()
  1372. hitpt.Transparency = i
  1373. end
  1374. hitpt:Destroy()
  1375. end)()
  1376. swait(15)
  1377. so(2697295,SHandaru,.5,3)
  1378. for i=0,2,.1 do
  1379. swait()
  1380. PlayAnimationFromTable({
  1381. CFrame.new(1.44002445e-06, -1.99998927, 1.07288088e-05, 0.500000179, -7.20012224e-07, -0.866025269, -5.03950741e-06, 0.999994636, -2.05067545e-06, 0.866026759, -5.36440439e-06, 0.499997884),
  1382. CFrame.new(-0.547573745, 4.48264122, -0.316118479, 0.500000179, -0.296203166, 0.813797355, -7.20012224e-07, 0.939689577, 0.342012942, -0.866025269, -0.17101118, 0.469843715),
  1383. CFrame.new(1.79884899, 0.344976842, -2.36338496, 0.362167031, 0.825433791, -0.433008999, 0.086823605, -0.492405862, -0.866018176, -0.928060055, 0.276049763, -0.249996945),
  1384. CFrame.new(-4.43855, 2.71461391, -2.15137076, 0.558953762, 0.0775076449, 0.825570107, 0.722433925, -0.534201145, -0.438984573, 0.406993419, 0.841796517, -0.354588091),
  1385. CFrame.new(1.26245594, -5.99997377, 0.147344589, 1.00000072, -2.5366503e-06, -2.98023224e-07, -2.50286234e-06, 0.999997318, -1.02932597e-06, -2.68220901e-07, -1.02135346e-06, 0.999999464),
  1386. CFrame.new(-1.16597474, -5.99992371, 0.0196756423, 0.500000179, -5.03950741e-06, 0.866026759, -7.20012224e-07, 0.999994636, -5.36440439e-06, -0.866025269, -2.05067545e-06, 0.499997884),
  1387. }, .15, false)
  1388. end
  1389. attack = false
  1390. end
  1391.  
  1392. slugged = false
  1393. function slugload()
  1394. attack = true
  1395. for i=0,1.5,.1 do
  1396. swait()
  1397. PlayAnimationFromTable({
  1398. CFrame.new(-7.16520026e-06, -2, -1.7398881e-05, 0.500000775, 3.58260013e-06, -0.866025031, -9.32523108e-06, 1, -1.24710277e-06, 0.866025031, 8.69944051e-06, 0.500000834),
  1399. CFrame.new(-0.547560275, 4.48266172, -0.316098541, 0.500000775, -0.296206981, 0.813794136, 3.58260013e-06, 0.939689577, 0.342028588, -0.866025031, -0.171011642, 0.469846636),
  1400. CFrame.new(1.79885161, 0.344982982, -2.3633914, 0.362167209, 0.825436056, -0.433004498, 0.0868273452, -0.492402256, -0.866019845, -0.928059697, 0.276049197, -0.249998987),
  1401. CFrame.new(-2.88378954, -0.377780259, 1.65731072, 0.242966965, -0.26283136, 0.933748841, 0.258929163, 0.945239484, 0.198690876, -0.934838533, 0.193499491, 0.297716707),
  1402. CFrame.new(1.26252019, -5.99994278, 0.147333026, 1.00000072, -7.54235225e-06, -9.83476639e-07, 2.53665348e-06, 0.999997318, -3.08799281e-06, 3.27825546e-07, 1.02932972e-06, 0.999999464),
  1403. CFrame.new(-1.1659708, -5.99996805, 0.0196544528, 0.500000775, -9.32523108e-06, 0.866025031, 3.58260013e-06, 1, 8.69944051e-06, -0.866025031, -1.24710277e-06, 0.500000834),
  1404. }, .15, false)
  1405. end
  1406. local hitpt0 = Instance.new("Part",EffectModel)
  1407. hitpt0.Size = Vector3.new(.7,.6,2.1)
  1408. hitpt0.CFrame = SSExit.CFrame * CFrame.Angles(0,math.rad(90),0)
  1409. hitpt0.Velocity = RootPart.CFrame.rightVector*30+Vector3.new(0,20,0)
  1410. local hitm0 = Instance.new("SpecialMesh",hitpt0)
  1411. hitm0.MeshId = "rbxassetid://94248124"
  1412. hitm0.TextureId = "rbxassetid://94219470"
  1413. hitm0.Scale = Vector3.new(4,4,4)
  1414. local hw = Instance.new("Weld",hitpt0)
  1415. hw.Part0 = hitpt0
  1416. hw.Part1 = LeftArm
  1417. hw.C0 = CFrame.new(-1,2.5,0)
  1418. for i=0,1,.1 do
  1419. swait()
  1420. PlayAnimationFromTable({
  1421. CFrame.new(-1.44382084e-05, -2, -3.52843199e-05, 0.500002384, 7.21910419e-06, -0.866024017, -1.88881022e-05, 1, -2.56920703e-06, 0.866024017, 1.76421599e-05, 0.500002384),
  1422. CFrame.new(-0.547627807, 4.48263931, -0.316102535, 0.500002384, -0.296216011, 0.813789785, 7.21910419e-06, 0.939686358, 0.34203741, -0.866024017, -0.171013653, 0.46984759),
  1423. CFrame.new(1.81868255, -0.103687182, -2.3519392, 0.377200723, 0.740163803, -0.556666017, 0.111620866, -0.633017302, -0.766048193, -0.919380486, 0.226818368, -0.321392298),
  1424. CFrame.new(-3.0397644, 2.26208973, -1.6833154, 0.658552945, -0.00924476981, 0.752477705, 0.592071891, -0.610833943, -0.525673687, 0.46449858, 0.791704834, -0.396792918),
  1425. CFrame.new(1.26245594, -5.99997377, 0.147344589, 1.00000072, -2.5366503e-06, -2.98023224e-07, -2.50286234e-06, 0.999997318, -1.02932597e-06, -2.68220901e-07, -1.02135346e-06, 0.999999464),
  1426. CFrame.new(-1.16597474, -5.99992371, 0.0196756423, 0.500000179, -5.03950741e-06, 0.866026759, -7.20012224e-07, 0.999994636, -5.36440439e-06, -0.866025269, -2.05067545e-06, 0.499997884),
  1427. }, .2, false)
  1428. end
  1429. hitpt0:Destroy()
  1430. so(2697295,SHandaru,.7,3)
  1431. swait(15)
  1432. for i=0,1,.1 do
  1433. swait()
  1434. PlayAnimationFromTable({
  1435. CFrame.new(1.44002445e-06, -1.99998927, 1.07288088e-05, 0.500000179, -7.20012224e-07, -0.866025269, -5.03950741e-06, 0.999994636, -2.05067545e-06, 0.866026759, -5.36440439e-06, 0.499997884),
  1436. CFrame.new(-0.547573745, 4.48264122, -0.316118479, 0.500000179, -0.296203166, 0.813797355, -7.20012224e-07, 0.939689577, 0.342012942, -0.866025269, -0.17101118, 0.469843715),
  1437. CFrame.new(1.79884899, 0.344976842, -2.36338496, 0.362167031, 0.825433791, -0.433008999, 0.086823605, -0.492405862, -0.866018176, -0.928060055, 0.276049763, -0.249996945),
  1438. CFrame.new(-4.43855, 2.71461391, -2.15137076, 0.558953762, 0.0775076449, 0.825570107, 0.722433925, -0.534201145, -0.438984573, 0.406993419, 0.841796517, -0.354588091),
  1439. CFrame.new(1.26245594, -5.99997377, 0.147344589, 1.00000072, -2.5366503e-06, -2.98023224e-07, -2.50286234e-06, 0.999997318, -1.02932597e-06, -2.68220901e-07, -1.02135346e-06, 0.999999464),
  1440. CFrame.new(-1.16597474, -5.99992371, 0.0196756423, 0.500000179, -5.03950741e-06, 0.866026759, -7.20012224e-07, 0.999994636, -5.36440439e-06, -0.866025269, -2.05067545e-06, 0.499997884),
  1441. }, .2, false)
  1442. end
  1443. for i=0,1.5,.1 do
  1444. swait()
  1445. PlayAnimationFromTable({
  1446. CFrame.new(-1.44382084e-05, -2, -3.52843199e-05, 0.500002384, 7.21910419e-06, -0.866024017, -1.88881022e-05, 1, -2.56920703e-06, 0.866024017, 1.76421599e-05, 0.500002384),
  1447. CFrame.new(-0.547627807, 4.48263931, -0.316102535, 0.500002384, -0.296216011, 0.813789785, 7.21910419e-06, 0.939686358, 0.34203741, -0.866024017, -0.171013653, 0.46984759),
  1448. CFrame.new(1.81868255, -0.103687182, -2.3519392, 0.377200723, 0.740163803, -0.556666017, 0.111620866, -0.633017302, -0.766048193, -0.919380486, 0.226818368, -0.321392298),
  1449. CFrame.new(-3.0397644, 2.26208973, -1.6833154, 0.658552945, -0.00924476981, 0.752477705, 0.592071891, -0.610833943, -0.525673687, 0.46449858, 0.791704834, -0.396792918),
  1450. CFrame.new(1.26245594, -5.99997377, 0.147344589, 1.00000072, -2.5366503e-06, -2.98023224e-07, -2.50286234e-06, 0.999997318, -1.02932597e-06, -2.68220901e-07, -1.02135346e-06, 0.999999464),
  1451. CFrame.new(-1.16597474, -5.99992371, 0.0196756423, 0.500000179, -5.03950741e-06, 0.866026759, -7.20012224e-07, 0.999994636, -5.36440439e-06, -0.866025269, -2.05067545e-06, 0.499997884),
  1452. }, .15, false)
  1453. end
  1454. local hitpt = Instance.new("Part",EffectModel)
  1455. hitpt.Size = Vector3.new(.7,.6,2.1)
  1456. hitpt.CFrame = SSExit.CFrame * CFrame.Angles(0,math.rad(90),0)
  1457. hitpt.Velocity = RootPart.CFrame.rightVector*30+Vector3.new(0,20,0)
  1458. hitpt.BrickColor = BrickColor.Red()
  1459. local hitm = Instance.new("SpecialMesh",hitpt)
  1460. hitm.MeshId = "rbxassetid://94248124"
  1461. hitm.Scale = Vector3.new(4,4,4)
  1462. coroutine.wrap(function()
  1463. swait(30)
  1464. for i = 0,1,.1 do
  1465. swait()
  1466. hitpt.Transparency = i
  1467. end
  1468. hitpt:Destroy()
  1469. end)()
  1470. swait(15)
  1471. so(2697295,SHandaru,.5,3)
  1472. for i=0,2,.1 do
  1473. swait()
  1474. PlayAnimationFromTable({
  1475. CFrame.new(1.44002445e-06, -1.99998927, 1.07288088e-05, 0.500000179, -7.20012224e-07, -0.866025269, -5.03950741e-06, 0.999994636, -2.05067545e-06, 0.866026759, -5.36440439e-06, 0.499997884),
  1476. CFrame.new(-0.547573745, 4.48264122, -0.316118479, 0.500000179, -0.296203166, 0.813797355, -7.20012224e-07, 0.939689577, 0.342012942, -0.866025269, -0.17101118, 0.469843715),
  1477. CFrame.new(1.79884899, 0.344976842, -2.36338496, 0.362167031, 0.825433791, -0.433008999, 0.086823605, -0.492405862, -0.866018176, -0.928060055, 0.276049763, -0.249996945),
  1478. CFrame.new(-4.43855, 2.71461391, -2.15137076, 0.558953762, 0.0775076449, 0.825570107, 0.722433925, -0.534201145, -0.438984573, 0.406993419, 0.841796517, -0.354588091),
  1479. CFrame.new(1.26245594, -5.99997377, 0.147344589, 1.00000072, -2.5366503e-06, -2.98023224e-07, -2.50286234e-06, 0.999997318, -1.02932597e-06, -2.68220901e-07, -1.02135346e-06, 0.999999464),
  1480. CFrame.new(-1.16597474, -5.99992371, 0.0196756423, 0.500000179, -5.03950741e-06, 0.866026759, -7.20012224e-07, 0.999994636, -5.36440439e-06, -0.866025269, -2.05067545e-06, 0.499997884),
  1481. }, .15, false)
  1482. end
  1483. slugged = true
  1484. attack = false
  1485. end
  1486.  
  1487. function slugshoot()
  1488. attack = true
  1489. so(138083993,SHandaru,.8,3)
  1490. CamShake(SHandaru,10,.5,.3)
  1491. Effects.Block(SShot.CFrame,Vector3.new(1,1,1),Vector3.new(1,1,1),Vector3.new(.25,.25,.25),"Neon","Bright yellow",true,false,.1)
  1492. local ref = Instance.new("Part",Camera)
  1493. ref.Size = Vector3.new(0,0,0)
  1494. ref.Anchored = true
  1495. ref.CanCollide = false
  1496. ref.Transparency = 1
  1497. ref.CFrame = Mouse.Hit
  1498. MagnitudeDmg(ref,3,120,0,RootPart.CFrame.lookVector*70,true,"Shot",0)
  1499. CamShake(ref,10,.4,.3)
  1500. Effects.Block(ref.CFrame,Vector3.new(1,1,1),Vector3.new(1,1,1),Vector3.new(.2,.2,.2),"Neon","Bright yellow",true,false,.1)
  1501. Effects.Block(CFrame.new((SShot.Position + ref.Position)/2,ref.Position),Vector3.new(1,1,(SShot.Position - ref.Position).magnitude),Vector3.new(1,1,1),Vector3.new(.1,.1,0),"Neon","Bright yellow",false,false,.1)
  1502. ref:Destroy()
  1503. for i=0,2,.1 do
  1504. swait()
  1505. PlayAnimationFromTable({
  1506. CFrame.new(1.44002445e-06, -1.99998927, 1.07288088e-05, 0.500000179, -7.20012224e-07, -0.866025269, -5.03950741e-06, 0.999994636, -2.05067545e-06, 0.866026759, -5.36440439e-06, 0.499997884),
  1507. CFrame.new(-0.547573745, 4.48264122, -0.316118479, 0.500000179, -0.296203166, 0.813797355, -7.20012224e-07, 0.939689577, 0.342012942, -0.866025269, -0.17101118, 0.469843715),
  1508. CFrame.new(1.79884899, 0.344976842, -2.36338496, 0.362167031, 0.825433791, -0.433008999, 0.086823605, -0.492405862, -0.866018176, -0.928060055, 0.276049763, -0.249996945),
  1509. CFrame.new(-4.43855, 2.71461391, -2.15137076, 0.558953762, 0.0775076449, 0.825570107, 0.722433925, -0.534201145, -0.438984573, 0.406993419, 0.841796517, -0.354588091),
  1510. CFrame.new(1.26245594, -5.99997377, 0.147344589, 1.00000072, -2.5366503e-06, -2.98023224e-07, -2.50286234e-06, 0.999997318, -1.02932597e-06, -2.68220901e-07, -1.02135346e-06, 0.999999464),
  1511. CFrame.new(-1.16597474, -5.99992371, 0.0196756423, 0.500000179, -5.03950741e-06, 0.866026759, -7.20012224e-07, 0.999994636, -5.36440439e-06, -0.866025269, -2.05067545e-06, 0.499997884),
  1512. }, .3, false)
  1513. end
  1514. so(2697295,SHandaru,.4,3)
  1515. for i=0,1,.1 do
  1516. swait()
  1517. PlayAnimationFromTable({
  1518. CFrame.new(-1.44382084e-05, -2, -3.52843199e-05, 0.500002384, 7.21910419e-06, -0.866024017, -1.88881022e-05, 1, -2.56920703e-06, 0.866024017, 1.76421599e-05, 0.500002384),
  1519. CFrame.new(-0.547627807, 4.48263931, -0.316102535, 0.500002384, -0.296216011, 0.813789785, 7.21910419e-06, 0.939686358, 0.34203741, -0.866024017, -0.171013653, 0.46984759),
  1520. CFrame.new(1.81868255, -0.103687182, -2.3519392, 0.377200723, 0.740163803, -0.556666017, 0.111620866, -0.633017302, -0.766048193, -0.919380486, 0.226818368, -0.321392298),
  1521. CFrame.new(-3.0397644, 2.26208973, -1.6833154, 0.658552945, -0.00924476981, 0.752477705, 0.592071891, -0.610833943, -0.525673687, 0.46449858, 0.791704834, -0.396792918),
  1522. CFrame.new(1.76254702, -5.99993086, -0.252668977, 0.500002384, -1.88881022e-05, 0.866024017, 7.21910419e-06, 1, 1.76421599e-05, -0.866024017, -2.56920703e-06, 0.500002384),
  1523. CFrame.new(-1.16592002, -5.99993467, 0.0196563601, 0.500002384, -1.88881022e-05, 0.866024017, 7.21910419e-06, 1, 1.76421599e-05, -0.866024017, -2.56920703e-06, 0.500002384),
  1524. }, .2, false)
  1525. end
  1526. local hitpt = Instance.new("Part",EffectModel)
  1527. hitpt.Size = Vector3.new(.7,.6,2.1)
  1528. hitpt.CFrame = SSExit.CFrame * CFrame.Angles(0,math.rad(90),0)
  1529. hitpt.Velocity = RootPart.CFrame.rightVector*30+Vector3.new(0,20,0)
  1530. local hitm = Instance.new("SpecialMesh",hitpt)
  1531. hitm.MeshId = "rbxassetid://94248124"
  1532. hitm.TextureId = "rbxassetid://94219470"
  1533. hitm.Scale = Vector3.new(4,4,4)
  1534. coroutine.wrap(function()
  1535. swait(30)
  1536. for i = 0,1,.1 do
  1537. swait()
  1538. hitpt.Transparency = i
  1539. end
  1540. hitpt:Destroy()
  1541. end)()
  1542. swait(15)
  1543. so(2697295,SHandaru,.5,3)
  1544. for i=0,2,.1 do
  1545. swait()
  1546. PlayAnimationFromTable({
  1547. CFrame.new(1.44002445e-06, -1.99998927, 1.07288088e-05, 0.500000179, -7.20012224e-07, -0.866025269, -5.03950741e-06, 0.999994636, -2.05067545e-06, 0.866026759, -5.36440439e-06, 0.499997884),
  1548. CFrame.new(-0.547573745, 4.48264122, -0.316118479, 0.500000179, -0.296203166, 0.813797355, -7.20012224e-07, 0.939689577, 0.342012942, -0.866025269, -0.17101118, 0.469843715),
  1549. CFrame.new(1.79884899, 0.344976842, -2.36338496, 0.362167031, 0.825433791, -0.433008999, 0.086823605, -0.492405862, -0.866018176, -0.928060055, 0.276049763, -0.249996945),
  1550. CFrame.new(-4.43855, 2.71461391, -2.15137076, 0.558953762, 0.0775076449, 0.825570107, 0.722433925, -0.534201145, -0.438984573, 0.406993419, 0.841796517, -0.354588091),
  1551. CFrame.new(1.26245594, -5.99997377, 0.147344589, 1.00000072, -2.5366503e-06, -2.98023224e-07, -2.50286234e-06, 0.999997318, -1.02932597e-06, -2.68220901e-07, -1.02135346e-06, 0.999999464),
  1552. CFrame.new(-1.16597474, -5.99992371, 0.0196756423, 0.500000179, -5.03950741e-06, 0.866026759, -7.20012224e-07, 0.999994636, -5.36440439e-06, -0.866025269, -2.05067545e-06, 0.499997884),
  1553. }, .15, false)
  1554. end
  1555. slugged = false
  1556. attack = false
  1557. end
  1558.  
  1559. function equippist()
  1560. attack = true
  1561. Humanoid.WalkSpeed = 2
  1562. Humanoid.JumpPower = 0
  1563. if CurrentWep == "Shotgun" then
  1564. for i=0,2,.1 do
  1565. swait()
  1566. PlayAnimationFromTable({
  1567. CFrame.new(0, -2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  1568. CFrame.new(-0.102602988, 4.45099878, 0.277624637, 0.939692736, -7.70138158e-08, -0.342019916, -0.0593909845, 0.984807849, -0.163175747, 0.33682391, 0.173647955, 0.925416648),
  1569. CFrame.new(4.50001526, 2.68827057, 0.743782997, 1, 0, 0, 0, -0.866025388, 0.500000238, 0, -0.500000238, -0.866025388),
  1570. CFrame.new(-4.79884863, 0.640861034, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736, 0, 0, 0, 1),
  1571. CFrame.new(1.50001431, -6.00000048, 3.12924385e-06, 0.984807849, 0, -0.173647985, 0, 1, 0, 0.173647985, 0, 0.984807849),
  1572. CFrame.new(-1.5000186, -6.00000048, 9.83476639e-07, 0.984807849, 0, 0.173647985, 0, 1, 0, -0.173647985, 0, 0.984807849),
  1573. }, .15, false)
  1574. end
  1575. SHandaru.Transparency = 1
  1576. HolShot.Transparency = 0
  1577. for i=0,1,.1 do
  1578. swait()
  1579. PlayAnimationFromTable({
  1580. CFrame.new(0, -2, 0, 0.866025388, 0, 0.500000238, 0, 1, 0, -0.500000238, 0, 0.866025388) * CFrame.new(0,.1 * math.cos((sine)/10), 0),
  1581. CFrame.new(0.147721067, 4.44785833, -0.255860269, 0.866025388, 0.0868240371, -0.492404163, 0, 0.984807849, 0.173647985, 0.500000238, -0.150383562, 0.852868617),
  1582. CFrame.new(4.80713892, 0.709604442, -2.81296843e-06, 0.939692855, -0.342019916, 2.08616257e-07, 0.342019856, 0.939692736, 1.5155652e-07, -2.08616257e-07, -8.94069672e-08, 1.00000024),
  1583. CFrame.new(-4.50001621, 0.190193266, -0.9294222, 1.00000024, 0, -2.98023224e-08, 0, 0.86602515, -0.500000358, 0, 0.500000417, 0.866025329),
  1584. CFrame.new(1.50001502, -5.99999952, 5.36441803e-07, 0.766044557, 0, -0.642787695, 0, 1, 0, 0.642787695, 0, 0.766044557) * CFrame.new(0,-.1 * math.cos((sine)/10), 0),
  1585. CFrame.new(-1.50001943, -5.99999952, 0, 1.00000024, 0, 0, 0, 1, 0, 0, 0, 1.00000024) * CFrame.new(0,-.1 * math.cos((sine)/10), 0),
  1586. }, .3, false)
  1587. end
  1588. end
  1589. for i=0,2,.1 do
  1590. swait()
  1591. PlayAnimationFromTable({
  1592. CFrame.new(0, -1.99700248, -0.27749458, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),
  1593. CFrame.new(0, 4.55108547, -0.444281816, 1, 0, 0, 0, 0.939692676, 0.342020601, 0, -0.342020601, 0.939692676),
  1594. CFrame.new(3.77304196, -0.53539288, 0.273614407, 0.939692736, 0.321393579, 0.116977744, -0.342019945, 0.883022368, 0.321393698, -8.56816769e-08, -0.342020065, 0.939692795),
  1595. CFrame.new(-4.64490843, 0.330175281, -1.53582289e-06, 0.984807849, 0.173648134, -3.13053391e-07, -0.173648164, 0.984807909, 2.68220901e-07, 3.50177288e-07, -1.78813934e-07, 1.00000012),
  1596. CFrame.new(1.50001884, -5.99037027, -0.421832889, 0.984807849, 0, -0.173647985, -0.0301536229, 0.984807849, -0.171009898, 0.171009898, 0.173647985, 0.969846487),
  1597. CFrame.new(-1.50002635, -5.99037027, -0.421831638, 0.984807849, 0, 0.173647985, 0.0301536229, 0.984807849, -0.171009898, -0.171009898, 0.173647985, 0.969846487),
  1598. }, .15, false)
  1599. end
  1600. CurrentWep = "Pistol"
  1601. PHandaru.Transparency = 0
  1602. HolPist.Transparency = 1
  1603. Humanoid.WalkSpeed = 8
  1604. Humanoid.JumpPower = 70
  1605. attack = false
  1606. end
  1607.  
  1608. function equipshot()
  1609. attack = true
  1610. Humanoid.WalkSpeed = 2
  1611. Humanoid.JumpPower = 0
  1612. if CurrentWep == "Pistol" then
  1613. for i=0,2,.1 do
  1614. swait()
  1615. PlayAnimationFromTable({
  1616. CFrame.new(0, -1.99700248, -0.27749458, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),
  1617. CFrame.new(0, 4.55108547, -0.444281816, 1, 0, 0, 0, 0.939692676, 0.342020601, 0, -0.342020601, 0.939692676),
  1618. CFrame.new(3.77304196, -0.53539288, 0.273614407, 0.939692736, 0.321393579, 0.116977744, -0.342019945, 0.883022368, 0.321393698, -8.56816769e-08, -0.342020065, 0.939692795),
  1619. CFrame.new(-4.64490843, 0.330175281, -1.53582289e-06, 0.984807849, 0.173648134, -3.13053391e-07, -0.173648164, 0.984807909, 2.68220901e-07, 3.50177288e-07, -1.78813934e-07, 1.00000012),
  1620. CFrame.new(1.50001884, -5.99037027, -0.421832889, 0.984807849, 0, -0.173647985, -0.0301536229, 0.984807849, -0.171009898, 0.171009898, 0.173647985, 0.969846487),
  1621. CFrame.new(-1.50002635, -5.99037027, -0.421831638, 0.984807849, 0, 0.173647985, 0.0301536229, 0.984807849, -0.171009898, -0.171009898, 0.173647985, 0.969846487),
  1622. }, .15, false)
  1623. end
  1624. PHandaru.Transparency = 1
  1625. HolPist.Transparency = 0
  1626. for i=0,1,.1 do
  1627. swait()
  1628. PlayAnimationFromTable({
  1629. CFrame.new(0, -2, 0, 0.866025388, 0, 0.500000238, 0, 1, 0, -0.500000238, 0, 0.866025388) * CFrame.new(0,.1 * math.cos((sine)/10), 0),
  1630. CFrame.new(0.147721067, 4.44785833, -0.255860269, 0.866025388, 0.0868240371, -0.492404163, 0, 0.984807849, 0.173647985, 0.500000238, -0.150383562, 0.852868617),
  1631. CFrame.new(4.80713892, 0.709604442, -2.81296843e-06, 0.939692855, -0.342019916, 2.08616257e-07, 0.342019856, 0.939692736, 1.5155652e-07, -2.08616257e-07, -8.94069672e-08, 1.00000024),
  1632. CFrame.new(-4.50001621, 0.190193266, -0.9294222, 1.00000024, 0, -2.98023224e-08, 0, 0.86602515, -0.500000358, 0, 0.500000417, 0.866025329),
  1633. CFrame.new(1.50001502, -5.99999952, 5.36441803e-07, 0.766044557, 0, -0.642787695, 0, 1, 0, 0.642787695, 0, 0.766044557) * CFrame.new(0,-.1 * math.cos((sine)/10), 0),
  1634. CFrame.new(-1.50001943, -5.99999952, 0, 1.00000024, 0, 0, 0, 1, 0, 0, 0, 1.00000024) * CFrame.new(0,-.1 * math.cos((sine)/10), 0),
  1635. }, .3, false)
  1636. end
  1637. end
  1638. for i=0,2,.1 do
  1639. swait()
  1640. PlayAnimationFromTable({
  1641. CFrame.new(0, -2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  1642. CFrame.new(-0.102602988, 4.45099878, 0.277624637, 0.939692736, -7.70138158e-08, -0.342019916, -0.0593909845, 0.984807849, -0.163175747, 0.33682391, 0.173647955, 0.925416648),
  1643. CFrame.new(4.50001526, 2.68827057, 0.743782997, 1, 0, 0, 0, -0.866025388, 0.500000238, 0, -0.500000238, -0.866025388),
  1644. CFrame.new(-4.79884863, 0.640861034, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736, 0, 0, 0, 1),
  1645. CFrame.new(1.50001431, -6.00000048, 3.12924385e-06, 0.984807849, 0, -0.173647985, 0, 1, 0, 0.173647985, 0, 0.984807849),
  1646. CFrame.new(-1.5000186, -6.00000048, 9.83476639e-07, 0.984807849, 0, 0.173647985, 0, 1, 0, -0.173647985, 0, 0.984807849),
  1647. }, .15, false)
  1648. end
  1649. CurrentWep = "Shotgun"
  1650. SHandaru.Transparency = 0
  1651. HolShot.Transparency = 1
  1652. Humanoid.WalkSpeed = 8
  1653. Humanoid.JumpPower = 70
  1654. attack = false
  1655. end
  1656.  
  1657. function unequip()
  1658. attack = true
  1659. Humanoid.WalkSpeed = 2
  1660. Humanoid.JumpPower = 0
  1661. if CurrentWep == "Pistol" then
  1662. for i=0,2,.1 do
  1663. swait()
  1664. PlayAnimationFromTable({
  1665. CFrame.new(0, -1.99700248, -0.27749458, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),
  1666. CFrame.new(0, 4.55108547, -0.444281816, 1, 0, 0, 0, 0.939692676, 0.342020601, 0, -0.342020601, 0.939692676),
  1667. CFrame.new(3.77304196, -0.53539288, 0.273614407, 0.939692736, 0.321393579, 0.116977744, -0.342019945, 0.883022368, 0.321393698, -8.56816769e-08, -0.342020065, 0.939692795),
  1668. CFrame.new(-4.64490843, 0.330175281, -1.53582289e-06, 0.984807849, 0.173648134, -3.13053391e-07, -0.173648164, 0.984807909, 2.68220901e-07, 3.50177288e-07, -1.78813934e-07, 1.00000012),
  1669. CFrame.new(1.50001884, -5.99037027, -0.421832889, 0.984807849, 0, -0.173647985, -0.0301536229, 0.984807849, -0.171009898, 0.171009898, 0.173647985, 0.969846487),
  1670. CFrame.new(-1.50002635, -5.99037027, -0.421831638, 0.984807849, 0, 0.173647985, 0.0301536229, 0.984807849, -0.171009898, -0.171009898, 0.173647985, 0.969846487),
  1671. }, .15, false)
  1672. end
  1673. PHandaru.Transparency = 1
  1674. HolPist.Transparency = 0
  1675. elseif CurrentWep == "Shotgun" then
  1676. for i=0,2,.1 do
  1677. swait()
  1678. PlayAnimationFromTable({
  1679. CFrame.new(0, -2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  1680. CFrame.new(-0.102602988, 4.45099878, 0.277624637, 0.939692736, -7.70138158e-08, -0.342019916, -0.0593909845, 0.984807849, -0.163175747, 0.33682391, 0.173647955, 0.925416648),
  1681. CFrame.new(4.50001526, 2.68827057, 0.743782997, 1, 0, 0, 0, -0.866025388, 0.500000238, 0, -0.500000238, -0.866025388),
  1682. CFrame.new(-4.79884863, 0.640861034, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736, 0, 0, 0, 1),
  1683. CFrame.new(1.50001431, -6.00000048, 3.12924385e-06, 0.984807849, 0, -0.173647985, 0, 1, 0, 0.173647985, 0, 0.984807849),
  1684. CFrame.new(-1.5000186, -6.00000048, 9.83476639e-07, 0.984807849, 0, 0.173647985, 0, 1, 0, -0.173647985, 0, 0.984807849),
  1685. }, .15, false)
  1686. end
  1687. SHandaru.Transparency = 1
  1688. HolShot.Transparency = 0
  1689. end
  1690. CurrentWep = "CQC"
  1691. Humanoid.WalkSpeed = 8
  1692. Humanoid.JumpPower = 70
  1693. attack = false
  1694. end
  1695.  
  1696. Mouse.Button1Down:connect(function()
  1697. if attack == false then
  1698. if CurrentWep == "Pistol" then
  1699. pshoot()
  1700. elseif CurrentWep == "Shotgun" then
  1701. if slugged == true then
  1702. slugshoot()
  1703. else
  1704. sshoot()
  1705. end
  1706. else
  1707. smek()
  1708. end
  1709. end
  1710. end)
  1711.  
  1712. local sprintt = 0
  1713. Mouse.KeyDown:connect(function(k)
  1714. k = k:lower()
  1715. if k=='m' then
  1716. if mus.IsPlaying == true then
  1717. mus:Stop()
  1718. elseif mus.IsPaused == true then
  1719. mus:Play()
  1720. end
  1721. end
  1722. if attack == false then
  1723. if k == 'z' then
  1724. if CurrentWep == "Shotgun" and slugged == false then
  1725. slugload()
  1726. elseif CurrentWep == "CQC" then
  1727. slam()
  1728. end
  1729. elseif k == 'f' then
  1730. smek()
  1731. elseif k == 'x' then
  1732. xhold = true
  1733. if CurrentWep == "CQC" then
  1734. thesurou()
  1735. end
  1736. elseif k == 'c' then
  1737. chold = true
  1738. if CurrentWep == "CQC" then
  1739. headrip()
  1740. end
  1741. elseif k == 'v' then
  1742. stomp()
  1743. elseif k == 't' then
  1744. if CurrentWep ~= "Pistol" then
  1745. equippist()
  1746. else
  1747. unequip()
  1748. end
  1749. elseif k == 'y' then
  1750. if CurrentWep ~= "Shotgun" then
  1751. equipshot()
  1752. else
  1753. unequip()
  1754. end
  1755. end
  1756. end
  1757. end)
  1758.  
  1759. Mouse.KeyUp:connect(function(k)
  1760. if k == 'x' then
  1761. xhold = false
  1762. elseif k == 'c' then
  1763. chold = false
  1764. end
  1765. end)
  1766.  
  1767. coroutine.wrap(function()
  1768. game:GetService("RunService").RenderStepped:connect(function()
  1769. for i,v in pairs(chara:GetDescendants()) do
  1770. if v:IsA("BasePart") and v.Parent.Name ~= "FakeHeadM" and v.Name ~= "Head" and v.Parent:IsA("Accessory") == false then
  1771. v.LocalTransparencyModifier = 0
  1772. end
  1773. end
  1774. end)
  1775. end)()
  1776.  
  1777. coroutine.wrap(function()
  1778. while 1 do
  1779. swait()
  1780. if doe <= 360 then
  1781. doe = doe + 2
  1782. else
  1783. doe = 0
  1784. end
  1785. end
  1786. end)()
  1787. while true do
  1788. swait()
  1789. while true do
  1790. swait()
  1791. Head.Transparency = 1
  1792. if Head:FindFirstChild("face") then
  1793. Head:FindFirstChild("face").Transparency = 1
  1794. end
  1795. Humanoid.MaxHealth = 1000
  1796. if Humanoid.Health < 1000 then
  1797. Humanoid.Health = Humanoid.Health + 1
  1798. end
  1799. if chara:FindFirstChild("mus")==nil then
  1800. mus = Instance.new("Sound",chara)
  1801. mus.Name = "mus"
  1802. mus.SoundId = "rbxassetid://142653441"--"rbxassetid://335204822"
  1803. mus.Looped = true
  1804. mus.Volume = 1
  1805. mus:Play()
  1806. end
  1807. if sprintt >= 1 then
  1808. sprintt = sprintt - 1
  1809. end
  1810. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  1811. velocity = RootPart.Velocity.y
  1812. sine = sine + change
  1813. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 12, chara)
  1814. if RootPart.Velocity.y > 1 and hit == nil then
  1815. Anim = "Jump"
  1816. if attack == false then
  1817. PlayAnimationFromTable({
  1818. CFrame.new(0, 0.0294559821, -0.246550545, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736),
  1819. CFrame.new(0, 4.29474068, 0.563813269, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736),
  1820. CFrame.new(3.55814481, -0.469561696, -5.11224357e-07, 0.939692616, 0.342020273, -4.69496833e-08, -0.342020273, 0.939692736, 5.36441803e-07, 2.38418579e-07, -5.06639481e-07, 1),
  1821. CFrame.new(-3.56861424, -0.512341022, -1.44051228e-06, 0.939692616, -0.342020273, 4.69496833e-08, 0.342020273, 0.939692736, 5.36441803e-07, -2.38418579e-07, -5.06639481e-07, 1),
  1822. CFrame.new(1.50001526, -3.80000091, -1.39999759, 1, 0, 0, 0, 1, -2.98023224e-08, 0, -2.98023224e-08, 1),
  1823. CFrame.new(-1.50001621, -5.99999809, 1.13248825e-06, 1, 0, 0, 0, 1, -2.98023224e-08, 0, -2.98023224e-08, 1),
  1824. }, .1, false)
  1825. end
  1826. elseif RootPart.Velocity.y < -1 and hit == nil then
  1827. Anim = "Fall"
  1828. if attack == false then
  1829. PlayAnimationFromTable({
  1830. CFrame.new(-1.05621432e-07, -2.434778869, -0.0625008196, 1.00000024, 4.33864784e-08, -9.66617677e-07, 6.05497235e-07, 0.939693511, -0.342021585, 3.16162158e-07, 0.34202069, 0.939693451),
  1831. CFrame.new(1.90734863e-06, 4.4037199, -0.67802453, 1, 0, 0, 0, 0.866025686, 0.499999642, 0, -0.499999642, 0.866025686),
  1832. CFrame.new(4.85359192, 1.0866574, -1.10285725e-06, 0.866025507, -0.49999994, -1.54857389e-07, 0.5, 0.866025507, -1.1920929e-07, 1.78813934e-07, 2.98023224e-08, 1),
  1833. CFrame.new(-4.92668247, 0.72687763, 4.47010007e-06, 0.939692616, 0.342020273, 4.69496833e-08, -0.342020273, 0.939692736, -5.36441803e-07, -2.38418579e-07, 5.06639481e-07, 1),
  1834. CFrame.new(1.50001335, -3.80000305, -1.39999592, 1, 0, 0, 0, 1, 2.98023224e-08, 0, 2.98023224e-08, 1),
  1835. CFrame.new(-1.50002098, -6.00000477, 1.72853458e-06, 1, 0, 0, 0, 1, 2.98023224e-08, 0, 2.98023224e-08, 1),
  1836. }, .1, false)
  1837. end
  1838. elseif Torsovelocity < 1 and hit ~= nil then
  1839. Anim = "Idle"
  1840. if attack == false then
  1841. change = 1
  1842. if CurrentWep == "CQC" then
  1843. PlayAnimationFromTable({
  1844. CFrame.new(0, -2, 0, 0.866025388, 0, 0.500000238, 0, 1, 0, -0.500000238, 0, 0.866025388) * CFrame.new(0,.1 * math.cos((sine)/10), 0),
  1845. CFrame.new(0.147721067, 4.44785833, -0.255860269, 0.866025388, 0.0868240371, -0.492404163, 0, 0.984807849, 0.173647985, 0.500000238, -0.150383562, 0.852868617),
  1846. CFrame.new(4.80713892, 0.709604442, -2.81296843e-06, 0.939692855, -0.342019916, 2.08616257e-07, 0.342019856, 0.939692736, 1.5155652e-07, -2.08616257e-07, -8.94069672e-08, 1.00000024),
  1847. CFrame.new(-4.50001621, 0.190193266, -0.9294222, 1.00000024, 0, -2.98023224e-08, 0, 0.86602515, -0.500000358, 0, 0.500000417, 0.866025329),
  1848. CFrame.new(1.50001502, -5.99999952, 5.36441803e-07, 0.766044557, 0, -0.642787695, 0, 1, 0, 0.642787695, 0, 0.766044557) * CFrame.new(0,-.1 * math.cos((sine)/10), 0),
  1849. CFrame.new(-1.50001943, -5.99999952, 0, 1.00000024, 0, 0, 0, 1, 0, 0, 0, 1.00000024) * CFrame.new(0,-.1 * math.cos((sine)/10), 0),
  1850. }, .3, false)
  1851. elseif CurrentWep == "Shotgun" then
  1852. PlayAnimationFromTable({
  1853. CFrame.new(0, -2, 0, 0.499998987, 0, -0.866025984, 0, 1, 0, 0.866025984, 0, 0.499998987) * CFrame.new(0,.1 * math.cos((sine)/10), 0),
  1854. CFrame.new(-0.547520339, 4.48267984, -0.316110164, 0.499998987, -0.29619813, 0.813798308, 0, 0.939692736, 0.342019886, -0.866025984, -0.171009615, 0.469845414),
  1855. CFrame.new(3.21991515, 0.397024989, -1.54293764, 0.344303846, 0.926736116, 0.150382981, -0.030152997, 0.17100893, -0.984807968, -0.938374043, 0.334538639, 0.0868228972),
  1856. CFrame.new(-3.26355648, -1.19176984, -1.47300911, 0.0174857043, 0.276001155, 0.960998297, 0.995382905, -0.0955301225, 0.00932515692, 0.0943780318, 0.956398189, -0.276397288),
  1857. CFrame.new(1.26245594, -5.99997377, 0.147344589, 1.00000072, -2.5366503e-06, -2.98023224e-07, -2.50286234e-06, 0.999997318, -1.02932597e-06, -2.68220901e-07, -1.02135346e-06, 0.999999464) * CFrame.new(0,-.1 * math.cos((sine)/10), 0),
  1858. CFrame.new(-1.16597474, -5.99992371, 0.0196756423, 0.500000179, -5.03950741e-06, 0.866026759, -7.20012224e-07, 0.999994636, -5.36440439e-06, -0.866025269, -2.05067545e-06, 0.499997884) * CFrame.new(0,-.1 * math.cos((sine)/10), 0),
  1859. }, .3, false)
  1860. elseif CurrentWep == "Pistol" then
  1861. PlayAnimationFromTable({
  1862. CFrame.new(0, -2.03907442, 0.0466268957, 1, 0, 0, 0, 0.984807849, -0.173647985, 0, 0.173647985, 0.984807849) * CFrame.new(0,.1 * math.cos((sine)/10), 0),
  1863. CFrame.new(0, 4.27439117, -0.749502182, 1, 0, 0, 0, 0.866025686, 0.499999642, 0, -0.499999642, 0.866025686),
  1864. CFrame.new(4.50001526, 0.888218164, -1.46819997, 1, 0, 0, 0, 0.342019796, -0.939692855, 0, 0.939692855, 0.342019796),
  1865. CFrame.new(-3.79128027, -0.462018341, -0.549682617, 0.939692497, -0.336824238, -0.0593918264, 0.321393669, 0.928998291, -0.183489919, 0.11697875, 0.153335959, 0.981225848),
  1866. CFrame.new(1.50001526, -5.90884781, 0.64188838, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849) * CFrame.new(0,-.1 * math.cos((sine)/10), 0),
  1867. CFrame.new(-1.50001526, -5.90884781, 0.64188838, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849) * CFrame.new(0,-.1 * math.cos((sine)/10), 0),
  1868. }, .3, false)
  1869. end
  1870. end
  1871. elseif Torsovelocity > 2 and hit ~= nil then
  1872. Anim = "Walk"
  1873. if attack == false then
  1874. Humanoid.WalkSpeed = 8
  1875. Humanoid.JumpPower = 70
  1876. if CurrentWep == "CQC" then
  1877. PlayAnimationFromTable({
  1878. CFrame.new(0, -2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0- .08 * math.cos((sine) / 5), 0) * CFrame.Angles(0, math.rad(0 + -5 * math.cos((sine) / 10)), 0),
  1879. CFrame.new(0, 4.41427088, -0.820159078, 1, 0, 0, 0, 0.939692438, 0.342020929, 0, -0.342020959, 0.939692438) * CFrame.Angles(0, math.rad(0 + 5 * math.cos((sine) / 10)), 0),
  1880. CFrame.new(4.50001478, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0- 1.5 * math.cos((sine) / 10)) * CFrame.Angles(math.rad(0 + 30 * math.cos((sine) / 10)), 0, 0),
  1881. CFrame.new(-4.50001478, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0+ 1.5 * math.cos((sine) / 10)) * CFrame.Angles(math.rad(0 - 30 * math.cos((sine) / 10)), 0, 0),
  1882. CFrame.new(1.50001502, -6, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0+ 1.5 * math.cos((sine) / 10)) * CFrame.Angles(math.rad(0 - 30 * math.cos((sine) / 10)), 0, 0),
  1883. CFrame.new(-1.50001502, -6, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0- 1.5 * math.cos((sine) / 10)) * CFrame.Angles(math.rad(0 + 30 * math.cos((sine) / 10)), 0, 0),
  1884. }, .3, false)
  1885. elseif CurrentWep == "Shotgun" then
  1886. PlayAnimationFromTable({
  1887. CFrame.new(0, -2, 0, 0.499998987, 0, -0.866025984, 0, 1, 0, 0.866025984, 0, 0.499998987) * CFrame.new(0, 0- .08 * math.cos((sine) / 5), 0) * CFrame.Angles(0, 0, 0),
  1888. CFrame.new(-0.547520339, 4.48267984, -0.316110164, 0.499998987, -0.29619813, 0.813798308, 0, 0.939692736, 0.342019886, -0.866025984, -0.171009615, 0.469845414),
  1889. CFrame.new(3.21991515, 0.397024989, -1.54293764, 0.344303846, 0.926736116, 0.150382981, -0.030152997, 0.17100893, -0.984807968, -0.938374043, 0.334538639, 0.0868228972),
  1890. CFrame.new(-3.26355648, -1.19176984, -1.47300911, 0.0174857043, 0.276001155, 0.960998297, 0.995382905, -0.0955301225, 0.00932515692, 0.0943780318, 0.956398189, -0.276397288),
  1891. CFrame.new(1.76242733, -6, -0.252659202, 0.499998987, 0, 0.866025984, 0, 1, 0, -0.866025984, 0, 0.499998987) * CFrame.new(0, 0, 0+ 1.5 * math.cos((sine) / 10)) * CFrame.Angles(math.rad(0 - 30 * math.cos((sine) / 10)), 0, 0),
  1892. CFrame.new(-1.16602993, -6, 0.0196474195, 0.499998987, 0, 0.866025984, 0, 1, 0, -0.866025984, 0, 0.499998987) * CFrame.new(0, 0, 0- 1.5 * math.cos((sine) / 10)) * CFrame.Angles(math.rad(0 + 30 * math.cos((sine) / 10)), 0, 0),
  1893. }, .3, false)
  1894. elseif CurrentWep == "Pistol" then
  1895. PlayAnimationFromTable({
  1896. CFrame.new(0, -2.03907442, 0.0466268957, 1, 0, 0, 0, 0.984807849, -0.173647985, 0, 0.173647985, 0.984807849) * CFrame.new(0, 0- .08 * math.cos((sine) / 5), 0) * CFrame.Angles(0, 0, 0),
  1897. CFrame.new(0, 4.27439117, -0.749502182, 1, 0, 0, 0, 0.866025686, 0.499999642, 0, -0.499999642, 0.866025686),
  1898. CFrame.new(4.50001526, 0.888218164, -1.46819997, 1, 0, 0, 0, 0.342019796, -0.939692855, 0, 0.939692855, 0.342019796),
  1899. CFrame.new(-3.79128027, -0.462018341, -0.549682617, 0.939692497, -0.336824238, -0.0593918264, 0.321393669, 0.928998291, -0.183489919, 0.11697875, 0.153335959, 0.981225848),
  1900. CFrame.new(1.50001526, -5.90884781, 0.64188838, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849) * CFrame.new(0, 0, 0+ 1.5 * math.cos((sine) / 10)) * CFrame.Angles(math.rad(0 - 30 * math.cos((sine) / 10)), 0, 0),
  1901. CFrame.new(-1.50001526, -5.90884781, 0.64188838, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849) * CFrame.new(0, 0, 0- 1.5 * math.cos((sine) / 10)) * CFrame.Angles(math.rad(0 + 30 * math.cos((sine) / 10)), 0, 0),
  1902. }, .3, false)
  1903. end
  1904. end
  1905. end
  1906. end
  1907. end
Add Comment
Please, Sign In to add comment