Advertisement
5sdfsadgaq5465

agent agony fe

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