Advertisement
num6456

Untitled

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