Advertisement
DarkScriptZEditors

Evii

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