Kaemi

Untitled

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