Advertisement
Zebula_The_Scripter

Void Gloves Second Try.

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