subaru112g

agent agony fe

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