13242

Untitled

Dec 17th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 92.14 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,Mouse,mouse,UserInputService,ContextActionService = owner
  4. local RealPlayer = Player
  5. do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
  6.  
  7. ---------------
  8. --Agent Agony--
  9. ----------------------------------------------------------------
  10. --By CKbackup (Sugarie Saffron) --
  11. --YT: https://www.youtube.com/channel/UC8n9FFz7e6Zo13ob_5F9MJw--
  12. --Discord: Sugarie Saffron#4705 --
  13. ----------------------------------------------------------------
  14.  
  15. print([[
  16. --Agent Agony--
  17. By CKbackup (Sugarie Saffron)
  18. YT: https://www.youtube.com/channel/UC8n9FFz7e6Zo13ob_5F9MJw
  19. Discord: Sugarie Saffron#4705
  20. --------------------------------
  21. As I've been demoted from my SB
  22. Mod rank in VSB, I don't see the
  23. need to hold this back any longer.
  24.  
  25. Also, if the anims look weird or
  26. the weapon looks out of place,
  27. it's because it's actually modeled
  28. off a scaled rig with a package.
  29. It looks better with the Boy
  30. package.
  31. --------------------------------
  32. (Keys)
  33. M - Mute/Play Music
  34.  
  35. -Common Keys-
  36. F - Kick
  37. V - Stomp
  38. T - Equip/Unequip Pistol
  39. Y - Equip/Unequip Shotgun
  40.  
  41. -CQC (no weapon)-
  42. Click - Kick
  43. Z - Smash (AoE attack)
  44. X - Grab (to throw a player)
  45. C - Head Rip and Throw
  46.  
  47. -Pistol-
  48. Click - Shoot
  49.  
  50. -Shotgun-
  51. Click - Shoot
  52. Z - Load a Slug
  53. (this makes the next shotgun
  54. shot single, powerful, and
  55. accurate)
  56. ]])
  57.  
  58. wait(1/60)
  59. Effects = { }
  60. local Player = game:service'Players'.localPlayer
  61. local chara = Player.Character
  62. local Humanoid = chara:FindFirstChildOfClass("Humanoid")
  63. local Mouse = Player:GetMouse()
  64. local LeftArm = chara["Left Arm"]
  65. local RightArm = chara["Right Arm"]
  66. local LeftLeg = chara["Left Leg"]
  67. local RightLeg = chara["Right Leg"]
  68. local Head = chara.Head
  69. local Torso = chara.Torso
  70. local Camera = workspace.CurrentCamera
  71. local RootPart = chara.HumanoidRootPart
  72. local RootJoint = RootPart.RootJoint
  73. local attack = false
  74. local Anim = 'Idle'
  75. local attacktype = 1
  76. local delays = false
  77. local play = true
  78. local targetted = nil
  79. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  80. local velocity = RootPart.Velocity.y
  81. local sine = 0
  82. local change = 1
  83. local doe = 0
  84. local Create = LoadLibrary("RbxUtility").Create
  85. local debby = game:GetService("Debris")
  86. local CurrentWep = "CQC"
  87. Humanoid.WalkSpeed = 8
  88.  
  89. Humanoid.Animator.Parent = nil
  90. chara.Animate.Parent = nil
  91.  
  92. local newMotor = function(part0, part1, c0, c1)
  93. local w = Create('Motor'){
  94. Parent = part0,
  95. Part0 = part0,
  96. Part1 = part1,
  97. C0 = c0,
  98. C1 = c1,
  99. }
  100. return w
  101. end
  102.  
  103. function clerp(a, b, t)
  104. return a:lerp(b, t)
  105. end
  106.  
  107. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  108. NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  109.  
  110. LeftArm.Size = LeftArm.Size * 1
  111. RightArm.Size = RightArm.Size * 1
  112. LeftLeg.Size = LeftLeg.Size * 1
  113. RightLeg.Size = RightLeg.Size * 1
  114. Torso.Size = Torso.Size * 1
  115. Head.Size = Head.Size * 1
  116. RootPart.Size = RootPart.Size * 1
  117.  
  118. local RW = newMotor(Torso, RightArm, CFrame.new(4.5, 0, 0), CFrame.new(0, 0, 0))
  119. local LW = newMotor(Torso, LeftArm, CFrame.new(-4.5, 0, 0), CFrame.new(0, 0, 0))
  120. local Neck = newMotor(Torso, Head, CFrame.new(0,4.5,0), CFrame.new())
  121. local RH = newMotor(Torso, RightLeg, CFrame.new(1.5, -3, 0), CFrame.new(0, 0, 0))
  122. local LH = newMotor(Torso, LeftLeg, CFrame.new(-1.5, -3, 0), CFrame.new(0, 0, 0))
  123. local RootJoint = newMotor(RootPart, Torso, CFrame.new(0,-2,0), CFrame.new(0,-2,0))
  124.  
  125. local rarmc1 = RW.C1
  126. local larmc1 = LW.C1
  127. local rlegc1 = RH.C1
  128. local llegc1 = LH.C1
  129.  
  130. local resetc1 = false
  131.  
  132. function PlayAnimationFromTable(table, speed, bool)
  133. RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
  134. Neck.C0 = clerp(Neck.C0, table[2], speed)
  135. RW.C0 = clerp(RW.C0, table[3], speed)
  136. LW.C0 = clerp(LW.C0, table[4], speed)
  137. RH.C0 = clerp(RH.C0, table[5], speed)
  138. LH.C0 = clerp(LH.C0, table[6], speed)
  139. if bool == true then
  140. if resetc1 == false then
  141. resetc1 = true
  142. RootJoint.C1 = RootJoint.C1
  143. Neck.C1 = Neck.C1
  144. RW.C1 = rarmc1
  145. LW.C1 = larmc1
  146. RH.C1 = rlegc1
  147. LH.C1 = llegc1
  148. end
  149. end
  150. end
  151.  
  152. ArtificialHB = Instance.new("BindableEvent", script)
  153. ArtificialHB.Name = "Heartbeat"
  154. script:WaitForChild("Heartbeat")
  155. frame = 0.03333333333333
  156. tf = 0
  157. allowframeloss = false
  158. tossremainder = false
  159. lastframe = tick()
  160. script.Heartbeat:Fire()
  161. game:GetService("RunService").Heartbeat:connect(function(s, p)
  162. tf = tf + s
  163. if tf >= frame then
  164. if allowframeloss then
  165. script.Heartbeat:Fire()
  166. lastframe = tick()
  167. else
  168. for i = 1, math.floor(tf / frame) do
  169. script.Heartbeat:Fire()
  170. end
  171. lastframe = tick()
  172. end
  173. if tossremainder then
  174. tf = 0
  175. else
  176. tf = tf - frame * math.floor(tf / frame)
  177. end
  178. end
  179. end)
  180. function swait(num)
  181. if num == 0 or num == nil then
  182. ArtificialHB.Event:wait()
  183. else
  184. for i = 0, num do
  185. ArtificialHB.Event:wait()
  186. end
  187. end
  188. end
  189.  
  190. function RemoveOutlines(part)
  191. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  192. end
  193.  
  194. function so(id,par,pit,vol)
  195. local sou = Instance.new("Sound", par or workspace)
  196. if par == chara then
  197. sou.Parent = chara.Torso
  198. end
  199. sou.Volume = vol
  200. sou.Pitch = pit or 1
  201. sou.SoundId = "rbxassetid://" .. id
  202. sou.PlayOnRemove = true
  203. sou:Destroy()
  204. end
  205.  
  206. --This is just for builds--
  207. New = function(Object, Parent, Name, Data)
  208. local Object = Instance.new(Object)
  209. for Index, Value in pairs(Data or {}) do
  210. Object[Index] = Value
  211. end
  212. Object.Parent = Parent
  213. Object.Name = Name
  214. return Object
  215. end
  216. FakeHeadM = New("Model",chara,"FakeHeadM",{})
  217. 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,})
  218. Mesh = New("SpecialMesh",FakeHead,"Mesh",{Scale = Vector3.new(1.25, 1.25, 1.25),})
  219. Fays = New("Decal",FakeHead,"Decal",{Texture = "rbxassetid://315622231",})
  220. Weld = New("ManualWeld",FakeHead,"Weld",{Part0 = FakeHead,Part1 = Head,})
  221. 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,})
  222. 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,})
  223. 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),})
  224. Head.Transparency = 1
  225. Humanoid.CameraOffset = Vector3.new(0,3,0)
  226.  
  227. Shotii = New("Model",chara,"Shotii",{})
  228. 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,})
  229. Mesh = New("SpecialMesh",SHandaru,"Mesh",{Scale = Vector3.new(0.00400000019, 0.00400000019, 0.00400000019),MeshId = "rbxassetid://450250994",TextureId = "rbxassetid://450251128",MeshType = Enum.MeshType.FileMesh,})
  230. 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),})
  231. 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,})
  232. 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),})
  233. 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,})
  234. 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),})
  235.  
  236. Pistoru = New("Model",chara,"Pistoru",{})
  237. 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,})
  238. Mesh = New("SpecialMesh",PHandaru,"Mesh",{Scale = Vector3.new(0.00400000019, 0.00400000019, 0.00400000019),MeshId = "rbxassetid://437242703",TextureId = "rbxassetid://437242708",MeshType = Enum.MeshType.FileMesh,})
  239. 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),})
  240. 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,})
  241. 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),})
  242. 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,})
  243. 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),})
  244.  
  245. 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,})
  246. Mesh = New("SpecialMesh",HolShot,"Mesh",{Scale = Vector3.new(0.00400000019, 0.00400000019, 0.00400000019),MeshId = "rbxassetid://450250994",TextureId = "rbxassetid://450251128",MeshType = Enum.MeshType.FileMesh,})
  247. 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),})
  248.  
  249. 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,})
  250. Mesh = New("SpecialMesh",HolPist,"Mesh",{Scale = Vector3.new(0.00400000019, 0.00400000019, 0.00400000019),MeshId = "rbxassetid://437242703",TextureId = "rbxassetid://437242708",MeshType = Enum.MeshType.FileMesh,})
  251. 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),})
  252.  
  253. Instance.new("BoolValue",chara).Name = "HolyMode"
  254. local hedcol = FakeHead.BrickColor
  255. local bcols = Instance.new("BodyColors",chara)
  256. bcols.Name = "NeoCols"
  257. bcols.HeadColor = hedcol
  258. bcols.LeftArmColor = hedcol
  259. bcols.RightArmColor = hedcol
  260. bcols.TorsoColor = hedcol
  261. bcols.LeftLegColor = hedcol
  262. bcols.RightLegColor = hedcol
  263.  
  264. for i, v in pairs(chara:children()) do
  265. if v:IsA("Shirt") or v:IsA("Pants") then
  266. v:Destroy()
  267. end
  268. end
  269. local sh = Instance.new("Shirt",chara)
  270. local pn = Instance.new("Pants",chara)
  271. sh.ShirtTemplate = "rbxassetid://676428254"
  272. pn.PantsTemplate = "rbxassetid://676428351"
  273. if chara:FindFirstChild("FaysG") then chara:FindFirstChild("FaysG"):Destroy() end
  274. ---------------------------
  275.  
  276. function rayCast(Position, Direction, Range, Ignore)
  277. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  278. end
  279.  
  280. function FindNearestTorso(Position, Distance, SinglePlayer)
  281. if SinglePlayer then
  282. return (SinglePlayer.Head.CFrame.p - Position).magnitude < Distance
  283. end
  284. local List = {}
  285. for i, v in pairs(workspace:GetDescendants()) do
  286. if v:IsA("Model") then
  287. if v:findFirstChild("Head") then
  288. if v ~= chara then
  289. if (v.Head.Position - Position).magnitude <= Distance then
  290. table.insert(List, v)
  291. end
  292. end
  293. end
  294. end
  295. end
  296. return List
  297. end
  298.  
  299. EffectModel = Create("Model"){
  300. Parent = chara,
  301. Name = "Effects",
  302. }
  303.  
  304. --Effect Functions--
  305. Effects = {
  306.  
  307. Block = function(cf,partsize,meshstart,meshadd,matr,colour,spin,inverse,factor)
  308. local p = Instance.new("Part",EffectModel)
  309. p.BrickColor = BrickColor.new(colour)
  310. p.Size = partsize
  311. p.Anchored = true
  312. p.CanCollide = false
  313. p.Material = matr
  314. p.CFrame = cf
  315. if inverse == true then
  316. p.Transparency = 1
  317. else
  318. p.Transparency = 0
  319. end
  320. local m = Instance.new("BlockMesh",p)
  321. m.Scale = meshstart
  322. coroutine.wrap(function()
  323. for i=0,1,factor do
  324. swait()
  325. if inverse == true then
  326. p.Transparency = 1-i
  327. else
  328. p.Transparency = i
  329. end
  330. m.Scale = m.Scale + meshadd
  331. if spin == true then
  332. p.CFrame = p.CFrame * CFrame.Angles(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  333. end
  334. end
  335. p:Destroy()
  336. end)()
  337. return p
  338. end,
  339.  
  340. Sphere = function(cf,partsize,meshstart,meshadd,matr,colour,inverse,factor)
  341. local p = Instance.new("Part",EffectModel)
  342. p.BrickColor = BrickColor.new(colour)
  343. p.Size = partsize
  344. p.Anchored = true
  345. p.CanCollide = false
  346. p.Material = matr
  347. p.CFrame = cf
  348. if inverse == true then
  349. p.Transparency = 1
  350. else
  351. p.Transparency = 0
  352. end
  353. local m = Instance.new("SpecialMesh",p)
  354. m.MeshType = "Sphere"
  355. m.Scale = meshstart
  356. coroutine.wrap(function()
  357. for i=0,1,factor do
  358. swait()
  359. if inverse == true then
  360. p.Transparency = 1-i
  361. else
  362. p.Transparency = i
  363. end
  364. m.Scale = m.Scale + meshadd
  365. end
  366. p:Destroy()
  367. end)()
  368. return p
  369. end,
  370.  
  371. Cylinder = function(cf,partsize,meshstart,meshadd,matr,colour,inverse,factor)
  372. local p = Instance.new("Part",EffectModel)
  373. p.BrickColor = BrickColor.new(colour)
  374. p.Size = partsize
  375. p.Anchored = true
  376. p.CanCollide = false
  377. p.Material = matr
  378. p.CFrame = cf
  379. if inverse == true then
  380. p.Transparency = 1
  381. else
  382. p.Transparency = 0
  383. end
  384. local m = Instance.new("CylinderMesh",p)
  385. m.Scale = meshstart
  386. coroutine.wrap(function()
  387. for i=0,1,factor do
  388. swait()
  389. if inverse == true then
  390. p.Transparency = 1-i
  391. else
  392. p.Transparency = i
  393. end
  394. m.Scale = m.Scale + meshadd
  395. end
  396. p:Destroy()
  397. end)()
  398. return p
  399. end,
  400.  
  401. Wave = function(cf,meshstart,meshadd,colour,spin,inverse,factor)
  402. local p = Instance.new("Part",EffectModel)
  403. p.BrickColor = BrickColor.new(colour)
  404. p.Size = Vector3.new()
  405. p.Anchored = true
  406. p.CanCollide = false
  407. p.CFrame = cf
  408. if inverse == true then
  409. p.Transparency = 1
  410. else
  411. p.Transparency = 0
  412. end
  413. local m = Instance.new("SpecialMesh",p)
  414. m.MeshId = "rbxassetid://20329976"
  415. m.Scale = meshstart
  416. coroutine.wrap(function()
  417. for i=0,1,factor do
  418. swait()
  419. if inverse == true then
  420. p.Transparency = 1-i
  421. else
  422. p.Transparency = i
  423. end
  424. m.Scale = m.Scale + meshadd
  425. p.CFrame = p.CFrame * CFrame.Angles(0,math.rad(spin),0)
  426. end
  427. p:Destroy()
  428. end)()
  429. return p
  430. end,
  431.  
  432. Ring = function(cf,meshstart,meshadd,colour,inverse,factor)
  433. local p = Instance.new("Part",EffectModel)
  434. p.BrickColor = BrickColor.new(colour)
  435. p.Size = Vector3.new()
  436. p.Anchored = true
  437. p.CanCollide = false
  438. p.CFrame = cf
  439. if inverse == true then
  440. p.Transparency = 1
  441. else
  442. p.Transparency = 0
  443. end
  444. local m = Instance.new("SpecialMesh",p)
  445. m.MeshId = "rbxassetid://3270017"
  446. m.Scale = meshstart
  447. coroutine.wrap(function()
  448. for i=0,1,factor do
  449. swait()
  450. if inverse == true then
  451. p.Transparency = 1-i
  452. else
  453. p.Transparency = i
  454. end
  455. m.Scale = m.Scale + meshadd
  456. end
  457. p:Destroy()
  458. end)()
  459. return p
  460. end,
  461.  
  462. Meshed = function(cf,meshstart,meshadd,colour,meshid,textid,spin,inverse,factor)
  463. local p = Instance.new("Part",EffectModel)
  464. p.BrickColor = BrickColor.new(colour)
  465. p.Size = Vector3.new()
  466. p.Anchored = true
  467. p.CanCollide = false
  468. p.CFrame = cf
  469. if inverse == true then
  470. p.Transparency = 1
  471. else
  472. p.Transparency = 0
  473. end
  474. local m = Instance.new("SpecialMesh",p)
  475. m.MeshId = meshid
  476. m.TextureId = textid
  477. m.Scale = meshstart
  478. coroutine.wrap(function()
  479. for i=0,1,factor do
  480. swait()
  481. if inverse == true then
  482. p.Transparency = 1-i
  483. else
  484. p.Transparency = i
  485. end
  486. m.Scale = m.Scale + meshadd
  487. p.CFrame = p.CFrame * CFrame.Angles(0,math.rad(spin),0)
  488. end
  489. p:Destroy()
  490. end)()
  491. return p
  492. end,
  493.  
  494. Explode = function(cf,partsize,meshstart,meshadd,matr,colour,move,inverse,factor)
  495. local p = Instance.new("Part",EffectModel)
  496. p.BrickColor = BrickColor.new(colour)
  497. p.Size = partsize
  498. p.Anchored = true
  499. p.CanCollide = false
  500. p.Material = matr
  501. p.CFrame = cf * CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  502. if inverse == true then
  503. p.Transparency = 1
  504. else
  505. p.Transparency = 0
  506. end
  507. local m = Instance.new("SpecialMesh",p)
  508. m.MeshType = "Sphere"
  509. m.Scale = meshstart
  510. coroutine.wrap(function()
  511. for i=0,1,factor do
  512. swait()
  513. if inverse == true then
  514. p.Transparency = 1-i
  515. else
  516. p.Transparency = i
  517. end
  518. m.Scale = m.Scale + meshadd
  519. p.CFrame = p.CFrame * CFrame.new(0,move,0)
  520. end
  521. p:Destroy()
  522. end)()
  523. return p
  524. end,
  525.  
  526. }
  527.  
  528. function chatfunc(text)
  529. coroutine.wrap(function()
  530. if chara:FindFirstChild("TalkingBillBoard")~= nil then
  531. chara:FindFirstChild("TalkingBillBoard"):destroy()
  532. end
  533. local naeeym2 = Instance.new("BillboardGui",chara)
  534. naeeym2.Size = UDim2.new(0,100,0,40)
  535. naeeym2.StudsOffset = Vector3.new(0,3,0)
  536. naeeym2.Adornee = chara.Head
  537. naeeym2.Name = "BLABLABLA"
  538. local tecks2 = Instance.new("TextLabel",naeeym2)
  539. tecks2.BackgroundTransparency = 1
  540. tecks2.BorderSizePixel = 0
  541. tecks2.Text = ""
  542. tecks2.Font = "Antique"
  543. tecks2.FontSize = "Size24"
  544. tecks2.TextStrokeTransparency = 0
  545. tecks2.TextColor3 = Color3.new(0,0,0)
  546. tecks2.TextStrokeColor3 = Color3.new(1,0,0)
  547. tecks2.Size = UDim2.new(1,0,0.5,0)coroutine.wrap(function()
  548. while tecks2 ~= nil do
  549. swait()
  550. tecks2.Position = UDim2.new(0,math.random(-3,3),0,math.random(-3,3))
  551. end
  552. end)()
  553. for i = 1,string.len(text),1 do
  554. tecks2.Text = string.sub(text,1,i)
  555. swait()
  556. end
  557. swait(30)
  558. for i = 1, 5 do
  559. swait()
  560. tecks2.Position = tecks2.Position - UDim2.new(0,0,.05,0)
  561. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.2
  562. tecks2.TextTransparency = tecks2.TextTransparency + .2
  563. end
  564. naeeym2:Destroy()
  565. end)()
  566. end
  567.  
  568. function GetDudesTorso(c)
  569. local torsy = (c:findFirstChild("Torso") or c:findFirstChild("UpperTorso"))
  570. if torsy ~= nil then
  571. return torsy
  572. end
  573. end
  574.  
  575. function BodyVel(part,faws)
  576. local bodyvel = Instance.new("BodyVelocity",part)
  577. local pep = 10000000
  578. bodyvel.P = pep
  579. bodyvel.MaxForce = Vector3.new(pep,pep,pep)
  580. bodyvel.Velocity = faws
  581. debby:AddItem(bodyvel,.2)
  582. end
  583.  
  584. function Dmg(dude,dmg,env,faws,trip,efftyp,toim)
  585. if dude and dude ~= chara then
  586. if dude:FindFirstChild("HITO") then return end
  587. local debounce = Instance.new("BoolValue",dude)
  588. debounce.Name = "HITO"
  589. debby:AddItem(debounce,toim)
  590. local hum = dude:FindFirstChildOfClass("Humanoid")
  591. local dam = dmg+math.random(-env,env)
  592. local teksu = "-"..dam
  593. if hum then
  594. local finhel = hum.Health - dam
  595. if finhel <= 0 and dude:FindFirstChild("DEATHED")==nil then
  596. Instance.new("BoolValue",dude).Name = "DEATHED"
  597. local soaa = Instance.new("Sound",dude.Head)
  598. local cho = math.random(1,5)
  599. if cho == 1 then
  600. soaa.SoundId = "rbxassetid://111896685"
  601. elseif cho == 2 then
  602. soaa.SoundId = "rbxassetid://535528169"
  603. elseif cho == 3 then
  604. soaa.SoundId = "rbxassetid://1080363252"
  605. elseif cho == 4 then
  606. soaa.SoundId = "rbxassetid://147758746"
  607. elseif cho == 5 then
  608. soaa.SoundId = "rbxassetid://626777433"
  609. soaa.Volume = .2
  610. soaa.TimePosition = 1
  611. end
  612. game:service'Debris':AddItem(soaa,6)
  613. soaa:Play()
  614. end
  615. if hum.Health > 1000 then
  616. teksu = "DEATH"
  617. dude:BreakJoints()
  618. else
  619. hum.Health = hum.Health - dam
  620. end
  621. end
  622. coroutine.wrap(function()
  623. local naeeym2 = Instance.new("BillboardGui",dude)
  624. naeeym2.Size = UDim2.new(0,100,0,40)
  625. naeeym2.StudsOffset = Vector3.new(0,3,0)
  626. naeeym2.Adornee = dude:FindFirstChild("Head")
  627. naeeym2.Name = "TalkingBillBoard"
  628. local tecks2 = Instance.new("TextLabel",naeeym2)
  629. tecks2.BackgroundTransparency = 1
  630. tecks2.BorderSizePixel = 0
  631. tecks2.Text = teksu
  632. tecks2.Font = "Antique"
  633. tecks2.TextSize = 24
  634. tecks2.TextStrokeTransparency = 0
  635. tecks2.TextColor3 = Color3.new(0,0,0)
  636. tecks2.TextStrokeColor3 = Color3.new(1,0,0)
  637. tecks2.Size = UDim2.new(1,0,0.5,0)
  638. swait(10)
  639. for i = 0,1,.05 do
  640. swait()
  641. tecks2.Position = tecks2.Position - UDim2.new(0,0,.005,0)
  642. tecks2.TextStrokeTransparency = i
  643. tecks2.TextTransparency = i
  644. end
  645. naeeym2:Destroy()
  646. end)()
  647. local torsy = GetDudesTorso(dude)
  648. if torsy then
  649. for i=1,dam/5 do
  650. local blp = Instance.new("Part",EffectModel)
  651. blp.Size = Vector3.new(.3,.3,.3)
  652. blp.BrickColor = BrickColor.new("Crimson")
  653. blp.CFrame = torsy.CFrame*CFrame.Angles(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  654. blp.Velocity = torsy.CFrame.lookVector*math.random(-8,-8) + torsy.CFrame.rightVector*math.random(-8,8) + Vector3.new(0,math.random(0,5),0)
  655. blp.RotVelocity = Vector3.new(math.random(-15,15),math.random(-15,15),math.random(-15,15))
  656. --local blm = Instance.new("SpecialMesh",blp)
  657. --blm.MeshType = "Sphere"
  658. coroutine.wrap(function()
  659. swait(10)
  660. blp.Orientation = Vector3.new(0,blp.Orientation.y,0)
  661. for i=0,1,.1 do
  662. swait()
  663. blp.Transparency = i
  664. blp.Size = blp.Size + Vector3.new(.05,-.05,.05)
  665. end
  666. blp:Destroy()
  667. end)()
  668. end
  669. if efftyp == "Blunt" then
  670. puncheff(torsy)
  671. elseif efftyp == "Sharp" then
  672. slasheff(torsy)
  673. elseif efftyp == "Shot" then
  674. so(144884872,torsy,.9,1)
  675. end
  676. if faws ~= 0 then
  677. BodyVel(torsy,faws)
  678. end
  679. if trip == true then
  680. torsy.CFrame = torsy.CFrame * CFrame.Angles(math.rad(-90),0,0)
  681. torsy.RotVelocity = Vector3.new(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  682. end
  683. end
  684. end
  685. end
  686.  
  687. function MagnitudeDmg(par,magni,dmg,env,faws,trip,efftyp,toim)
  688. for _, c in pairs(workspace:GetDescendants()) do
  689. local hum = c:FindFirstChildOfClass("Humanoid")
  690. if hum ~= nil and c:FindFirstChild("IsTeamMateOfCK")==nil then
  691. local head = GetDudesTorso(c)
  692. if head ~= nil then
  693. local targ = head.Position - par.Position
  694. local mag = targ.magnitude
  695. if magni >= mag and c ~= chara then
  696. Dmg(c,dmg,env,faws,trip,efftyp,toim)
  697. end
  698. end
  699. end
  700. end
  701. end
  702.  
  703. function CamShake(par,magni,env,dur)
  704. coroutine.wrap(function()
  705. for i=0,dur*60 do
  706. swait()
  707. 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)
  708. end
  709. Humanoid.CameraOffset = Vector3.new(0,3,0)
  710. end)()
  711. end
  712.  
  713. function puncheff(par)
  714. if par.Parent:FindFirstChild("DebounceHit")==nil then
  715. so(386946017,par,math.random(6,8)/10,1)
  716. 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)
  717. CamShake(bla,10,.5,.5)
  718. end
  719. end
  720.  
  721. function slasheff(par)
  722. if par.Parent:FindFirstChild("DebounceHit")==nil then
  723. local cho = math.random(1,3)
  724. if cho == 1 then
  725. so(444667824,par,1,1)
  726. elseif cho == 2 then
  727. so(444667844,par,1,1)
  728. elseif cho == 3 then
  729. so(444667859,par,1,1)
  730. end
  731. --function(cf,partsize,meshstart,meshadd,matr,colour,factor)
  732. 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)
  733. end
  734. end
  735.  
  736. local mus = Instance.new("Sound",chara)
  737. mus.Name = "mus"
  738. mus.SoundId = "rbxassetid://142653441"--"rbxassetid://335204822"
  739. mus.Looped = true
  740. mus.Volume = .3
  741. mus:Play()
  742.  
  743. Humanoid.MaxHealth = 1000
  744. Humanoid.Health = 1000
  745.  
  746. ------------------Intro-----------------------
  747. intro = true
  748. if intro == true then
  749. coroutine.wrap(function()
  750. attack = true
  751. Humanoid.WalkSpeed = 0
  752. Humanoid.JumpPower = 0
  753. PlayAnimationFromTable({
  754. CFrame.new(0, 233.999924, -1.90734863e-06, 1, 0, 0, 0, -1, 0, 0, 0, -1),
  755. CFrame.new(0, 3.6000421, 1.07246542, 1, 0, 0, 0, 0.76604414, -0.642788053, 0, 0.642788053, 0.76604414),
  756. CFrame.new(3.6967864, -0.452571809, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736, 0, 0, 0, 1),
  757. CFrame.new(-3.60279894, -0.418379426, 0, 0.939692736, -0.342019886, 0, 0.342019916, 0.939692736, 0, 0, 0, 1),
  758. CFrame.new(1.50001526, -4, -1.3000021, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  759. CFrame.new(-1.50001526, -6, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  760. }, 1, false)
  761. swait(120)
  762. for i=0,1,.1 do
  763. swait()
  764. PlayAnimationFromTable({
  765. CFrame.new(0, -1.00005245, -1.90734863e-06, 1, 0, 0, 0, -1, 0, 0, 0, -1),
  766. CFrame.new(0, 3.60004878, 1.07246184, 1, 0, 0, 0, 0.76604414, -0.642788053, 0, 0.642788053, 0.76604414),
  767. CFrame.new(3.69677114, -0.452568352, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736, 0, 0, 0, 1),
  768. CFrame.new(-3.60280585, -0.418371797, 0, 0.939692736, -0.342019886, 0, 0.342019916, 0.939692736, 0, 0, 0, 1),
  769. CFrame.new(1.50001526, -3.99999714, -1.3000021, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  770. CFrame.new(-1.50001526, -6, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  771. }, .4, false)
  772. end
  773. so(133680244,Torso,1,3)
  774. CamShake(Torso,20,.8,.6)
  775. MagnitudeDmg(Torso,15,30,3,Vector3.new(0,20,0)+RootPart.CFrame.lookVector*60,true,"Blunt",.5)
  776. Effects.Wave(RootPart.CFrame*CFrame.new(0,-5,0),Vector3.new(),Vector3.new(2,1,2),"",10,false,.02)
  777. Effects.Wave(RootPart.CFrame*CFrame.new(0,-5,0),Vector3.new(),Vector3.new(1.5,2.5,1.5),"",-10,false,.02)
  778. local hit,hitpos = rayCast(RootPart.Position,Vector3.new(0,-1,0),15,chara)
  779. for i = 1,12 do
  780. local size = math.random(7,10)
  781. local p = Instance.new("Part",EffectModel)
  782. p.BrickColor = hit.BrickColor
  783. p.Material = hit.Material
  784. p.Size = Vector3.new(size,size,size)
  785. 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)))
  786. p.CanCollide = false
  787. p.Velocity = Vector3.new(math.random(-70,70),170,math.random(-70,70))
  788. p.RotVelocity = Vector3.new(math.random(-60,60),math.random(-60,60),math.random(-60,60))
  789. coroutine.wrap(function()
  790. swait(20)
  791. p.CanCollide = true
  792. swait(120)
  793. for i=0,1,.05 do
  794. swait()
  795. p.Transparency = i
  796. end
  797. p:Destroy()
  798. end)()
  799. end
  800. mus.Volume = 1
  801. mus:Play()
  802. RootPart.Anchored = true
  803. for i=0,6,.1 do
  804. swait()
  805. PlayAnimationFromTable({
  806. CFrame.new(0, -2.53941131, -0.348767281, 1, 0, 0, 0, 0.76604414, 0.642788053, 0, -0.642788053, 0.76604414),
  807. CFrame.new(0, 4.57664824, -0.666416466, 1, 0, 0, 0, 0.939692438, 0.34202075, 0, -0.34202075, 0.939692438),
  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(-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),
  810. CFrame.new(1.50001526, -3.52529287, -3.56594658, 1, 0, 0, 0, 0.76604414, -0.642788053, 0, 0.642788053, 0.76604414),
  811. CFrame.new(-1.50001526, -5.99999619, 6.67572112e-06, 1, 0, 0, 0, 1.00000012, 0, 0, 0, 1.00000012),
  812. }, .4, false)
  813. end
  814. RootPart.Anchored = false
  815. for i=0,2,.1 do
  816. swait()
  817. PlayAnimationFromTable({
  818. CFrame.new(0, -1.99700248, -0.27749458, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),
  819. CFrame.new(0, 4.55108547, -0.444281816, 1, 0, 0, 0, 0.939692676, 0.342020601, 0, -0.342020601, 0.939692676),
  820. 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),
  821. 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),
  822. 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),
  823. 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),
  824. }, .15, false)
  825. end
  826. 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,})
  827. 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,})
  828. 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),})
  829. for i=0,4,.1 do
  830. swait()
  831. PlayAnimationFromTable({
  832. CFrame.new(0, -2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  833. CFrame.new(0, 4.49995232, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  834. 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),
  835. CFrame.new(-4.89282131, 0.675060272, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736, 0, 0, 0, 1),
  836. CFrame.new(1.50001168, -6, -1.01327896e-06, 0.939692736, 0, -0.342019886, 0, 1, 0, 0.342019916, 0, 0.939692736),
  837. CFrame.new(-1.50001526, -6, 2.98023224e-07, 0.939692736, 0, 0.342019886, 0, 1, 0, -0.342019916, 0, 0.939692736),
  838. }, .15, false)
  839. end
  840. Fays.Texture = "rbxassetid://58425273"
  841. FShedo:Destroy()
  842. Shedo.Transparency = 0
  843. Humanoid.WalkSpeed = 8
  844. Humanoid.JumpPower = 70
  845. attack = false
  846. end)()
  847. end
  848. --------------------------------------------------
  849.  
  850. function smek()
  851. attack = true
  852. Humanoid.WalkSpeed = 2
  853. Humanoid.JumpPower = 0
  854. for i=0,1,.1 do
  855. swait()
  856. PlayAnimationFromTable({
  857. CFrame.new(0, -1.73551273, -0.521830797, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736),
  858. CFrame.new(0, 4.41427088, -0.820159078, 1, 0, 0, 0, 0.939692438, 0.342020929, 0, -0.342020959, 0.939692438),
  859. 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),
  860. 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),
  861. CFrame.new(1.50001335, -5.50980282, 1.44903219, 1, 0, 0, 0, 0.866024911, 0.500000954, 0, -0.500000954, 0.866024852),
  862. CFrame.new(-1.50001526, -6.18578386, -0.968178153, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736),
  863. }, .2, false)
  864. end
  865. so(536642316,RightLeg,.7,3)
  866. for i=0,1,.1 do
  867. swait()
  868. PlayAnimationFromTable({
  869. 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),
  870. CFrame.new(-7.62939453e-06, 4.41428709, -0.820158899, 1, 0, 0, 0, 0.939692736, 0.342019916, 0, -0.342019886, 0.939692736),
  871. 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),
  872. 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),
  873. CFrame.new(1.50002289, -5.89457655, -2.13732576, 1, 0, 0, 0, 0.766043544, -0.642788708, 0, 0.642788708, 0.766043544),
  874. 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),
  875. }, .4, false)
  876. MagnitudeDmg(RightLeg,4,60,3,RootPart.CFrame.lookVector*50,true,"Blunt",.5)
  877. end
  878. swait(20)
  879. Humanoid.WalkSpeed = 8
  880. Humanoid.JumpPower = 70
  881. attack = false
  882. end
  883.  
  884. xhold = false
  885. function thesurou()
  886. attack = true
  887. Humanoid.WalkSpeed = 2
  888. local grab = nil
  889. local torsy = nil
  890. local hum = nil
  891. for i, v in pairs(FindNearestTorso((RootPart.Position-Vector3.new(0,5,0)), 6)) do
  892. if v:FindFirstChild('Head') and v:FindFirstChildOfClass("Humanoid") and v:FindFirstChildOfClass("Humanoid").Health > 1 then
  893. hum = v:FindFirstChildOfClass("Humanoid")
  894. torsy = v:FindFirstChild("UpperTorso") or v:FindFirstChild("Torso")
  895. grab = v
  896. end
  897. end
  898. if grab ~= nil and torsy ~= nil then
  899. so(200632136,RootPart,.8,1)
  900. for i = 0,1.5,.1 do
  901. swait()
  902. PlayAnimationFromTable({
  903. CFrame.new(0, -3.15879345, -2.53031492, 1, 0, 0, 0, 0.500002086, 0.866031468, 0, -0.866031468, 0.500002086),
  904. CFrame.new(0, 4.57667542, -0.666417062, 1, 0, 0, 0, 0.939692676, 0.342020601, 0, -0.342020601, 0.939692676),
  905. 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),
  906. 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),
  907. CFrame.new(1.50001526, -3.79331636, -2.24549532, 1, 0, 0, 0, 0.500002086, -0.866031468, 0, 0.866031468, 0.500002086),
  908. CFrame.new(-1.50001526, -6.19285679, -1.2660259, 1, 0, 0, 0, 0.866025031, -0.500000834, 0, 0.500000834, 0.866025031),
  909. }, .3, false)
  910. end
  911. so(240429615,torsy,1,1)
  912. local ref = Instance.new("Part",Camera)
  913. ref.Size = Vector3.new(0,0,0)
  914. ref.Anchored = true
  915. ref.CanCollide = false
  916. ref.Transparency = .5
  917. ref.BrickColor = BrickColor.Red()
  918. ref.Material = "Neon"
  919. local refm = Instance.new("SpecialMesh",ref)
  920. refm.MeshType = "Sphere"
  921. refm.Scale = Vector3.new(20,20,20)
  922. repeat
  923. swait()
  924. ref.CFrame = Mouse.Hit
  925. PlayAnimationFromTable({
  926. CFrame.new(0, -2, 0, 0.64278698, 0, -0.766044974, 0, 1, 0, 0.766044974, 0, 0.64278698),
  927. 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),
  928. 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),
  929. 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),
  930. CFrame.new(1.50001907, -6.00000048, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  931. CFrame.new(-1.50001311, -6.00000048, 4.58955765e-06, 0.64278698, 0, 0.766044974, 0, 1, 0, -0.766044974, 0, 0.64278698),
  932. }, .3, false)
  933. torsy.CFrame = RightArm.CFrame*CFrame.new(0,-3.5,0)*CFrame.Angles(math.rad(-90),0,0)
  934. hum.PlatformStand = true
  935. torsy.Velocity = Vector3.new()
  936. --end
  937. until xhold == false
  938. ref:Destroy()
  939. so(200632136,RootPart,.9,1)
  940. local pato = Instance.new("Part",torsy)
  941. pato.CFrame = torsy.CFrame
  942. pato.Size = Vector3.new(4.1,6.1,1.1)
  943. pato.Transparency = 1
  944. pato.CanCollide = false
  945. pato.CustomPhysicalProperties = PhysicalProperties.new(0,0,0,0,0)
  946. local werudo = Instance.new("Weld",pato)
  947. werudo.Part0 = pato
  948. werudo.Part1 = torsy
  949. torsy.Velocity = (ref.Position-torsy.Position).unit*200+Vector3.new(0,30,0)
  950. torsy.RotVelocity = Vector3.new(10,10,10)
  951. coroutine.wrap(function()
  952. while true do
  953. swait()
  954. hum.PlatformStand = true
  955. end
  956. end)
  957. pato.Touched:connect(function(hit)
  958. if hit:IsDescendantOf(chara)==false then
  959. pato:Destroy()
  960. Dmg(grab,150,0,Vector3.new(0,20,0)+RootPart.CFrame.lookVector*50,true,"Blunt",.3)
  961. so(260430079,torsy,1,5)
  962. MagnitudeDmg(torsy,6,50,3,Vector3.new(0,5,0)+RootPart.CFrame.lookVector*20,true,"Blunt",.2)
  963. end
  964. end)
  965. for i = 0,1,.1 do
  966. swait()
  967. PlayAnimationFromTable({
  968. CFrame.new(0, -2, 0, 0.499998987, 0, 0.866025984, 0, 1, 0, -0.866025984, 0, 0.499998987),
  969. 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),
  970. 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),
  971. 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),
  972. CFrame.new(1.50002027, -6, -1.07288361e-06, 0.499998987, 0, -0.866025984, 0, 1, 0, 0.866025984, 0, 0.499998987),
  973. CFrame.new(-1.50001907, -6, -3.81469727e-06, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  974. }, .3, false)
  975. end
  976. end
  977. attack = false
  978. Humanoid.WalkSpeed = 8
  979. end
  980.  
  981. function slam()
  982. attack = true
  983. Humanoid.WalkSpeed = 2
  984. Humanoid.JumpPower = 0
  985. for i=0,2,.1 do
  986. swait()
  987. PlayAnimationFromTable({
  988. CFrame.new(0, -1.93353117, 0.461958885, 1, 0, 0, 0, 0.939692736, -0.342019886, 0, 0.342019916, 0.939692736),
  989. CFrame.new(0, 4.36522532, -0.370157003, 1, 0, 0, 0, 0.866025686, 0.499999642, 0, -0.499999642, 0.866025686),
  990. 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),
  991. 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),
  992. CFrame.new(1.50001526, -5.97923088, 0.956724763, 1, 0, 0, 0, 0.939692736, 0.342019916, 0, -0.342019886, 0.939692736),
  993. CFrame.new(-1.50001526, -3.92088175, -1.2822783, 1, 0, 0, 0, 0.939692736, 0.342019916, 0, -0.342019886, 0.939692736),
  994. }, .2, false)
  995. end
  996. so(536642316,RightLeg,.7,3)
  997. Humanoid.WalkSpeed = 0
  998. for i=0,1,.2 do
  999. swait()
  1000. PlayAnimationFromTable({
  1001. CFrame.new(0, -5.00873852, -6.03775024, 1, 0, 0, 0, 0.342019022, 0.939693093, 0, -0.939693093, 0.342018992),
  1002. CFrame.new(0, 4.36520767, -0.370157599, 1, 0, 0, 0, 0.866026223, 0.499998808, 0, -0.499998808, 0.866026223),
  1003. 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),
  1004. 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),
  1005. CFrame.new(1.50001526, -5.95997667, -0.00628298474, 1, 0, 0, 0, 1.00000012, 2.98023224e-08, 0, 2.98023224e-08, 1.00000012),
  1006. CFrame.new(-1.50001621, -2.56001854, -1.60915279, 1, 0, 0, 0, 0.984807789, -0.173648238, 0, 0.173648268, 0.98480773),
  1007. }, .4, false)
  1008. end
  1009. so(133680244,Torso,1,3)
  1010. CamShake(RightArm,10,.5,.5)
  1011. MagnitudeDmg(RightArm,10,40,3,RootPart.CFrame.lookVector*30,true,"Blunt",.5)
  1012. MagnitudeDmg(LeftArm,10,40,3,RootPart.CFrame.lookVector*30,true,"Blunt",.5)
  1013. Effects.Wave(RootPart.CFrame*CFrame.new(0,-5,-10),Vector3.new(),Vector3.new(1,1,1),"",10,false,.05)
  1014. Effects.Wave(RootPart.CFrame*CFrame.new(0,-5,-10),Vector3.new(),Vector3.new(.5,2,.5),"",-10,false,.05)
  1015. swait(50)
  1016. Humanoid.WalkSpeed = 8
  1017. Humanoid.JumpPower = 70
  1018. attack = false
  1019. end
  1020.  
  1021. chold = false
  1022. function headrip()
  1023. attack = true
  1024. Humanoid.WalkSpeed = 2
  1025. local grab = nil
  1026. local torsy = nil
  1027. local hum = nil
  1028. for i, v in pairs(FindNearestTorso((RootPart.Position-Vector3.new(0,5,0)), 6)) do
  1029. if v:FindFirstChild('Head') and v:FindFirstChildOfClass("Humanoid") and v:FindFirstChildOfClass("Humanoid").Health > 1 then
  1030. hum = v:FindFirstChildOfClass("Humanoid")
  1031. torsy = v:FindFirstChild("UpperTorso") or v:FindFirstChild("Torso")
  1032. grab = v
  1033. end
  1034. end
  1035. if grab ~= nil and torsy ~= nil then
  1036. so(200632136,RootPart,.8,1)
  1037. for i = 0,1.5,.1 do
  1038. swait()
  1039. PlayAnimationFromTable({
  1040. CFrame.new(0, -3.15884066, -2.53038549, 1, 0, 0, 0, 0.500003159, 0.866033316, 0, -0.866033316, 0.500003159),
  1041. CFrame.new(0, 4.57682848, -0.666438639, 1, 0, 0, 0, 0.939708173, 0.342026293, 0, -0.342026293, 0.939708173),
  1042. 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),
  1043. 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),
  1044. CFrame.new(1.50001526, -3.79332972, -2.24550533, 1, 0, 0, 0, 0.500003159, -0.866033316, 0, 0.866033316, 0.500003159),
  1045. CFrame.new(-1.50001526, -6.19305992, -1.26607037, 1, 0, 0, 0, 0.866039395, -0.500009179, 0, 0.500009179, 0.866039395),
  1046. }, .3, false)
  1047. end
  1048. so(240429615,torsy,1,1)
  1049. for i = 0,1.5,.1 do
  1050. swait()
  1051. PlayAnimationFromTable({
  1052. CFrame.new(0, -2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  1053. CFrame.new(0, 4.48268127, -0.632217944, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736),
  1054. 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),
  1055. 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),
  1056. CFrame.new(1.50001526, -6, 2.98023224e-07, 0.939692736, 0, -0.342019886, 0, 1, 0, 0.342019916, 0, 0.939692736),
  1057. CFrame.new(-1.50001431, -6, 3.12924385e-06, 0.984807849, 0, 0.173647985, 0, 1, 0, -0.173647985, 0, 0.984807849),
  1058. }, .3, false)
  1059. torsy.CFrame = LeftArm.CFrame*CFrame.new(0,-3.5,0)*CFrame.Angles(math.rad(-90),0,0)
  1060. hum.PlatformStand = true
  1061. torsy.Velocity = Vector3.new()
  1062. end
  1063. local armmod = Instance.new("Model",chara)
  1064. armmod.Name = grab.Name
  1065. Instance.new("Humanoid",armmod).Health = 0
  1066. for i, v in pairs(grab:GetChildren()) do
  1067. if v:IsA("Accoutrement") then
  1068. v.Parent = armmod
  1069. if v:FindFirstChild("Handle"):FindFirstChild("AccessoryWeld") then
  1070. v.Handle.AccessoryWeld.Part1 = nil
  1071. end
  1072. end
  1073. end
  1074. local armp = grab:FindFirstChild("Head")
  1075. Instance.new("BoolValue",grab).Name = "DEATHED"
  1076. grab:BreakJoints()
  1077. armp.Parent = armmod
  1078. for i, v in pairs(armmod:GetChildren()) do
  1079. if v:IsA("Accoutrement") then
  1080. if v:FindFirstChild("Handle"):FindFirstChild("AccessoryWeld") then
  1081. v.Handle.AccessoryWeld.Part1 = armp
  1082. v.Parent = armmod
  1083. end
  1084. end
  1085. end
  1086. so(206082327,armp,1,5)
  1087. local bledp = Instance.new("Part",grab)
  1088. bledp.Size = Vector3.new(0,0,0)
  1089. bledp.Transparency = 1
  1090. bledp.CanCollide = false
  1091. local blpemit = Instance.new("ParticleEmitter")
  1092. blpemit.Color = ColorSequence.new(Color3.new(.5,0,0))
  1093. blpemit.Texture = "rbxassetid://233069772"
  1094. blpemit.Transparency = NumberSequence.new(0,1)
  1095. blpemit.Lifetime = NumberRange.new(1,3)
  1096. blpemit.Acceleration = Vector3.new(0,-10,0)
  1097. blpemit.Enabled = true
  1098. blpemit.EmissionDirection = "Front"
  1099. blpemit.Speed = NumberRange.new(1,3)
  1100. blpemit.Size = NumberSequence.new(.5)
  1101. blpemit.Rate = 1000
  1102. blpemit.RotSpeed = NumberRange.new(50)
  1103. blpemit.Rotation = NumberRange.new(0,360)
  1104. local blpe = blpemit:Clone()
  1105. blpe.Parent = bledp
  1106. blpe.EmissionDirection = "Top"
  1107. blpe.VelocitySpread = 20
  1108. local wel = Instance.new("Weld",armp)
  1109. wel.Part0 = RightArm
  1110. wel.Part1 = armp
  1111. wel.C0 = CFrame.new(0,-3.5,0) * CFrame.Angles(math.rad(-90),0,0)
  1112. local blape = bledp:Clone()
  1113. blape.Parent = armmod
  1114. blape.ParticleEmitter.EmissionDirection = "Bottom"
  1115. local bledw = Instance.new("Weld",bledp)
  1116. bledw.Part0 = torsy
  1117. bledw.Part1 = bledp
  1118. bledw.C0 = CFrame.new(0,1,0)
  1119. local bledw2 = Instance.new("Weld",blape)
  1120. bledw2.Part0 = armp
  1121. bledw2.Part1 = blape
  1122. bledw2.C0 = CFrame.new(0,-.5,0)
  1123. for i = 0,2,.1 do
  1124. swait()
  1125. PlayAnimationFromTable({
  1126. 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),
  1127. 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),
  1128. 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),
  1129. 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),
  1130. 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),
  1131. 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),
  1132. }, .3, false)
  1133. torsy.CFrame = LeftArm.CFrame*CFrame.new(0,-3.5,0)*CFrame.Angles(math.rad(-90),0,0)
  1134. hum.PlatformStand = true
  1135. torsy.Velocity = Vector3.new()
  1136. end
  1137. local ref = Instance.new("Part",Camera)
  1138. ref.Size = Vector3.new(0,0,0)
  1139. ref.Anchored = true
  1140. ref.CanCollide = false
  1141. ref.Transparency = .5
  1142. ref.BrickColor = BrickColor.Red()
  1143. ref.Material = "Neon"
  1144. local refm = Instance.new("SpecialMesh",ref)
  1145. refm.MeshType = "Sphere"
  1146. refm.Scale = Vector3.new(20,20,20)
  1147. repeat
  1148. swait()
  1149. ref.CFrame = Mouse.Hit
  1150. PlayAnimationFromTable({
  1151. CFrame.new(0, -2, 0, 0.64278698, 0, -0.766044974, 0, 1, 0, 0.766044974, 0, 0.64278698),
  1152. 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),
  1153. 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),
  1154. 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),
  1155. CFrame.new(1.50001907, -6.00000048, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  1156. CFrame.new(-1.50001311, -6.00000048, 4.58955765e-06, 0.64278698, 0, 0.766044974, 0, 1, 0, -0.766044974, 0, 0.64278698),
  1157. }, .3, false)
  1158. torsy.CFrame = LeftArm.CFrame*CFrame.new(0,-3.5,0)*CFrame.Angles(math.rad(-90),0,0)
  1159. hum.PlatformStand = true
  1160. torsy.Velocity = Vector3.new()
  1161. --end
  1162. until chold == false
  1163. ref:Destroy()
  1164. so(200632136,RootPart,.9,1)
  1165. wel:Destroy()
  1166. armp.Velocity = (ref.Position-armp.Position).unit*200+Vector3.new(0,30,0)
  1167. armp.RotVelocity = Vector3.new(10,10,10)
  1168. armp.Touched:connect(function(hit)
  1169. if hit:IsDescendantOf(chara)==false and hit.Parent:FindFirstChildOfClass("Humanoid") and armp:FindFirstChild("HITA")==nil then
  1170. Instance.new("BoolValue",armp).Name = "HITA"
  1171. MagnitudeDmg(armp,6,120,0,Vector3.new(0,5,0)+RootPart.CFrame.lookVector*20,true,"Blunt",.2)
  1172. so(386946017,armp,.95,5)
  1173. swait(120)
  1174. for i=0,1,.05 do
  1175. armp.Transparency = i
  1176. swait()
  1177. end
  1178. armp.Parent:Destroy()
  1179. end
  1180. end)
  1181. for i = 0,1,.1 do
  1182. swait()
  1183. PlayAnimationFromTable({
  1184. CFrame.new(0, -2, 0, 0.499998987, 0, 0.866025984, 0, 1, 0, -0.866025984, 0, 0.499998987),
  1185. 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),
  1186. 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),
  1187. 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),
  1188. CFrame.new(1.50002027, -6, -1.07288361e-06, 0.499998987, 0, -0.866025984, 0, 1, 0, 0.866025984, 0, 0.499998987),
  1189. CFrame.new(-1.50001907, -6, -3.81469727e-06, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  1190. }, .3, false)
  1191. torsy.CFrame = LeftArm.CFrame*CFrame.new(0,-3.5,0)*CFrame.Angles(math.rad(-90),0,0)
  1192. hum.PlatformStand = true
  1193. torsy.Velocity = Vector3.new()
  1194. end
  1195. end
  1196. attack = false
  1197. Humanoid.WalkSpeed = 8
  1198. end
  1199.  
  1200. function stomp()
  1201. attack = true
  1202. Humanoid.WalkSpeed = 2
  1203. Humanoid.JumpPower = 0
  1204. for i=0,2,.1 do
  1205. swait()
  1206. PlayAnimationFromTable({
  1207. CFrame.new(0, -2, 0.499992371, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  1208. CFrame.new(0, 4.42290688, -0.504058063, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736),
  1209. CFrame.new(4.92942858, 1.05621195, 0, 0.866025388, -0.500000238, 0, 0.500000238, 0.866025388, 0, 0, 0, 1),
  1210. CFrame.new(-4.79283428, 1.09282625, 0, 0.866025388, 0.500000238, 0, -0.500000238, 0.866025388, 0, 0, 0, 1),
  1211. CFrame.new(1.2052269, -2.30000162, -2.06380463, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  1212. CFrame.new(-1.50001597, -6, -0.499997646, 0.984807849, 0, 0.173647985, 0, 1, 0, -0.173647985, 0, 0.984807849),
  1213. }, .2, false)
  1214. end
  1215. so(536642316,RightLeg,.7,3)
  1216. Humanoid.WalkSpeed = 0
  1217. for i=0,1,.2 do
  1218. swait()
  1219. PlayAnimationFromTable({
  1220. CFrame.new(0, -1.82004941, -0.371783257, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736),
  1221. CFrame.new(0, 4.42290878, -0.504067779, 1, 0, 0, 0, 0.939692438, 0.342020929, 0, -0.342020959, 0.939692438),
  1222. 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),
  1223. 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),
  1224. CFrame.new(1.2052269, -5.38336658, -2.92564583, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736),
  1225. 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),
  1226. }, .4, false)
  1227. end
  1228. so(133680244,Torso,1,3)
  1229. CamShake(Torso,10,.5,.5)
  1230. Effects.Wave(RootPart.CFrame*CFrame.new(1,-7,-2),Vector3.new(),Vector3.new(1,.2,1),"",10,false,.05)
  1231. for _, c in pairs(workspace:GetDescendants()) do
  1232. local hum = c:FindFirstChildOfClass("Humanoid")
  1233. if hum ~= nil and c:FindFirstChild("IsTeamMateOfCK")==nil then
  1234. local head = GetDudesTorso(c)
  1235. if head ~= nil then
  1236. local targ = head.Position - RightLeg.Position
  1237. local mag = targ.magnitude
  1238. if 4 >= mag and c ~= chara then
  1239. so(206082327,head,1,3)
  1240. for ay,ee in pairs(c:children()) do
  1241. if ee:IsA("BasePart") then
  1242. for i=1,5 do
  1243. local bl = Instance.new("Part",c)
  1244. bl.CFrame = ee.CFrame + Vector3.new(math.random(-10,10)/10,0,math.random(-10,10)/10)
  1245. local rand = math.random(2,7)/10
  1246. bl.Size = Vector3.new(rand,rand,rand)
  1247. bl.BrickColor = BrickColor.new("Maroon")
  1248. bl.Material = "Granite"
  1249. ee:Destroy()
  1250. end
  1251. end
  1252. end
  1253. end
  1254. end
  1255. end
  1256. end
  1257. swait(50)
  1258. Humanoid.WalkSpeed = 8
  1259. Humanoid.JumpPower = 70
  1260. attack = false
  1261. end
  1262.  
  1263. function pshoot()
  1264. attack = true
  1265. local ref = Instance.new("Part",Camera)
  1266. ref.Size = Vector3.new(0,0,0)
  1267. ref.Anchored = true
  1268. ref.CanCollide = false
  1269. ref.Transparency = 1
  1270. so(2920959,PHandaru,.8,3)
  1271. ref.CFrame = Mouse.Hit
  1272. MagnitudeDmg(ref,3,40,2,RootPart.CFrame.lookVector*20,true,"Shot",.1)
  1273. local hitpt = Instance.new("Part",EffectModel)
  1274. hitpt.Size = Vector3.new(.3,.3,1)
  1275. hitpt.CFrame = PBExit.CFrame * CFrame.Angles(math.rad(180),0,0)
  1276. hitpt.Velocity = RootPart.CFrame.rightVector*30+Vector3.new(0,20,0)
  1277. local hitm = Instance.new("SpecialMesh",hitpt)
  1278. hitm.MeshId = "rbxassetid://94295100"
  1279. hitm.TextureId = "rbxassetid://94287792"
  1280. hitm.Scale = Vector3.new(7,7,7)
  1281. coroutine.wrap(function()
  1282. swait(30)
  1283. for i = 0,1,.1 do
  1284. swait()
  1285. hitpt.Transparency = i
  1286. end
  1287. hitpt:Destroy()
  1288. end)()
  1289. CamShake(PShot,10,.3,.2)
  1290. CamShake(ref,10,.3,.2)
  1291. 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)
  1292. 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)
  1293. 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)
  1294. ref:Destroy()
  1295. for i=0,1,.1 do
  1296. swait()
  1297. PlayAnimationFromTable({
  1298. CFrame.new(0, -2.03907418, 0.246627718, 1, 0, 0, 0, 0.984807849, -0.173647985, 0, 0.173647985, 0.984807849),
  1299. CFrame.new(0, 4.27438593, -0.749499321, 1, 0, 0, 0, 0.866025686, 0.499999642, 0, -0.499999642, 0.866025686),
  1300. CFrame.new(4.50001526, 2.12096167, -0.0117100477, 1, 0, 0, 0, -0.500000715, -0.86602509, 0, 0.86602509, -0.500000715),
  1301. 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),
  1302. CFrame.new(1.50001526, -5.94357777, 0.444926023, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),
  1303. CFrame.new(-1.50001526, -5.94357777, 0.444926023, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),
  1304. }, .3, false)
  1305. end
  1306. for i=0,2,.1 do
  1307. swait()
  1308. PlayAnimationFromTable({
  1309. CFrame.new(0, -2.03907442, 0.0466268957, 1, 0, 0, 0, 0.984807849, -0.173647985, 0, 0.173647985, 0.984807849),
  1310. CFrame.new(0, 4.27438593, -0.749499321, 1, 0, 0, 0, 0.866025686, 0.499999642, 0, -0.499999642, 0.866025686),
  1311. CFrame.new(4.50001526, 0.888218164, -1.46819997, 1, 0, 0, 0, 0.342019796, -0.939692855, 0, 0.939692855, 0.342019796),
  1312. 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),
  1313. CFrame.new(1.50001526, -5.94357777, 0.444926023, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),
  1314. CFrame.new(-1.50001526, -5.94357777, 0.444926023, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),
  1315. }, .15, false)
  1316. end
  1317. attack = false
  1318. end
  1319.  
  1320. function sshoot()
  1321. attack = true
  1322. so(138083993,SHandaru,.8,3)
  1323. CamShake(SHandaru,10,.5,.3)
  1324. 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)
  1325. for a=1,6 do
  1326. local ref = Instance.new("Part",Camera)
  1327. ref.Size = Vector3.new(0,0,0)
  1328. ref.Anchored = true
  1329. ref.CanCollide = false
  1330. ref.Transparency = 1
  1331. ref.CFrame = Mouse.Hit*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  1332. MagnitudeDmg(ref,7,50,2,RootPart.CFrame.lookVector*20,true,"Shot",0)
  1333. CamShake(ref,10,.4,.3)
  1334. 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)
  1335. 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)
  1336. ref:Destroy()
  1337. end
  1338. for i=0,2,.1 do
  1339. swait()
  1340. PlayAnimationFromTable({
  1341. 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),
  1342. 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),
  1343. 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),
  1344. 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),
  1345. 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),
  1346. 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),
  1347. }, .3, false)
  1348. end
  1349. so(2697295,SHandaru,.4,3)
  1350. for i=0,1,.1 do
  1351. swait()
  1352. PlayAnimationFromTable({
  1353. 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),
  1354. 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),
  1355. 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),
  1356. 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),
  1357. 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),
  1358. 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),
  1359. }, .2, false)
  1360. end
  1361. local hitpt = Instance.new("Part",EffectModel)
  1362. hitpt.Size = Vector3.new(.7,.6,2.1)
  1363. hitpt.CFrame = SSExit.CFrame * CFrame.Angles(0,math.rad(90),0)
  1364. hitpt.Velocity = RootPart.CFrame.rightVector*30+Vector3.new(0,20,0)
  1365. hitpt.BrickColor = BrickColor.Red()
  1366. local hitm = Instance.new("SpecialMesh",hitpt)
  1367. hitm.MeshId = "rbxassetid://94248124"
  1368. hitm.Scale = Vector3.new(4,4,4)
  1369. coroutine.wrap(function()
  1370. swait(30)
  1371. for i = 0,1,.1 do
  1372. swait()
  1373. hitpt.Transparency = i
  1374. end
  1375. hitpt:Destroy()
  1376. end)()
  1377. swait(15)
  1378. so(2697295,SHandaru,.5,3)
  1379. for i=0,2,.1 do
  1380. swait()
  1381. PlayAnimationFromTable({
  1382. 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),
  1383. 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),
  1384. 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),
  1385. 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),
  1386. 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),
  1387. 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),
  1388. }, .15, false)
  1389. end
  1390. attack = false
  1391. end
  1392.  
  1393. slugged = false
  1394. function slugload()
  1395. attack = true
  1396. for i=0,1.5,.1 do
  1397. swait()
  1398. PlayAnimationFromTable({
  1399. 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),
  1400. 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),
  1401. 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),
  1402. 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),
  1403. 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),
  1404. 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),
  1405. }, .15, false)
  1406. end
  1407. local hitpt0 = Instance.new("Part",EffectModel)
  1408. hitpt0.Size = Vector3.new(.7,.6,2.1)
  1409. hitpt0.CFrame = SSExit.CFrame * CFrame.Angles(0,math.rad(90),0)
  1410. hitpt0.Velocity = RootPart.CFrame.rightVector*30+Vector3.new(0,20,0)
  1411. local hitm0 = Instance.new("SpecialMesh",hitpt0)
  1412. hitm0.MeshId = "rbxassetid://94248124"
  1413. hitm0.TextureId = "rbxassetid://94219470"
  1414. hitm0.Scale = Vector3.new(4,4,4)
  1415. local hw = Instance.new("Weld",hitpt0)
  1416. hw.Part0 = hitpt0
  1417. hw.Part1 = LeftArm
  1418. hw.C0 = CFrame.new(-1,2.5,0)
  1419. for i=0,1,.1 do
  1420. swait()
  1421. PlayAnimationFromTable({
  1422. 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),
  1423. 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),
  1424. 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),
  1425. 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),
  1426. 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),
  1427. 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),
  1428. }, .2, false)
  1429. end
  1430. hitpt0:Destroy()
  1431. so(2697295,SHandaru,.7,3)
  1432. swait(15)
  1433. for i=0,1,.1 do
  1434. swait()
  1435. PlayAnimationFromTable({
  1436. 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),
  1437. 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),
  1438. 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),
  1439. 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),
  1440. 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),
  1441. 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),
  1442. }, .2, false)
  1443. end
  1444. for i=0,1.5,.1 do
  1445. swait()
  1446. PlayAnimationFromTable({
  1447. 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),
  1448. 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),
  1449. 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),
  1450. 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),
  1451. 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),
  1452. 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),
  1453. }, .15, false)
  1454. end
  1455. local hitpt = Instance.new("Part",EffectModel)
  1456. hitpt.Size = Vector3.new(.7,.6,2.1)
  1457. hitpt.CFrame = SSExit.CFrame * CFrame.Angles(0,math.rad(90),0)
  1458. hitpt.Velocity = RootPart.CFrame.rightVector*30+Vector3.new(0,20,0)
  1459. hitpt.BrickColor = BrickColor.Red()
  1460. local hitm = Instance.new("SpecialMesh",hitpt)
  1461. hitm.MeshId = "rbxassetid://94248124"
  1462. hitm.Scale = Vector3.new(4,4,4)
  1463. coroutine.wrap(function()
  1464. swait(30)
  1465. for i = 0,1,.1 do
  1466. swait()
  1467. hitpt.Transparency = i
  1468. end
  1469. hitpt:Destroy()
  1470. end)()
  1471. swait(15)
  1472. so(2697295,SHandaru,.5,3)
  1473. for i=0,2,.1 do
  1474. swait()
  1475. PlayAnimationFromTable({
  1476. 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),
  1477. 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),
  1478. 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),
  1479. 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),
  1480. 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),
  1481. 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),
  1482. }, .15, false)
  1483. end
  1484. slugged = true
  1485. attack = false
  1486. end
  1487.  
  1488. function slugshoot()
  1489. attack = true
  1490. so(138083993,SHandaru,.8,3)
  1491. CamShake(SHandaru,10,.5,.3)
  1492. 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)
  1493. local ref = Instance.new("Part",Camera)
  1494. ref.Size = Vector3.new(0,0,0)
  1495. ref.Anchored = true
  1496. ref.CanCollide = false
  1497. ref.Transparency = 1
  1498. ref.CFrame = Mouse.Hit
  1499. MagnitudeDmg(ref,3,120,0,RootPart.CFrame.lookVector*70,true,"Shot",0)
  1500. CamShake(ref,10,.4,.3)
  1501. 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)
  1502. 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)
  1503. ref:Destroy()
  1504. for i=0,2,.1 do
  1505. swait()
  1506. PlayAnimationFromTable({
  1507. 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),
  1508. 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),
  1509. 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),
  1510. 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),
  1511. 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),
  1512. 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),
  1513. }, .3, false)
  1514. end
  1515. so(2697295,SHandaru,.4,3)
  1516. for i=0,1,.1 do
  1517. swait()
  1518. PlayAnimationFromTable({
  1519. 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),
  1520. 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),
  1521. 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),
  1522. 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),
  1523. 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),
  1524. 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),
  1525. }, .2, false)
  1526. end
  1527. local hitpt = Instance.new("Part",EffectModel)
  1528. hitpt.Size = Vector3.new(.7,.6,2.1)
  1529. hitpt.CFrame = SSExit.CFrame * CFrame.Angles(0,math.rad(90),0)
  1530. hitpt.Velocity = RootPart.CFrame.rightVector*30+Vector3.new(0,20,0)
  1531. local hitm = Instance.new("SpecialMesh",hitpt)
  1532. hitm.MeshId = "rbxassetid://94248124"
  1533. hitm.TextureId = "rbxassetid://94219470"
  1534. hitm.Scale = Vector3.new(4,4,4)
  1535. coroutine.wrap(function()
  1536. swait(30)
  1537. for i = 0,1,.1 do
  1538. swait()
  1539. hitpt.Transparency = i
  1540. end
  1541. hitpt:Destroy()
  1542. end)()
  1543. swait(15)
  1544. so(2697295,SHandaru,.5,3)
  1545. for i=0,2,.1 do
  1546. swait()
  1547. PlayAnimationFromTable({
  1548. 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),
  1549. 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),
  1550. 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),
  1551. 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),
  1552. 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),
  1553. 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),
  1554. }, .15, false)
  1555. end
  1556. slugged = false
  1557. attack = false
  1558. end
  1559.  
  1560. function equippist()
  1561. attack = true
  1562. Humanoid.WalkSpeed = 2
  1563. Humanoid.JumpPower = 0
  1564. if CurrentWep == "Shotgun" then
  1565. for i=0,2,.1 do
  1566. swait()
  1567. PlayAnimationFromTable({
  1568. CFrame.new(0, -2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  1569. 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),
  1570. CFrame.new(4.50001526, 2.68827057, 0.743782997, 1, 0, 0, 0, -0.866025388, 0.500000238, 0, -0.500000238, -0.866025388),
  1571. CFrame.new(-4.79884863, 0.640861034, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736, 0, 0, 0, 1),
  1572. CFrame.new(1.50001431, -6.00000048, 3.12924385e-06, 0.984807849, 0, -0.173647985, 0, 1, 0, 0.173647985, 0, 0.984807849),
  1573. CFrame.new(-1.5000186, -6.00000048, 9.83476639e-07, 0.984807849, 0, 0.173647985, 0, 1, 0, -0.173647985, 0, 0.984807849),
  1574. }, .15, false)
  1575. end
  1576. SHandaru.Transparency = 1
  1577. HolShot.Transparency = 0
  1578. for i=0,1,.1 do
  1579. swait()
  1580. PlayAnimationFromTable({
  1581. 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),
  1582. 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),
  1583. 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),
  1584. CFrame.new(-4.50001621, 0.190193266, -0.9294222, 1.00000024, 0, -2.98023224e-08, 0, 0.86602515, -0.500000358, 0, 0.500000417, 0.866025329),
  1585. 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),
  1586. 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),
  1587. }, .3, false)
  1588. end
  1589. end
  1590. for i=0,2,.1 do
  1591. swait()
  1592. PlayAnimationFromTable({
  1593. CFrame.new(0, -1.99700248, -0.27749458, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),
  1594. CFrame.new(0, 4.55108547, -0.444281816, 1, 0, 0, 0, 0.939692676, 0.342020601, 0, -0.342020601, 0.939692676),
  1595. 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),
  1596. 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),
  1597. 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),
  1598. 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),
  1599. }, .15, false)
  1600. end
  1601. CurrentWep = "Pistol"
  1602. PHandaru.Transparency = 0
  1603. HolPist.Transparency = 1
  1604. Humanoid.WalkSpeed = 8
  1605. Humanoid.JumpPower = 70
  1606. attack = false
  1607. end
  1608.  
  1609. function equipshot()
  1610. attack = true
  1611. Humanoid.WalkSpeed = 2
  1612. Humanoid.JumpPower = 0
  1613. if CurrentWep == "Pistol" then
  1614. for i=0,2,.1 do
  1615. swait()
  1616. PlayAnimationFromTable({
  1617. CFrame.new(0, -1.99700248, -0.27749458, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),
  1618. CFrame.new(0, 4.55108547, -0.444281816, 1, 0, 0, 0, 0.939692676, 0.342020601, 0, -0.342020601, 0.939692676),
  1619. 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),
  1620. 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),
  1621. 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),
  1622. 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),
  1623. }, .15, false)
  1624. end
  1625. PHandaru.Transparency = 1
  1626. HolPist.Transparency = 0
  1627. for i=0,1,.1 do
  1628. swait()
  1629. PlayAnimationFromTable({
  1630. 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),
  1631. 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),
  1632. 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),
  1633. CFrame.new(-4.50001621, 0.190193266, -0.9294222, 1.00000024, 0, -2.98023224e-08, 0, 0.86602515, -0.500000358, 0, 0.500000417, 0.866025329),
  1634. 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),
  1635. 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),
  1636. }, .3, false)
  1637. end
  1638. end
  1639. for i=0,2,.1 do
  1640. swait()
  1641. PlayAnimationFromTable({
  1642. CFrame.new(0, -2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  1643. 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),
  1644. CFrame.new(4.50001526, 2.68827057, 0.743782997, 1, 0, 0, 0, -0.866025388, 0.500000238, 0, -0.500000238, -0.866025388),
  1645. CFrame.new(-4.79884863, 0.640861034, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736, 0, 0, 0, 1),
  1646. CFrame.new(1.50001431, -6.00000048, 3.12924385e-06, 0.984807849, 0, -0.173647985, 0, 1, 0, 0.173647985, 0, 0.984807849),
  1647. CFrame.new(-1.5000186, -6.00000048, 9.83476639e-07, 0.984807849, 0, 0.173647985, 0, 1, 0, -0.173647985, 0, 0.984807849),
  1648. }, .15, false)
  1649. end
  1650. CurrentWep = "Shotgun"
  1651. SHandaru.Transparency = 0
  1652. HolShot.Transparency = 1
  1653. Humanoid.WalkSpeed = 8
  1654. Humanoid.JumpPower = 70
  1655. attack = false
  1656. end
  1657.  
  1658. function unequip()
  1659. attack = true
  1660. Humanoid.WalkSpeed = 2
  1661. Humanoid.JumpPower = 0
  1662. if CurrentWep == "Pistol" then
  1663. for i=0,2,.1 do
  1664. swait()
  1665. PlayAnimationFromTable({
  1666. CFrame.new(0, -1.99700248, -0.27749458, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),
  1667. CFrame.new(0, 4.55108547, -0.444281816, 1, 0, 0, 0, 0.939692676, 0.342020601, 0, -0.342020601, 0.939692676),
  1668. 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),
  1669. 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),
  1670. 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),
  1671. 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),
  1672. }, .15, false)
  1673. end
  1674. PHandaru.Transparency = 1
  1675. HolPist.Transparency = 0
  1676. elseif CurrentWep == "Shotgun" then
  1677. for i=0,2,.1 do
  1678. swait()
  1679. PlayAnimationFromTable({
  1680. CFrame.new(0, -2, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  1681. 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),
  1682. CFrame.new(4.50001526, 2.68827057, 0.743782997, 1, 0, 0, 0, -0.866025388, 0.500000238, 0, -0.500000238, -0.866025388),
  1683. CFrame.new(-4.79884863, 0.640861034, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736, 0, 0, 0, 1),
  1684. CFrame.new(1.50001431, -6.00000048, 3.12924385e-06, 0.984807849, 0, -0.173647985, 0, 1, 0, 0.173647985, 0, 0.984807849),
  1685. CFrame.new(-1.5000186, -6.00000048, 9.83476639e-07, 0.984807849, 0, 0.173647985, 0, 1, 0, -0.173647985, 0, 0.984807849),
  1686. }, .15, false)
  1687. end
  1688. SHandaru.Transparency = 1
  1689. HolShot.Transparency = 0
  1690. end
  1691. CurrentWep = "CQC"
  1692. Humanoid.WalkSpeed = 8
  1693. Humanoid.JumpPower = 70
  1694. attack = false
  1695. end
  1696.  
  1697. Mouse.Button1Down:connect(function()
  1698. if attack == false then
  1699. if CurrentWep == "Pistol" then
  1700. pshoot()
  1701. elseif CurrentWep == "Shotgun" then
  1702. if slugged == true then
  1703. slugshoot()
  1704. else
  1705. sshoot()
  1706. end
  1707. else
  1708. smek()
  1709. end
  1710. end
  1711. end)
  1712.  
  1713. local sprintt = 0
  1714. Mouse.KeyDown:connect(function(k)
  1715. k = k:lower()
  1716. if k=='m' then
  1717. if mus.IsPlaying == true then
  1718. mus:Stop()
  1719. elseif mus.IsPaused == true then
  1720. mus:Play()
  1721. end
  1722. end
  1723. if attack == false then
  1724. if k == 'z' then
  1725. if CurrentWep == "Shotgun" and slugged == false then
  1726. slugload()
  1727. elseif CurrentWep == "CQC" then
  1728. slam()
  1729. end
  1730. elseif k == 'f' then
  1731. smek()
  1732. elseif k == 'x' then
  1733. xhold = true
  1734. if CurrentWep == "CQC" then
  1735. thesurou()
  1736. end
  1737. elseif k == 'c' then
  1738. chold = true
  1739. if CurrentWep == "CQC" then
  1740. headrip()
  1741. end
  1742. elseif k == 'v' then
  1743. stomp()
  1744. elseif k == 't' then
  1745. if CurrentWep ~= "Pistol" then
  1746. equippist()
  1747. else
  1748. unequip()
  1749. end
  1750. elseif k == 'y' then
  1751. if CurrentWep ~= "Shotgun" then
  1752. equipshot()
  1753. else
  1754. unequip()
  1755. end
  1756. end
  1757. end
  1758. end)
  1759.  
  1760. Mouse.KeyUp:connect(function(k)
  1761. if k == 'x' then
  1762. xhold = false
  1763. elseif k == 'c' then
  1764. chold = false
  1765. end
  1766. end)
  1767.  
  1768. coroutine.wrap(function()
  1769. game:GetService("RunService").RenderStepped:connect(function()
  1770. for i,v in pairs(chara:GetDescendants()) do
  1771. if v:IsA("BasePart") and v.Parent.Name ~= "FakeHeadM" and v.Name ~= "Head" and v.Parent:IsA("Accessory") == false then
  1772. v.LocalTransparencyModifier = 0
  1773. end
  1774. end
  1775. end)
  1776. end)()
  1777.  
  1778. coroutine.wrap(function()
  1779. while 1 do
  1780. swait()
  1781. if doe <= 360 then
  1782. doe = doe + 2
  1783. else
  1784. doe = 0
  1785. end
  1786. end
  1787. end)()
  1788. while true do
  1789. swait()
  1790. while true do
  1791. swait()
  1792. Head.Transparency = 1
  1793. if Head:FindFirstChild("face") then
  1794. Head:FindFirstChild("face").Transparency = 1
  1795. end
  1796. Humanoid.MaxHealth = 1000
  1797. if Humanoid.Health < 1000 then
  1798. Humanoid.Health = Humanoid.Health + 1
  1799. end
  1800. if chara:FindFirstChild("mus")==nil then
  1801. mus = Instance.new("Sound",chara)
  1802. mus.Name = "mus"
  1803. mus.SoundId = "rbxassetid://142653441"--"rbxassetid://335204822"
  1804. mus.Looped = true
  1805. mus.Volume = 1
  1806. mus:Play()
  1807. end
  1808. if sprintt >= 1 then
  1809. sprintt = sprintt - 1
  1810. end
  1811. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  1812. velocity = RootPart.Velocity.y
  1813. sine = sine + change
  1814. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 12, chara)
  1815. if RootPart.Velocity.y > 1 and hit == nil then
  1816. Anim = "Jump"
  1817. if attack == false then
  1818. PlayAnimationFromTable({
  1819. CFrame.new(0, 0.0294559821, -0.246550545, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736),
  1820. CFrame.new(0, 4.29474068, 0.563813269, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736),
  1821. 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),
  1822. 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),
  1823. CFrame.new(1.50001526, -3.80000091, -1.39999759, 1, 0, 0, 0, 1, -2.98023224e-08, 0, -2.98023224e-08, 1),
  1824. CFrame.new(-1.50001621, -5.99999809, 1.13248825e-06, 1, 0, 0, 0, 1, -2.98023224e-08, 0, -2.98023224e-08, 1),
  1825. }, .1, false)
  1826. end
  1827. elseif RootPart.Velocity.y < -1 and hit == nil then
  1828. Anim = "Fall"
  1829. if attack == false then
  1830. PlayAnimationFromTable({
  1831. 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),
  1832. CFrame.new(1.90734863e-06, 4.4037199, -0.67802453, 1, 0, 0, 0, 0.866025686, 0.499999642, 0, -0.499999642, 0.866025686),
  1833. 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),
  1834. 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),
  1835. CFrame.new(1.50001335, -3.80000305, -1.39999592, 1, 0, 0, 0, 1, 2.98023224e-08, 0, 2.98023224e-08, 1),
  1836. CFrame.new(-1.50002098, -6.00000477, 1.72853458e-06, 1, 0, 0, 0, 1, 2.98023224e-08, 0, 2.98023224e-08, 1),
  1837. }, .1, false)
  1838. end
  1839. elseif Torsovelocity < 1 and hit ~= nil then
  1840. Anim = "Idle"
  1841. if attack == false then
  1842. change = 1
  1843. if CurrentWep == "CQC" then
  1844. PlayAnimationFromTable({
  1845. 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),
  1846. 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),
  1847. 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),
  1848. CFrame.new(-4.50001621, 0.190193266, -0.9294222, 1.00000024, 0, -2.98023224e-08, 0, 0.86602515, -0.500000358, 0, 0.500000417, 0.866025329),
  1849. 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),
  1850. 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),
  1851. }, .3, false)
  1852. elseif CurrentWep == "Shotgun" then
  1853. PlayAnimationFromTable({
  1854. 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),
  1855. 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),
  1856. 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),
  1857. 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),
  1858. 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),
  1859. 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),
  1860. }, .3, false)
  1861. elseif CurrentWep == "Pistol" then
  1862. PlayAnimationFromTable({
  1863. 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),
  1864. CFrame.new(0, 4.27439117, -0.749502182, 1, 0, 0, 0, 0.866025686, 0.499999642, 0, -0.499999642, 0.866025686),
  1865. CFrame.new(4.50001526, 0.888218164, -1.46819997, 1, 0, 0, 0, 0.342019796, -0.939692855, 0, 0.939692855, 0.342019796),
  1866. 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),
  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. 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),
  1869. }, .3, false)
  1870. end
  1871. end
  1872. elseif Torsovelocity > 2 and hit ~= nil then
  1873. Anim = "Walk"
  1874. if attack == false then
  1875. Humanoid.WalkSpeed = 8
  1876. Humanoid.JumpPower = 70
  1877. if CurrentWep == "CQC" then
  1878. PlayAnimationFromTable({
  1879. 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),
  1880. 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),
  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(-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),
  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. 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),
  1885. }, .3, false)
  1886. elseif CurrentWep == "Shotgun" then
  1887. PlayAnimationFromTable({
  1888. 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),
  1889. 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),
  1890. 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),
  1891. 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),
  1892. 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),
  1893. 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),
  1894. }, .3, false)
  1895. elseif CurrentWep == "Pistol" then
  1896. PlayAnimationFromTable({
  1897. 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),
  1898. CFrame.new(0, 4.27439117, -0.749502182, 1, 0, 0, 0, 0.866025686, 0.499999642, 0, -0.499999642, 0.866025686),
  1899. CFrame.new(4.50001526, 0.888218164, -1.46819997, 1, 0, 0, 0, 0.342019796, -0.939692855, 0, 0.939692855, 0.342019796),
  1900. 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),
  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. 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),
  1903. }, .3, false)
  1904. end
  1905. end
  1906. end
  1907. end
  1908. end
Add Comment
Please, Sign In to add comment