Advertisement
memberhero

The Golden Punch

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