McSans

For my client?

Mar 7th, 2019
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- READ THIS PART
  2. -- TO GET THIS TO WORK JUST PASTE IT AT THE TOP OF YOUR SCRIPT AND SAVE IT
  3. -- NOW DELETE THESE LINES IF YOU WANT
  4.  
  5.  
  6. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  7. local Player,game,owner = owner,game
  8. local RealPlayer = Player
  9. do
  10. print("FE Compatibility code by retram")
  11. local rp = RealPlayer
  12. script.Parent = rp.Character
  13.  
  14. --RemoteEvent for communicating
  15. local Event = Instance.new("RemoteEvent")
  16. Event.Name = "UserInput_Event"
  17.  
  18. --Fake event to make stuff like Mouse.KeyDown work
  19. local function fakeEvent()
  20. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  21. t.connect = t.Connect
  22. return t
  23. end
  24.  
  25. --Creating fake input objects with fake variables
  26. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
  27. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  28. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  29. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  30. end}
  31. --Merged 2 functions into one by checking amount of arguments
  32. CAS.UnbindAction = CAS.BindAction
  33.  
  34. --This function will trigger the events that have been :Connect()'ed
  35. local function te(self,ev,...)
  36. local t = m[ev]
  37. if t and t._fakeEvent then
  38. for _,f in pairs(t.Functions) do
  39. f(...)
  40. end
  41. end
  42. end
  43. m.TrigEvent = te
  44. UIS.TrigEvent = te
  45.  
  46. Event.OnServerEvent:Connect(function(plr,io)
  47. if plr~=rp then return end
  48. m.Target = io.Target
  49. m.Hit = io.Hit
  50. if not io.isMouse then
  51. local b = io.UserInputState == Enum.UserInputState.Begin
  52. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  53. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  54. end
  55. if io.UserInputType == Enum.UserInputType.MouseButton2 then
  56. return m:TrigEvent(b and "Button2Down" or "Button2Up")
  57. end
  58. for _,t in pairs(CAS.Actions) do
  59. for _,k in pairs(t.Keys) do
  60. if k==io.KeyCode then
  61. t.Function(t.Name,io.UserInputState,io)
  62. end
  63. end
  64. end
  65. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  66. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  67. end
  68. end)
  69. Event.Parent = NLS([==[
  70. local Player = game:GetService("Players").LocalPlayer
  71. local Event = script:WaitForChild("UserInput_Event")
  72. local Mouse = Player:GetMouse()
  73. local UIS = game:GetService("UserInputService")
  74. local input = function(io,a)
  75. if a then return end
  76. --Since InputObject is a client-side instance, we create and pass table instead
  77. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  78. end
  79. UIS.InputBegan:Connect(input)
  80. UIS.InputEnded:Connect(input)
  81. local h,t
  82. --Give the server mouse data 30 times every second, but only if the values changed
  83. --If player is not moving their mouse, client won't fire events
  84. while wait(1/30) do
  85. if h~=Mouse.Hit or t~=Mouse.Target then
  86. h,t=Mouse.Hit,Mouse.Target
  87. Event:FireServer({isMouse=true,Target=t,Hit=h})
  88. end
  89. end]==],Player.Character)
  90.  
  91. ----Sandboxed game object that allows the usage of client-side methods and services
  92. --Real game object
  93. local _rg = game
  94.  
  95. --Metatable for fake service
  96. local fsmt = {
  97. __index = function(self,k)
  98. local s = rawget(self,"_RealService")
  99. if s then
  100. return typeof(s[k])=="function"
  101. and function(_,...)return s[k](s,...)end or s[k]
  102. end
  103. end,
  104. __newindex = function(self,k,v)
  105. local s = rawget(self,"_RealService")
  106. if s then s[k]=v end
  107. end
  108. }
  109. local function FakeService(t,RealService)
  110. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  111. return setmetatable(t,fsmt)
  112. end
  113.  
  114. --Fake game object
  115. local g = {
  116. GetService = function(self,s)
  117. return rawget(self,s) or _rg:GetService(s)
  118. end,
  119. Players = FakeService({
  120. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  121. },"Players"),
  122. UserInputService = FakeService(UIS,"UserInputService"),
  123. ContextActionService = FakeService(CAS,"ContextActionService"),
  124. RunService = FakeService({
  125. _btrs = {},
  126. RenderStepped = _rg:GetService("RunService").Heartbeat,
  127. BindToRenderStep = function(self,name,_,fun)
  128. self._btrs[name] = self.Heartbeat:Connect(fun)
  129. end,
  130. UnbindFromRenderStep = function(self,name)
  131. self._btrs[name]:Disconnect()
  132. end,
  133. },"RunService")
  134. }
  135. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  136. g.service = g.GetService
  137. FakeService(g,game)
  138. --Changing owner to fake player object to support owner:GetMouse()
  139. game,owner = g,g.Players.LocalPlayer
  140. end --//===================================================================\\--
  141. -- ORIGINAL SCRIPT CREATED BY SHACKLUSTER THE EDIT BY XDAVODIOX --
  142. --\\===================================================================//--
  143.  
  144.  
  145.  
  146. wait(0.2)
  147. Effects = { }
  148. local Player = game.Players.localPlayer
  149. local Character = Player.Character
  150. local Humanoid = Character.Humanoid
  151. local Mouse = Player:GetMouse()
  152. local LeftArm = Character["Left Arm"]
  153. local RightArm = Character["Right Arm"]
  154. local LeftLeg = Character["Left Leg"]
  155. local RightLeg = Character["Right Leg"]
  156. local Head = Character.Head
  157. local Torso = Character.Torso
  158. local Camera = game.Workspace.CurrentCamera
  159. local RootPart = Character.HumanoidRootPart
  160. local RootJoint = RootPart.RootJoint
  161. local attack = false
  162. local Anim = 'Idle'
  163. local attacktype = 1
  164. local delays = false
  165. local play = true
  166. local targetted = nil
  167. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  168. local velocity = RootPart.Velocity.y
  169. local sine = 0
  170. local change = 1
  171. local doe = 0
  172. local Create = LoadLibrary("RbxUtility").Create
  173. Humanoid.WalkSpeed = 8
  174. local m = Create("Model"){
  175. Parent = Character,
  176. Name = "WeaponModel",
  177. }
  178. local Orin = "rbxassetid://459924806"
  179. Head.face.Texture = Orin
  180. spawn(function()
  181. while wait() do
  182. Head.BrickColor = BrickColor.new("Bright yellow")
  183. RightArm.BrickColor = BrickColor.new("Bright yellow")
  184. LeftArm.BrickColor = BrickColor.new("Bright yellow")
  185. Torso.BrickColor = BrickColor.new("Bright blue")
  186. RightLeg.BrickColor = BrickColor.new("Br. yellowish green")
  187. LeftLeg.BrickColor = BrickColor.new("Br. yellowish green")
  188. end
  189. end)
  190. for i,v in pairs(Character:children()) do
  191. if v:IsA("Hat") then
  192. v:Destroy()
  193. end
  194. end
  195. for i,v in pairs(Character:children()) do
  196. if v:IsA("Accessory") then
  197. v:Destroy()
  198. end
  199. end
  200. for i,v in pairs(Character:children()) do
  201. if v:IsA("Hair") then
  202. v:Destroy()
  203. end
  204. end
  205. for i,v in pairs(Character:children()) do
  206. if v:IsA("Shirt") then
  207. v:Destroy()
  208. end
  209. end
  210. for i,v in pairs(Character:children()) do
  211. if v:IsA("Pants") then
  212. v:Destroy()
  213. end
  214. end
  215. for i,v in pairs(Character:children()) do
  216. if v:IsA("Graphic Shirt") then
  217. v:Destroy()
  218. end
  219. end
  220. wait(0.5)
  221. local Player = game.Players.localPlayer
  222. local Character = Player.Character
  223. local Humanoid = Character.Humanoid
  224. local LeftArm = Character["Left Arm"]
  225. local RightArm = Character["Right Arm"]
  226. local LeftLeg = Character["Left Leg"]
  227. local RightLeg = Character["Right Leg"]
  228. local Head = Character.Head
  229. local Torso = Character.Torso
  230. local RootPart = Character.HumanoidRootPart
  231. local RootJoint = RootPart.RootJoint
  232. local txt = Instance.new("BillboardGui", Character)
  233. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  234. local velocity = RootPart.Velocity.y
  235. sound = Instance.new("Sound", Character)
  236. sound.SoundId = "rbxassetid://1101468563"
  237. sound.Volume = 0
  238. sound.EmitterSize = 25
  239. sound:Play()
  240. sound.Looped = true
  241. CV = "Maroon"
  242. Player = game.Players.LocalPlayer
  243. char = Player.Character
  244. local txt = Instance.new("BillboardGui", Character)
  245. txt.Adornee = Character.Head
  246. txt.Name = "_status"
  247. txt.Size = UDim2.new(2, 0, 1.2, 0)
  248. txt.StudsOffset = Vector3.new(-9, 8, 0)
  249. local text = Instance.new("TextLabel", txt)
  250. text.Size = UDim2.new(10, 0, 7, 0)
  251. text.FontSize = "Size24"
  252. text.TextScaled = true
  253. text.TextTransparency = 0
  254. text.BackgroundTransparency = 1
  255. text.TextTransparency = 0
  256. text.TextStrokeTransparency = 1
  257. text.Font = "Antique"
  258. v = Instance.new("Part")
  259. v.Name = "ColorBrick"
  260. v.Parent = Player.Character
  261. v.FormFactor = "Symmetric"
  262. v.Anchored = true
  263. v.CanCollide = false
  264. v.BottomSurface = "Smooth"
  265. v.TopSurface = "Smooth"
  266. v.Size = Vector3.new(10, 5, 3)
  267. v.Transparency = 1
  268. v.CFrame = Character.Torso.CFrame
  269. v.BrickColor = BrickColor.new(CV)
  270. v.Transparency = 1
  271. touchCounter = 0
  272. local cR=255
  273. local cG=0
  274. local cB=0
  275. local flg5=1 local omgidk=1
  276. local add=15
  277. game:GetService("RunService"):BindToRenderStep("Ghost",1,function()
  278. if omgidk>10000 then omgidk=0 end
  279. omgidk=omgidk+1
  280. if cR>=255 then flg5=1 end
  281. if cG>=255 then flg5=2 end
  282. if cB>=255 then flg5=3 end
  283. if flg5==1 then cR=cR-add cG=cG+add end
  284. if flg5==2 then cG=cG-add cB=cB+add end
  285. if flg5==3 then cB=cB-add cR=cR+add end
  286. color=Color3.fromRGB(cR,cG,cB)
  287. text.TextColor3 = color
  288. end)
  289. v.Shape = "Block"
  290. text.Text = Player.Name..", The Ultimate Noob of Fun"
  291. function MagnitudeDamage(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch)
  292. for _, c in pairs(workspace:children()) do
  293. local hum = c:findFirstChild("Humanoid")
  294. if hum ~= nil then
  295. local head = hit
  296. if head ~= nil then
  297. local targ = head.Position - Part.Position
  298. local mag = targ.magnitude
  299. if Magnitude >= mag and c.Name ~= Player.Name then
  300. CFuncs.Sound.Create("324867021", head, 1, 1)
  301. Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, 0.1, HitSound, HitPitch)
  302. end
  303. end
  304. end
  305. end
  306. end
  307. wait(0.4)
  308. Player = game:GetService("Players").LocalPlayer
  309. local Player = game.Players.localPlayer
  310. local Character = Player.Character
  311. PlayerGui = Player.PlayerGui
  312. Cam = workspace.CurrentCamera
  313. Backpack = Player.Backpack
  314. Character = Player.Character
  315. Humanoid = Character.Humanoid
  316. Mouse = Player:GetMouse()
  317. RootPart = Character["HumanoidRootPart"]
  318. Torso = Character["Torso"]
  319. Head = Character["Head"]
  320. RightArm = Character["Right Arm"]
  321. LeftArm = Character["Left Arm"]
  322. RightLeg = Character["Right Leg"]
  323. LeftLeg = Character["Left Leg"]
  324. RootJoint = RootPart["RootJoint"]
  325. Neck = Torso["Neck"]
  326. RightShoulder = Torso["Right Shoulder"]
  327. LeftShoulder = Torso["Left Shoulder"]
  328. RightHip = Torso["Right Hip"]
  329. LeftHip = Torso["Left Hip"]
  330. local sick = Instance.new("Sound",Character)
  331. sick.SoundId = "rbxassetid://1110421128"
  332. sick.Looped = true
  333. sick.Pitch = 1
  334. sick.Volume = 4.5
  335. sick:Play()
  336.  
  337. IT = Instance.new
  338. CF = CFrame.new
  339. VT = Vector3.new
  340. RAD = math.rad
  341. C3 = Color3.new
  342. UD2 = UDim2.new
  343. BRICKC = BrickColor.new
  344. ANGLES = CFrame.Angles
  345. EULER = CFrame.fromEulerAnglesXYZ
  346. COS = math.cos
  347. ACOS = math.acos
  348. SIN = math.sin
  349. ASIN = math.asin
  350. ABS = math.abs
  351. MRANDOM = math.random
  352. FLOOR = math.floor
  353.  
  354. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  355. local NEWMESH = IT(MESH)
  356. if MESH == "SpecialMesh" then
  357. NEWMESH.MeshType = MESHTYPE
  358. if MESHID ~= "nil" and MESHID ~= "" then
  359. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  360. end
  361. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  362. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  363. end
  364. end
  365. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  366. NEWMESH.Scale = SCALE
  367. NEWMESH.Parent = PARENT
  368. return NEWMESH
  369. end
  370.  
  371. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  372. local NEWPART = IT("Part")
  373. NEWPART.formFactor = FORMFACTOR
  374. NEWPART.Reflectance = REFLECTANCE
  375. NEWPART.Transparency = TRANSPARENCY
  376. NEWPART.CanCollide = false
  377. NEWPART.Locked = true
  378. NEWPART.Anchored = true
  379. if ANCHOR == false then
  380. NEWPART.Anchored = false
  381. end
  382. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  383. NEWPART.Name = NAME
  384. NEWPART.Size = SIZE
  385. NEWPART.Position = Torso.Position
  386. NEWPART.Material = MATERIAL
  387. NEWPART:BreakJoints()
  388. NEWPART.Parent = PARENT
  389. return NEWPART
  390. end
  391.  
  392. --//=================================\\
  393. --|| CUSTOMIZATION
  394. --\\=================================//
  395.  
  396. Player_Size = 1 --Size of the player.
  397. Animation_Speed = 3
  398. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  399.  
  400. local Speed = 18
  401. local Effects2 = {}
  402.  
  403. --//=================================\\
  404. --|| END OF CUSTOMIZATION
  405. --\\=================================//
  406.  
  407. local function weldBetween(a, b)
  408. local weldd = Instance.new("ManualWeld")
  409. weldd.Part0 = a
  410. weldd.Part1 = b
  411. weldd.C0 = CFrame.new()
  412. weldd.C1 = b.CFrame:inverse() * a.CFrame
  413. weldd.Parent = a
  414. return weldd
  415. end
  416.  
  417. --//=================================\\
  418. --|| USEFUL VALUES
  419. --\\=================================//
  420.  
  421. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  422. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  423. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  424. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  425. local CHANGEDEFENSE = 0
  426. local CHANGEDAMAGE = 0
  427. local CHANGEMOVEMENT = 0
  428. local ANIM = "Idle"
  429. local ATTACK = false
  430. local EQUIPPED = false
  431. local HOLD = false
  432. local COMBO = 1
  433. local Rooted = false
  434. local SINE = 0
  435. local KEYHOLD = false
  436. local CHANGE = 2 / Animation_Speed
  437. local WALKINGANIM = false
  438. local WALK = 0
  439. local VALUE1 = false
  440. local VALUE2 = false
  441. local ROBLOXIDLEANIMATION = IT("Animation")
  442. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  443. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  444. --ROBLOXIDLEANIMATION.Parent = Humanoid
  445. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  446. WEAPONGUI.Name = "Weapon GUI"
  447. local Weapon = IT("Model")
  448. Weapon.Name = "Adds"
  449. local HITFLOOR = nil
  450. local Effects = IT("Folder", Weapon)
  451. Effects.Name = "Effects"
  452. local ANIMATOR = Humanoid.Animator
  453. local ANIMATE = Character.Animate
  454. local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
  455. local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
  456. local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
  457. local HITBLOCKSOUNDS = {"199148933", "199148947"}
  458. local UNANCHOR = true
  459.  
  460. local SKILLTEXTCOLOR = C3(0,255/255,0)
  461.  
  462. --//=================================\\
  463. --\\=================================//
  464.  
  465.  
  466. --//=================================\\
  467. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  468. --\\=================================//
  469.  
  470. ArtificialHB = Instance.new("BindableEvent", script)
  471. ArtificialHB.Name = "ArtificialHB"
  472.  
  473. script:WaitForChild("ArtificialHB")
  474.  
  475. frame = Frame_Speed
  476. tf = 0
  477. allowframeloss = false
  478. tossremainder = false
  479. lastframe = tick()
  480. script.ArtificialHB:Fire()
  481.  
  482. game:GetService("RunService").Heartbeat:connect(function(s, p)
  483. tf = tf + s
  484. if tf >= frame then
  485. if allowframeloss then
  486. script.ArtificialHB:Fire()
  487. lastframe = tick()
  488. else
  489. for i = 1, math.floor(tf / frame) do
  490. script.ArtificialHB:Fire()
  491. end
  492. lastframe = tick()
  493. end
  494. if tossremainder then
  495. tf = 0
  496. else
  497. tf = tf - frame * math.floor(tf / frame)
  498. end
  499. end
  500. end)
  501.  
  502. --//=================================\\
  503. --\\=================================//
  504.  
  505.  
  506.  
  507.  
  508.  
  509. --//=================================\\
  510. --|| SOME FUNCTIONS
  511. --\\=================================//
  512.  
  513. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  514. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  515. end
  516.  
  517. function PositiveAngle(NUMBER)
  518. if NUMBER >= 0 then
  519. NUMBER = 0
  520. end
  521. return NUMBER
  522. end
  523.  
  524. function NegativeAngle(NUMBER)
  525. if NUMBER <= 0 then
  526. NUMBER = 0
  527. end
  528. return NUMBER
  529. end
  530.  
  531. function Swait(NUMBER)
  532. if NUMBER == 0 or NUMBER == nil then
  533. ArtificialHB.Event:wait()
  534. else
  535. for i = 1, NUMBER do
  536. ArtificialHB.Event:wait()
  537. end
  538. end
  539. end
  540.  
  541. function QuaternionFromCFrame(cf)
  542. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  543. local trace = m00 + m11 + m22
  544. if trace > 0 then
  545. local s = math.sqrt(1 + trace)
  546. local recip = 0.5 / s
  547. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  548. else
  549. local i = 0
  550. if m11 > m00 then
  551. i = 1
  552. end
  553. if m22 > (i == 0 and m00 or m11) then
  554. i = 2
  555. end
  556. if i == 0 then
  557. local s = math.sqrt(m00 - m11 - m22 + 1)
  558. local recip = 0.5 / s
  559. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  560. elseif i == 1 then
  561. local s = math.sqrt(m11 - m22 - m00 + 1)
  562. local recip = 0.5 / s
  563. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  564. elseif i == 2 then
  565. local s = math.sqrt(m22 - m00 - m11 + 1)
  566. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  567. end
  568. end
  569. end
  570.  
  571. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  572. local xs, ys, zs = x + x, y + y, z + z
  573. local wx, wy, wz = w * xs, w * ys, w * zs
  574. local xx = x * xs
  575. local xy = x * ys
  576. local xz = x * zs
  577. local yy = y * ys
  578. local yz = y * zs
  579. local zz = z * zs
  580. return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy))
  581. end
  582.  
  583. function QuaternionSlerp(a, b, t)
  584. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  585. local startInterp, finishInterp;
  586. if cosTheta >= 0.0001 then
  587. if (1 - cosTheta) > 0.0001 then
  588. local theta = ACOS(cosTheta)
  589. local invSinTheta = 1 / SIN(theta)
  590. startInterp = SIN((1 - t) * theta) * invSinTheta
  591. finishInterp = SIN(t * theta) * invSinTheta
  592. else
  593. startInterp = 1 - t
  594. finishInterp = t
  595. end
  596. else
  597. if (1 + cosTheta) > 0.0001 then
  598. local theta = ACOS(-cosTheta)
  599. local invSinTheta = 1 / SIN(theta)
  600. startInterp = SIN((t - 1) * theta) * invSinTheta
  601. finishInterp = SIN(t * theta) * invSinTheta
  602. else
  603. startInterp = t - 1
  604. finishInterp = t
  605. end
  606. end
  607. return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp
  608. end
  609.  
  610. function Clerp(a, b, t)
  611. local qa = {QuaternionFromCFrame(a)}
  612. local qb = {QuaternionFromCFrame(b)}
  613. local ax, ay, az = a.x, a.y, a.z
  614. local bx, by, bz = b.x, b.y, b.z
  615. local _t = 1 - t
  616. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  617. end
  618.  
  619. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  620. local frame = IT("Frame")
  621. frame.BackgroundTransparency = TRANSPARENCY
  622. frame.BorderSizePixel = BORDERSIZEPIXEL
  623. frame.Position = POSITION
  624. frame.Size = SIZE
  625. frame.BackgroundColor3 = COLOR
  626. frame.BorderColor3 = BORDERCOLOR
  627. frame.Name = NAME
  628. frame.Parent = PARENT
  629. return frame
  630. end
  631.  
  632. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  633. local label = IT("TextLabel")
  634. label.BackgroundTransparency = 1
  635. label.Size = UD2(1, 0, 1, 0)
  636. label.Position = UD2(0, 0, 0, 0)
  637. label.TextColor3 = TEXTCOLOR
  638. label.TextStrokeTransparency = STROKETRANSPARENCY
  639. label.TextTransparency = TRANSPARENCY
  640. label.FontSize = TEXTFONTSIZE
  641. label.Font = TEXTFONT
  642. label.BorderSizePixel = BORDERSIZEPIXEL
  643. label.TextScaled = false
  644. label.Text = TEXT
  645. label.Name = NAME
  646. label.Parent = PARENT
  647. return label
  648. end
  649.  
  650. function NoOutlines(PART)
  651. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  652. end
  653.  
  654.  
  655. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  656. local NEWWELD = IT(TYPE)
  657. NEWWELD.Part0 = PART0
  658. NEWWELD.Part1 = PART1
  659. NEWWELD.C0 = C0
  660. NEWWELD.C1 = C1
  661. NEWWELD.Parent = PARENT
  662. return NEWWELD
  663. end
  664.  
  665. function CreateSound(ID, PARENT, VOLUME, PITCH)
  666. local NEWSOUND = nil
  667. coroutine.resume(coroutine.create(function()
  668. NEWSOUND = IT("Sound", PARENT)
  669. NEWSOUND.Volume = VOLUME
  670. NEWSOUND.Pitch = PITCH
  671. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  672. Swait()
  673. NEWSOUND:play()
  674. game:GetService("Debris"):AddItem(NEWSOUND, 10)
  675. end))
  676. return NEWSOUND
  677. end
  678.  
  679. function CFrameFromTopBack(at, top, back)
  680. local right = top:Cross(back)
  681. return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
  682. end
  683.  
  684. function CreateWave(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  685. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC("New Yeller"), "Effect", VT(0,0,0))
  686. local mesh = IT("SpecialMesh",wave)
  687. mesh.MeshType = "FileMesh"
  688. mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  689. mesh.Scale = SIZE
  690. mesh.Offset = VT(0,0,-SIZE.X/8)
  691. wave.CFrame = CFRAME
  692. coroutine.resume(coroutine.create(function(PART)
  693. for i = 1, WAIT do
  694. Swait()
  695. mesh.Scale = mesh.Scale + GROW
  696. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  697. if DOESROT == true then
  698. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  699. end
  700. wave.Transparency = wave.Transparency + (0.5/WAIT)
  701. if wave.Transparency > 0.99 then
  702. wave:remove()
  703. end
  704. end
  705. end))
  706. end
  707.  
  708. function CreateWave2(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  709. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC("New Yeller"), "Effect", VT(0,0,0))
  710. local mesh = IT("SpecialMesh",wave)
  711. mesh.MeshType = "FileMesh"
  712. mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  713. mesh.Scale = SIZE
  714. --mesh.Offset = VT(0,0,-SIZE.X/8)
  715. wave.CFrame = CFRAME
  716. coroutine.resume(coroutine.create(function(PART)
  717. for i = 1, WAIT do
  718. Swait()
  719. mesh.Scale = mesh.Scale + GROW
  720. --mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  721. if DOESROT == true then
  722. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  723. end
  724. wave.Transparency = wave.Transparency + (0.5/WAIT)
  725. if wave.Transparency > 0.99 then
  726. wave:remove()
  727. end
  728. end
  729. end))
  730. end
  731.  
  732. function CreateSwirl(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  733. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC("New Yeller"), "Effect", VT(0,0,0))
  734. local mesh = IT("SpecialMesh",wave)
  735. mesh.MeshType = "FileMesh"
  736. mesh.MeshId = "http://www.roblox.com/asset/?id=1051557"
  737. mesh.Scale = SIZE
  738. wave.CFrame = CFRAME
  739. coroutine.resume(coroutine.create(function(PART)
  740. for i = 1, WAIT do
  741. Swait()
  742. mesh.Scale = mesh.Scale + GROW
  743. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  744. if DOESROT == true then
  745. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  746. end
  747. wave.Transparency = wave.Transparency + (0.5/WAIT)
  748. if wave.Transparency > 0.99 then
  749. wave:remove()
  750. end
  751. end
  752. end))
  753. end
  754.  
  755.  
  756. function Slice(SIZE,WAIT,CFRAME,COLOR,GROW)
  757. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC("New Yeller"), "Effect", VT(1,1,1), true)
  758. local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0,SIZE/10,SIZE/10), VT(0,0,0))
  759. wave.CFrame = CFRAME
  760. coroutine.resume(coroutine.create(function(PART)
  761. for i = 1, WAIT do
  762. Swait()
  763. mesh.Scale = mesh.Scale * GROW
  764. wave.Transparency = wave.Transparency + (0.5/WAIT)
  765. if wave.Transparency > 0.99 then
  766. wave:remove()
  767. end
  768. end
  769. end))
  770. end
  771.  
  772. function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW)
  773. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC("New Yeller"), "Effect", VT(1,1,1), true)
  774. local mesh = IT("SpecialMesh",wave)
  775. mesh.MeshType = "Sphere"
  776. mesh.Scale = SIZE
  777. mesh.Offset = VT(0,0,0)
  778. wave.CFrame = CFRAME
  779. coroutine.resume(coroutine.create(function(PART)
  780. for i = 1, WAIT do
  781. Swait()
  782. mesh.Scale = mesh.Scale + GROW
  783. wave.Transparency = wave.Transparency + (1/WAIT)
  784. if wave.Transparency > 0.99 then
  785. wave:remove()
  786. end
  787. end
  788. end))
  789. end
  790.  
  791. function MakeForm(PART,TYPE)
  792. if TYPE == "Cyl" then
  793. local MSH = IT("CylinderMesh",PART)
  794. elseif TYPE == "Ball" then
  795. local MSH = IT("SpecialMesh",PART)
  796. MSH.MeshType = "Sphere"
  797. elseif TYPE == "Wedge" then
  798. local MSH = IT("SpecialMesh",PART)
  799. MSH.MeshType = "Wedge"
  800. end
  801. end
  802.  
  803. function CreateDebreeRing(FLOOR,POSITION,SIZE,BLOCKSIZE,SWAIT)
  804. if FLOOR ~= nil then
  805. coroutine.resume(coroutine.create(function()
  806. local PART = CreatePart(3, Effects, "Plastic", 0, 1, "Pearl", "DebreeCenter", VT(0,0,0))
  807. PART.CFrame = CF(POSITION)
  808. for i = 1, 45 do
  809. local RingPiece = CreatePart(3, Effects, "Plastic", 0, 0, "Pearl", "DebreePart", BLOCKSIZE)
  810. RingPiece.Material = FLOOR.Material
  811. RingPiece.Color = FLOOR.Color
  812. RingPiece.CFrame = PART.CFrame * ANGLES(RAD(0), RAD(i*8), RAD(0)) * CF(SIZE*4, 0, 0) * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)))
  813. Debris:AddItem(RingPiece,SWAIT/100)
  814. end
  815. PART:remove()
  816. end))
  817. end
  818. end
  819.  
  820. function CheckTableForString(Table, String)
  821. for i, v in pairs(Table) do
  822. if string.find(string.lower(String), string.lower(v)) then
  823. return true
  824. end
  825. end
  826. return false
  827. end
  828.  
  829. function CheckIntangible(Hit)
  830. local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"}
  831. if Hit and Hit.Parent then
  832. if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then
  833. return true
  834. end
  835. end
  836. return false
  837. end
  838.  
  839. Debris = game:GetService("Debris")
  840.  
  841. function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit)
  842. local Direction = CFrame.new(StartPos, Vec).lookVector
  843. local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
  844. local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
  845. if RayHit and CheckIntangible(RayHit) then
  846. if DelayIfHit then
  847. wait()
  848. end
  849. RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit)
  850. end
  851. return RayHit, RayPos, RayNormal
  852. end
  853.  
  854. function turnto(position)
  855. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  856. end
  857.  
  858. --//=================================\\
  859. --|| WEAPON CREATION
  860. --\\=================================//
  861.  
  862. local FIST = CreatePart(3, Weapon, "Neon", 0, 0, "New Yeller", "Neon Gauntlet Part", VT(1.01*Player_Size,1.4*Player_Size,1.01*Player_Size),false)
  863. local weld = CreateWeldOrSnapOrMotor("Weld", FIST, RightArm, FIST, CF(0 * Player_Size, -0.25 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  864. local part = CreatePart(3, Weapon, "Granite", 0, 0, "New Yeller", "Gauntlet Part", VT(1.2*Player_Size,0.3*Player_Size,1.2*Player_Size),false)
  865. local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0 * Player_Size, 0.6 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  866.  
  867. local part = CreatePart(3, Weapon, "Granite", 0, 0, "New Yeller", "Gauntlet Part", VT(1.05*Player_Size,0.05*Player_Size,1.05*Player_Size),false)
  868. local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0 * Player_Size, 0.1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  869. local part = CreatePart(3, Weapon, "Granite", 0, 0, "New Yeller", "Gauntlet Part", VT(1.05*Player_Size,0.05*Player_Size,1.05*Player_Size),false)
  870. local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0 * Player_Size, 0.2 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  871. local part = CreatePart(3, Weapon, "Granite", 0, 0, "New Yeller", "Gauntlet Part", VT(1.05*Player_Size,0.05*Player_Size,1.05*Player_Size),false)
  872. local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0 * Player_Size, 0.3 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  873. local part = CreatePart(3, Weapon, "Granite", 0, 0, "New Yeller", "Gauntlet Part", VT(1.05*Player_Size,0.05*Player_Size,1.05*Player_Size),false)
  874. local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0 * Player_Size, 0.4 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  875.  
  876. local part = CreatePart(3, Weapon, "Granite", 0, 0, "New Yeller", "Gauntlet Part", VT(1.1*Player_Size,0.8*Player_Size,1.1*Player_Size),false)
  877. local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0 * Player_Size, -0.35 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  878. local part = CreatePart(3, Weapon, "Neon", 0, 0, "New Yeller", "Neon Gauntlet Part", VT(1.1*Player_Size,0.8*Player_Size,1*Player_Size),false)
  879. local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0.05 * Player_Size, -0.375 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  880. local part = CreatePart(3, Weapon, "Granite", 0, 0, "New Yeller", "Gauntlet Part", VT(1.1*Player_Size,0.8*Player_Size,0.3*Player_Size),false)
  881. local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0.1 * Player_Size, -0.4 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  882. local part = CreatePart(3, Weapon, "Granite", 0, 0, "New Yeller", "Gauntlet Part", VT(1.1*Player_Size,0.8*Player_Size,0.3*Player_Size),false)
  883. local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0.1 * Player_Size, -0.4 * Player_Size, 0.33 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  884. local part = CreatePart(3, Weapon, "Granite", 0, 0, "New Yeller", "Gauntlet Part", VT(1.1*Player_Size,0.8*Player_Size,0.3*Player_Size),false)
  885. local weld = CreateWeldOrSnapOrMotor("Weld", part, FIST, part, CF(0.1 * Player_Size, -0.4 * Player_Size, -0.33 * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
  886.  
  887. for _, c in pairs(Weapon:GetChildren()) do
  888. if c.ClassName == "Part" then
  889. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  890. end
  891. end
  892.  
  893. Weapon.Parent = Character
  894.  
  895. Humanoid.Died:connect(function()
  896. ATTACK = true
  897. end)
  898.  
  899. local SKILL1FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.13, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
  900. local SKILL2FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.60, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
  901. local SKILL3FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.365, 0, 0.9, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
  902. local SKILL4FRAME = CreateFrame(WEAPONGUI, 0.5, 2, UD2(0.365, 0, 0.7, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame")
  903.  
  904. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] ITS THE FIRST TIME BAKA", SKILLTEXTCOLOR, 7, "SciFi", 0, 0, 255, "Text 1")
  905. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] FUNNY GRAB", SKILLTEXTCOLOR, 7, "SciFi", 0, 0, 255, "Text 2")
  906. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] TELEPORT", SKILLTEXTCOLOR, 7, "SciFi", 0, 0, 255, "Text 3")
  907. local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[X] THE ULTIMATE PUNCH OF FUN", SKILLTEXTCOLOR, 6, "SciFi", 0, 0, 255, "Text4")
  908.  
  909. --//=================================\\
  910. --|| DAMAGE FUNCTIONS
  911. --\\=================================//
  912.  
  913. function StatLabel(LABELTYPE, CFRAME, TEXT, COLOR)
  914. local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
  915. STATPART.CFrame = CF(CFRAME.p + VT(0, 1.5, 0))
  916. local BODYGYRO = IT("BodyGyro", STATPART)
  917. local BODYPOSITION = IT("BodyPosition", STATPART)
  918. BODYPOSITION.P = 2000
  919. BODYPOSITION.D = 100
  920. BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge)
  921. BODYPOSITION.position = STATPART.Position + VT(MRANDOM(-2, 2), 6, MRANDOM(-2, 2))
  922. game:GetService("Debris"):AddItem(STATPART ,5)
  923. local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
  924. BILLBOARDGUI.Adornee = STATPART
  925. BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
  926. BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
  927. BILLBOARDGUI.AlwaysOnTop = false
  928. local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
  929. TEXTLABEL.BackgroundTransparency = 1
  930. TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
  931. TEXTLABEL.Text = TEXT
  932. TEXTLABEL.Font = "SciFi"
  933. TEXTLABEL.FontSize="Size42"
  934. TEXTLABEL.TextColor3 = COLOR
  935. TEXTLABEL.TextStrokeTransparency = 1
  936. TEXTLABEL.TextScaled = true
  937. TEXTLABEL.TextWrapped = true
  938. coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
  939. if LABELTYPE == "Normal" then
  940. for i = 1, 30 do
  941. Swait()
  942. STATPART.Position = STATPART.Position + VT(0, (15-i)/10 ,0)
  943. TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30)
  944. end
  945. elseif LABELTYPE == "Debuff" then
  946. for i = 1, 30 do
  947. Swait()
  948. STATPART.Position = STATPART.Position - VT(0, i/10 ,0)
  949. TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30)
  950. end
  951. elseif LABELTYPE == "Shock" then
  952. local ORIGIN = STATPART.Position
  953. for i = 1, 30 do
  954. Swait()
  955. STATPART.Position = ORIGIN + VT(MRANDOM(-2,2),MRANDOM(-2,2),MRANDOM(-2,2))
  956. TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/30)
  957. end
  958. end
  959. THEPART.Parent = nil
  960. end),STATPART, BODYPOSITION, TEXTLABEL)
  961. end
  962.  
  963. --//=================================\\
  964. --|| DAMAGING
  965. --\\=================================//
  966.  
  967. function killnearest(position,range,maxstrength,direction)
  968. for i,v in ipairs(workspace:GetChildren()) do
  969. local body = v:GetChildren()
  970. for part = 1, #body do
  971. if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  972. if(body[part].Position - position).Magnitude < range then
  973. if v.ClassName == "Model" then
  974. --v:BreakJoints()
  975. end
  976. local POS = position
  977. coroutine.resume(coroutine.create(function()
  978. body[part].Anchored = true
  979. body[part].Parent = Effects
  980. body[part].CanCollide = true
  981. local SIZE = body[part].Size
  982. body[part].Material = "Neon"
  983. CreateSound("952306739", body[part], 2, MRANDOM(7, 12) / 10)
  984. for i = 1, 75 do
  985. Swait()
  986. body[part].Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100)
  987. body[part].Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2))
  988. end
  989. coroutine.resume(coroutine.create(function()
  990. while true do
  991. Swait()
  992. body[part].Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100)
  993. body[part].Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2))
  994. end
  995. end))
  996. body[part].Anchored = false
  997. body[part].Velocity = direction.lookVector*maxstrength
  998. end))
  999. end
  1000. end
  1001. end
  1002. if v.ClassName == "Part" then
  1003. if v.Anchored == false and (v.Position - position).Magnitude < range then
  1004. local POS = position
  1005. coroutine.resume(coroutine.create(function()
  1006. v.Anchored = true
  1007. v.Parent = Effects
  1008. local SIZE = v.Size
  1009. v.Material = "Neon"
  1010. CreateSound("952306739", v, 2, MRANDOM(7, 12) / 10)
  1011. for i = 1, 75 do
  1012. Swait()
  1013. v.Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100)
  1014. v.Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2))
  1015. end
  1016. coroutine.resume(coroutine.create(function()
  1017. while true do
  1018. Swait()
  1019. v.Color = C3(MRANDOM(0,100)/100,MRANDOM(0,100)/100,MRANDOM(0,100)/100)
  1020. v.Size = VT(SIZE.X+MRANDOM(-2,2),SIZE.Y+MRANDOM(-2,2),SIZE.Z+MRANDOM(-2,2))
  1021. end
  1022. end))
  1023. v.Anchored = false
  1024. v.Velocity = direction.lookVector*maxstrength
  1025. end))
  1026. end
  1027. end
  1028. end
  1029. end
  1030.  
  1031. --//=================================\\
  1032. --|| ATTACK FUNCTIONS AND STUFF
  1033. --\\=================================//
  1034.  
  1035. function AttackTemplate()
  1036. ATTACK = true
  1037. Rooted = false
  1038. for i=0, 1, 0.1 / Animation_Speed do
  1039. Swait()
  1040. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1041. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1042. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1043. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1044. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1045. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1046. end
  1047. ATTACK = false
  1048. Rooted = false
  1049. end
  1050.  
  1051. function DeathAgreement()
  1052. ATTACK = true
  1053. Rooted = false
  1054. local SPEED = Speed
  1055. Speed = 8
  1056. CreateSound("1133791405", RightArm, 10, 1.1)
  1057. for i=0, 4, 0.1 / Animation_Speed do
  1058. Swait()
  1059. turnto(Mouse.Hit.p)
  1060. MagicSphere(VT(1,1,1),15,RightArm.CFrame * CF(MRANDOM(-3,3),MRANDOM(-3,3),MRANDOM(-3,3)),"New Yeller",VT(-1/15,-1/15,-1/15))
  1061. MagicSphere(VT(2,2,2),15,RightArm.CFrame * CF(MRANDOM(-3,3),MRANDOM(-3,3),MRANDOM(-3,3)),"New Yeller",VT(-2/15,-2/15,-2/15))
  1062. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-85)), 0.15 / Animation_Speed)
  1063. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(85)), 0.2 / Animation_Speed)
  1064. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90+(MRANDOM(-45,45)/10)), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 3 / Animation_Speed)
  1065. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-85)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1066. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1067. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1068. end
  1069. for i=0, 0.15, 0.1 / Animation_Speed do
  1070. Swait()
  1071. turnto(Mouse.Hit.p)
  1072. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(65)), 1 / Animation_Speed)
  1073. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(25), RAD(0), RAD(35)), 1 / Animation_Speed)
  1074. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(65)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1075. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-20), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1076. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1077. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1078. end
  1079. local PART = CreatePart(3, Effects, "Neon", 0, 0.8, "New Yeller", "Punch", VT(50,50,50),false)
  1080. PART.CFrame = RootPart.CFrame * CF(0,0,-25)
  1081. PART.Shape = "Ball"
  1082. local bv = Instance.new("BodyVelocity")
  1083. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1084. bv.velocity = RootPart.CFrame.lookVector*600
  1085. bv.Parent = PART
  1086. bv.Name = "PROJECTILEVELOCITY"
  1087. CreateWave(VT(1,5,1),55,RootPart.CFrame * CF(0,0,-6)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,-1,"New Yeller",VT(2.5,0.2,2.5))
  1088. CreateWave(VT(1,5,1),55,RootPart.CFrame * CF(0,0,-6)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,1,"New Yeller",VT(3,0.2,3))
  1089. CreateSwirl(VT(3,5,3),75,RootPart.CFrame * CF(0,0,-15)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,-1,"New Yeller",VT(2,0.6,2))
  1090. CreateSwirl(VT(3,5,3),75,RootPart.CFrame * CF(0,0,-15)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,1,"New Yeller",VT(2.2,0.6,2.2))
  1091. CreateSound("414517163", Effects, 10, MRANDOM(7, 12) / 10)
  1092. coroutine.resume(coroutine.create(function()
  1093. for i = 1, 10 do
  1094. Swait()
  1095. PART.Transparency = PART.Transparency + 0.2/10
  1096. PART.Size = PART.Size + VT(5,5,5)
  1097. killnearest(PART.Position,PART.Size.Y/2+15,100,RootPart.CFrame)
  1098. end
  1099. PART:Destroy()
  1100. end))
  1101. for i=0, 1, 0.1 / Animation_Speed do
  1102. Swait()
  1103. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(15), RAD(0), RAD(95)), 2 / Animation_Speed)
  1104. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(25), RAD(0), RAD(35)), 3 / Animation_Speed)
  1105. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 3 / Animation_Speed)
  1106. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-70), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 3 / Animation_Speed)
  1107. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 3 / Animation_Speed)
  1108. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 3 / Animation_Speed)
  1109. end
  1110. Speed = SPEED
  1111. ATTACK = false
  1112. Rooted = false
  1113. end
  1114.  
  1115. function GrabTime()
  1116. ATTACK = true
  1117. Rooted = false
  1118. local HASGRABBED = false
  1119. local WELD = nil
  1120. local TORS = nil
  1121. local hitting = FIST.Touched:connect(function(hit)
  1122. if hit.Parent:FindFirstChild("Humanoid") then
  1123. if hit.Parent.Humanoid.Health ~= 0 then
  1124. UNANCHOR = false
  1125. TORS = hit.Parent:FindFirstChild("Torso") or hit.Parent:FindFirstChild("UpperTorso")
  1126. TORS.Anchored = true
  1127. TORS.CFrame = RightArm.CFrame * CF(0,-1.15,0) * ANGLES(RAD(90), RAD(0), RAD(0))
  1128. WELD = weldBetween(RightArm,TORS)
  1129. HASGRABBED = true
  1130. Rooted = true
  1131. end
  1132. end
  1133. end)
  1134. for i=0, 1, 0.1 / Animation_Speed do
  1135. Swait()
  1136. if HASGRABBED == true then
  1137. break
  1138. end
  1139. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(25)), 2 / Animation_Speed)
  1140. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 2 / Animation_Speed)
  1141. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1, 0.5, -1) * ANGLES(RAD(90), RAD(0), RAD(-25)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  1142. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  1143. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed)
  1144. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed)
  1145. end
  1146. hitting:disconnect()
  1147. if HASGRABBED == true then
  1148. TORS.Anchored = false
  1149. RootPart.Anchored = true
  1150. for i=0, 2, 0.1 / Animation_Speed do
  1151. Swait()
  1152. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, -1.2) * ANGLES(RAD(65), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1153. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1154. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1155. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1156. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.3, -1) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  1157. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.3, -1) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1158. end
  1159. CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"Pearl",VT(0.5,0.3,0.5))
  1160. CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),true,2,"Pearl",VT(0.6,0.3,0.6))
  1161. local SOUNDPART = CreatePart(3, Effects, "Neon", 0, 1, "New Yeller", "Sound", VT(0,0,0))
  1162. SOUNDPART.CFrame = RootPart.CFrame
  1163. Debris:AddItem(SOUNDPART,5)
  1164. CreateSound("165315045", SOUNDPART, 2, 1)
  1165. for i = 1, 15 do
  1166. Slice(0.1,65,CF(RootPart.Position) * ANGLES(RAD(0), RAD(MRANDOM(-180,180)), RAD(90)),"Pearl", 1 + MRANDOM(1,30)/15)
  1167. end
  1168. for i=0, 2, 0.1 / Animation_Speed do
  1169. Swait()
  1170. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 50000000) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  1171. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1172. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1173. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1174. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  1175. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1176. end
  1177. for i=0, 0.25, 0.1 / Animation_Speed do
  1178. Swait()
  1179. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), 3 / Animation_Speed)
  1180. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 3 / Animation_Speed)
  1181. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 3 / Animation_Speed)
  1182. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 3 / Animation_Speed)
  1183. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1184. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1185. end
  1186. if HITFLOOR ~= nil then
  1187. CreateDebreeRing(HITFLOOR,CF(RootPart.Position)*CF(0,-3,0).p,15,VT(7,7,7),85)
  1188. end
  1189. CreateSound("414517163", Effects, 10, MRANDOM(7, 12) / 10)
  1190. WELD:remove()
  1191. for i = 1, 25 do
  1192. Swait()
  1193. killnearest(RootPart.Position,45,100,Torso.CFrame)
  1194. CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),true,5,"Pearl",VT(0.3,3,0.3))
  1195. CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"New Yeller",VT(1,0.4,1))
  1196. CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),true,5,"New Yeller",VT(2.3,0.3,2.3))
  1197. Slice(0.1,65,CF(RootPart.Position) * ANGLES(RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180))),"Pearl", 1 + MRANDOM(1,30)/5)
  1198. Slice(0.1,65,CF(RightArm.CFrame*CF(0,-1,0).p) * ANGLES(RAD(MRANDOM(-20,20)), RAD(MRANDOM(-180,180)), RAD(MRANDOM(-20,20))),"New Yeller", 1 + MRANDOM(1,30)/15)
  1199. end
  1200. end
  1201. UNANCHOR = true
  1202. ATTACK = false
  1203. Rooted = false
  1204. end
  1205.  
  1206. function MaxSpeed()
  1207. local ORIGIN = RootPart.Position
  1208. CreateWave2(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"Pearl",VT(0.2,3,0.4))
  1209. CreateWave2(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"Pearl",VT(0.2,3.1,0.6))
  1210. local SOUNDPART = CreatePart(3, Effects, "Neon", 0, 1, "New Yeller", "Sound", VT(0,0,0))
  1211. SOUNDPART.CFrame = RootPart.CFrame
  1212. Debris:AddItem(SOUNDPART,5)
  1213. CreateSound("12221984", SOUNDPART, 2, 1)
  1214. RootPart.CFrame = CF(Mouse.Hit.p+VT(0,3,0),VT(ORIGIN.X,Mouse.Hit.p.Y,ORIGIN.Z))
  1215. Swait()
  1216. CreateWave2(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"Pearl",VT(0.2,3,0.4))
  1217. CreateWave2(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),false,2,"Pearl",VT(0.2,3.1,0.6))
  1218. local SOUNDPART = CreatePart(3, Effects, "Neon", 0, 1, "New Yeller", "Sound", VT(0,0,0))
  1219. SOUNDPART.CFrame = RootPart.CFrame
  1220. Debris:AddItem(SOUNDPART,5)
  1221. CreateSound("1295446488", SOUNDPART, 2, 1)
  1222. if MRANDOM(1,8) == 1 then
  1223. ATTACK = true
  1224. Rooted = true
  1225. local FRUITSTABLE = {
  1226. {MeshId = "16190555", TextureId = "16190577", Color = "Teal"},
  1227. {MeshId = "119574562", TextureId = "64374853", Color = "Deep orange"},
  1228. {MeshId = "24394186", TextureId = "24394178", Color = "Ghost grey"}
  1229. }
  1230. local FRUIT = FRUITSTABLE[MRANDOM(1, #FRUITSTABLE)]
  1231. local FRUITMODEL = CreatePart(3, Effects, "Neon", 0, 0, FRUIT.Color, "Fruit", VT(0,0,0),false)
  1232. CreateMesh("SpecialMesh", FRUITMODEL, "FileMesh", FRUIT.MeshId, FRUIT.TextureId, VT(2,2,2), VT(0,0,0))
  1233. FRUITMODEL.CFrame = RightArm.CFrame * CF(0,-1.5,0)
  1234. weldBetween(RightArm,FRUITMODEL)
  1235. for i=0, 4, 0.1 / Animation_Speed do
  1236. Swait()
  1237. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1238. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1239. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(190), RAD(-145)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1240. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1241. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1242. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1243. end
  1244. CreateSound("414517163", RightArm, 10, MRANDOM(7, 12) / 10)
  1245. FRUITMODEL:remove()
  1246. for i = 1, 15 do
  1247. Slice(0.1,15,RightArm.CFrame*CF(0,-1,0) * ANGLES(RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180))),FRUIT.Color, 1 + MRANDOM(1,10)/15)
  1248. end
  1249. for i=0, 0.5, 0.1 / Animation_Speed do
  1250. Swait()
  1251. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1252. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1253. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(190), RAD(-175)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1254. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1255. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1256. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1257. end
  1258. ATTACK = false
  1259. Rooted = false
  1260. end
  1261. end
  1262.  
  1263. function GreenUltimate()
  1264. ATTACK = true
  1265. Rooted = true
  1266. CreateSound("273935922", RightArm, 10, 0.8)
  1267. for i=0, 8, 0.1 / Animation_Speed do
  1268. Swait()
  1269. turnto(Mouse.Hit.p)
  1270. CreateWave(VT(3,1,3),65,CF(RootPart.Position)*CF(0,-3,0),true,2,"New Yeller",VT(0.2,0,0.2))
  1271. Slice(0.1,65,RightArm.CFrame*CF(0,-1,0) * ANGLES(RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180))),"New Yeller", 1.1)
  1272. MagicSphere(VT(0.2,0.2,0.2),15,CF(RightArm.CFrame*CF(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5)).p,RightArm.Position),"New Yeller",VT(0.001,0.001,1),0)
  1273. MagicSphere(VT(0.2,0.2,0.2),15,CF(RightArm.CFrame*CF(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5)).p,RightArm.Position),"New Yeller",VT(0.001,0.001,2),0)
  1274. MagicSphere(VT(1,1,1),15,RightArm.CFrame * CF(MRANDOM(-3,3),MRANDOM(-3,3),MRANDOM(-3,3)),"New Yeller",VT(-1/15,-1/15,-1/15))
  1275. MagicSphere(VT(2,2,2),15,RightArm.CFrame * CF(MRANDOM(-3,3),MRANDOM(-3,3),MRANDOM(-3,3)),"New Yeller",VT(-2/15,-2/15,-2/15))
  1276. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(-85)), 0.15 / Animation_Speed)
  1277. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(85)), 0.2 / Animation_Speed)
  1278. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90+(MRANDOM(-45,45)/10)), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 3 / Animation_Speed)
  1279. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(-85)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1280. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1281. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1282. end
  1283. for i=0, 0.15, 0.1 / Animation_Speed do
  1284. Swait()
  1285. turnto(Mouse.Hit.p)
  1286. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(0), RAD(0), RAD(65)), 1 / Animation_Speed)
  1287. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(25), RAD(0), RAD(35)), 1 / Animation_Speed)
  1288. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(65)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1289. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-20), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1290. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1291. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  1292. end
  1293. MagicSphere(VT(4,4,4),100,RootPart.CFrame * CF(0,0,-6),"Lapis",VT(-0.04,-0.04,-0.04))
  1294. MagicSphere(VT(3.5,3.5,3.5),100,RootPart.CFrame * CF(0,0,-6),"Really black",VT(-0.035,-0.035,-0.035))
  1295. coroutine.resume(coroutine.create(function()
  1296. Swait(100)
  1297. for i = 1, 5 do
  1298. MagicSphere(VT(150,150,150),75,RootPart.CFrame * CF(0,0,-72*i),"New Yeller",VT(-150/(150-(15*i)),-150/(150-(15*i)),-150/(150-(15*i))))
  1299. CreateWave(VT(1,5,1),55,RootPart.CFrame * CF(0,0,-6*i)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,-1,"New Yeller",VT(4.5*i,0.2,4.5*i))
  1300. CreateWave(VT(1,5,1),55,RootPart.CFrame * CF(0,0,-6*i)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,1,"New Yeller",VT(5*i,0.2,5*i))
  1301. CreateSwirl(VT(3,5,3),75,RootPart.CFrame * CF(0,0,-15*i)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,-1,"New Yeller",VT(4*i,0.6,4*i))
  1302. CreateSwirl(VT(3,5,3),75,RootPart.CFrame * CF(0,0,-15*i)*ANGLES(RAD(-90),RAD(0),RAD(0)),true,1,"New Yeller",VT(5.2*i,0.6,5.2*i))
  1303. end
  1304. killnearest(RootPart.CFrame * CF(0,0,-500).p,500,1000,RootPart.CFrame)
  1305. for i = 1, 5 do
  1306. CreateSound("414517163", Effects, 10, MRANDOM(5, 8) / 10)
  1307. CreateSound("414517163", Effects, 10, MRANDOM(5, 8) / 10)
  1308. end
  1309. coroutine.resume(coroutine.create(function()
  1310. for i = 1, 50 do
  1311. Swait()
  1312. for i = 1, 1 do
  1313. Slice(0.1,65,CF(RootPart.Position) * ANGLES(RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180))),"Pearl", 1 + MRANDOM(1,30)/5)
  1314. end
  1315. for i = 1, 2 do
  1316. Slice(0.1,65,CF(RootPart.Position) * ANGLES(RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180)), RAD(MRANDOM(-180,180))),"New Yeller", 1 + MRANDOM(1,30)/3)
  1317. end
  1318. end
  1319. end))
  1320. end))
  1321. for i=0, 4, 0.1 / Animation_Speed do
  1322. Swait()
  1323. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0 * Player_Size, 0 * Player_Size, -0.2 * Player_Size + 0.05 * COS(SINE / 12) * Player_Size) * ANGLES(RAD(15), RAD(0), RAD(95)), 2 / Animation_Speed)
  1324. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0 * Player_Size, 0 * Player_Size, 0 + ((1 * Player_Size) - 1)) * ANGLES(RAD(25), RAD(0), RAD(35)), 3 / Animation_Speed)
  1325. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(90), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 3 / Animation_Speed)
  1326. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5 * Player_Size, 0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-70), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 3 / Animation_Speed)
  1327. RightHip.C0 = Clerp(RightHip.C0, CF(1 * Player_Size, -0.8 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-15), RAD(0), RAD(0)), 3 / Animation_Speed)
  1328. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1 * Player_Size, -1 * Player_Size, -0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 3 / Animation_Speed)
  1329. end
  1330. ATTACK = false
  1331. Rooted = false
  1332. end
  1333.  
  1334. --//=================================\\
  1335. --|| ASSIGN THINGS TO KEYS
  1336. --\\=================================//
  1337.  
  1338. function MouseDown(Mouse)
  1339. if ATTACK == false then
  1340. end
  1341. end
  1342.  
  1343. function MouseUp(Mouse)
  1344. HOLD = false
  1345. end
  1346.  
  1347. function KeyDown(Key)
  1348. KEYHOLD = true
  1349. if Key == "z" and ATTACK == false then
  1350. DeathAgreement()
  1351. end
  1352.  
  1353. if Key == "b" and ATTACK == false then
  1354. GrabTime()
  1355. end
  1356.  
  1357. if Key == "c" and ATTACK == false then
  1358. MaxSpeed()
  1359. end
  1360.  
  1361. if Key == "x" and ATTACK == false then
  1362. GreenUltimate()
  1363. end
  1364.  
  1365. if Key == "p" and ATTACK == false then
  1366. if Speed == 16 then
  1367. Speed = 150
  1368. elseif Speed == 150 then
  1369. Speed = 16
  1370. end
  1371. end
  1372. end
  1373.  
  1374. function KeyUp(Key)
  1375. KEYHOLD = false
  1376. end
  1377.  
  1378. Mouse.Button1Down:connect(function(NEWKEY)
  1379. MouseDown(NEWKEY)
  1380. end)
  1381. Mouse.Button1Up:connect(function(NEWKEY)
  1382. MouseUp(NEWKEY)
  1383. end)
  1384. Mouse.KeyDown:connect(function(NEWKEY)
  1385. KeyDown(NEWKEY)
  1386. end)
  1387. Mouse.KeyUp:connect(function(NEWKEY)
  1388. KeyUp(NEWKEY)
  1389. end)
  1390.  
  1391. --//=================================\\
  1392. --\\=================================//
  1393.  
  1394.  
  1395. function unanchor()
  1396. if UNANCHOR == true then
  1397. g = Character:GetChildren()
  1398. for i = 1, #g do
  1399. if g[i].ClassName == "Part" then
  1400. g[i].Anchored = false
  1401. end
  1402. end
  1403. end
  1404. end
  1405.  
  1406.  
  1407. --//=================================\\
  1408. --|| WRAP THE WHOLE SCRIPT UP
  1409. --\\=================================//
  1410.  
  1411. Humanoid.Changed:connect(function(Jump)
  1412. if Jump == "Jump" and (Disable_Jump == true) then
  1413. Humanoid.Jump = false
  1414. end
  1415. end)
  1416.  
  1417. while true do
  1418. Swait()
  1419. ANIMATE.Parent = nil
  1420. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  1421. IDLEANIMATION:Play()
  1422. SINE = SINE + CHANGE
  1423. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1424. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1425. local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
  1426. HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4 * Player_Size, Character)
  1427. local WALKSPEEDVALUE = 0
  1428. if Speed < 35 then
  1429. WALKSPEEDVALUE = 6
  1430. else
  1431. WALKSPEEDVALUE = 3
  1432. end
  1433. if ANIM == "Walk" and TORSOVELOCITY > 1 and Rooted == false then
  1434. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2)) * Player_Size) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (1) / Animation_Speed)
  1435. Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1436. if Speed < 35 then
  1437. RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(56 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (WALKSPEEDVALUE) / Animation_Speed)
  1438. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(56 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (WALKSPEEDVALUE) / Animation_Speed)
  1439. else
  1440. RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(80 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (WALKSPEEDVALUE) / Animation_Speed)
  1441. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(80 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (WALKSPEEDVALUE) / Animation_Speed)
  1442. end
  1443. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) or Rooted == true then
  1444. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1445. Neck.C1 = Clerp(Neck.C1, CF(0 * Player_Size, -0.5 * Player_Size, 0 * Player_Size) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1446. RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1447. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 1 * Player_Size, 0 * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1448. end
  1449. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1450. ANIM = "Jump"
  1451. if ATTACK == false then
  1452. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1453. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 * Player_Size, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1454. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1455. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1456. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
  1457. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1458. end
  1459. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1460. ANIM = "Fall"
  1461. if ATTACK == false then
  1462. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1463. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1464. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1465. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1466. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
  1467. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
  1468. end
  1469. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1470. ANIM = "Idle"
  1471. if ATTACK == false then
  1472. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1473. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1474. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1475. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1476. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1477. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1478. end
  1479. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil and Rooted == false then
  1480. ANIM = "Walk"
  1481. WALK = WALK + 1 / Animation_Speed
  1482. if WALK >= 15 - (5 * (Humanoid.WalkSpeed / 16 / Player_Size)) then
  1483. WALK = 0
  1484. if WALKINGANIM == true then
  1485. WALKINGANIM = false
  1486. elseif WALKINGANIM == false then
  1487. WALKINGANIM = true
  1488. end
  1489. end
  1490. --RightHip.C1 = Clerp(RightHip.C1, CF(0.5 * Player_Size, 0.875 * Player_Size - 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, -0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1491. --LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5 * Player_Size, 0.875 * Player_Size + 0.125 * SIN(SINE / WALKSPEEDVALUE) * Player_Size, 0.125 * COS(SINE / WALKSPEEDVALUE) * Player_Size) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(60 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1492. if ATTACK == false then
  1493. if Speed < 35 then
  1494. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1495. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 8 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1496. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(30 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1497. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-30 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1498. RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed)
  1499. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed)
  1500. else
  1501. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(15), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1502. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 8 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1503. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(80 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-30 * COS(SINE / WALKSPEEDVALUE))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1504. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-80 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-30 * COS(SINE / WALKSPEEDVALUE))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1505. RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed)
  1506. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed)
  1507. end
  1508. end
  1509. end
  1510. unanchor()
  1511. Humanoid.MaxHealth = "inf"
  1512. Humanoid.Health = "inf"
  1513. if Rooted == false then
  1514. Disable_Jump = false
  1515. Humanoid.WalkSpeed = Speed
  1516. elseif Rooted == true then
  1517. Disable_Jump = true
  1518. Humanoid.WalkSpeed = 0
  1519. end
  1520. local MATHS = {"0","1"}
  1521. Humanoid.Name = MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]..MATHS[MRANDOM(1,#MATHS)]
  1522. Humanoid.PlatformStand = false
  1523. end
  1524.  
  1525. --//=================================\\
  1526. --\\=================================//
  1527.  
  1528.  
  1529.  
  1530.  
  1531.  
  1532. --//====================================================\\--
  1533. --|| END OF SCRIPT
  1534. --\\====================================================//--
Add Comment
Please, Sign In to add comment