subaru112g

agent agony fe

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