Advertisement
DarkScriptZEditors

Agent

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