Advertisement
Christoffer07700Extr

a

Aug 6th, 2019
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 81.95 KB | None | 0 0
  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. --//=================================\\
  47. --|| USEFUL VALUES
  48. --\\=================================//
  49.  
  50. Animation_Speed = 3
  51. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  52. local Speed = 10
  53. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  54. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  55. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  56. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  57. local DAMAGEMULTIPLIER = 1
  58. local ANIM = "Idle"
  59. local ATTACK = false
  60. local EQUIPPED = false
  61. local HOLD = false
  62. local COMBO = 1
  63. local Rooted = false
  64. local SINE = 0
  65. local KEYHOLD = false
  66. local CHANGE = 2 / Animation_Speed
  67. local WALKINGANIM = false
  68. local VALUE1 = false
  69. local VALUE2 = false
  70. local ROBLOXIDLEANIMATION = IT("Animation")
  71. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  72. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  73. local ATANIM = IT("Animation")
  74. ATANIM.Name = "Attack Animation"
  75. ATANIM.AnimationId = "http://www.roblox.com/asset/?id=74894663"
  76. --ROBLOXIDLEANIMATION.Parent = Humanoid
  77. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  78. WEAPONGUI.Name = "Weapon GUI"
  79. local Weapon = IT("Model")
  80. Weapon.Name = "Adds"
  81. local Effects = IT("Folder", Weapon)
  82. Effects.Name = "Effects"
  83. local ANIMATOR = Humanoid.Animator
  84. local ANIMATE = Character.Animate
  85. local UNANCHOR = true
  86. local PLAYANIMS = true
  87. script.Parent = WEAPONGUI
  88. Character.Archivable = true
  89. local CLONE = Character:Clone()
  90. CLONE.Parent = nil
  91. Character.Archivable = false
  92. local sick = Instance.new("Sound",Torso)
  93. local SIT = IT("BoolValue",Torso)
  94. SIT.Name = "IsThePharaohSitting?"
  95.  
  96. --//=================================\\
  97. --\\=================================//
  98.  
  99.  
  100. --//=================================\\
  101. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  102. --\\=================================//
  103.  
  104. ArtificialHB = Instance.new("BindableEvent", script)
  105. ArtificialHB.Name = "ArtificialHB"
  106.  
  107. script:WaitForChild("ArtificialHB")
  108.  
  109. frame = Frame_Speed
  110. tf = 0
  111. allowframeloss = false
  112. tossremainder = false
  113. lastframe = tick()
  114. script.ArtificialHB:Fire()
  115.  
  116. game:GetService("RunService").Heartbeat:connect(function(s, p)
  117. tf = tf + s
  118. if tf >= frame then
  119. if allowframeloss then
  120. script.ArtificialHB:Fire()
  121. lastframe = tick()
  122. else
  123. for i = 1, math.floor(tf / frame) do
  124. script.ArtificialHB:Fire()
  125. end
  126. lastframe = tick()
  127. end
  128. if tossremainder then
  129. tf = 0
  130. else
  131. tf = tf - frame * math.floor(tf / frame)
  132. end
  133. end
  134. end)
  135.  
  136. --//=================================\\
  137. --\\=================================//
  138.  
  139. --//=================================\\
  140. --|| SOME FUNCTIONS
  141. --\\=================================//
  142.  
  143. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  144. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  145. end
  146.  
  147. function PositiveAngle(NUMBER)
  148. if NUMBER >= 0 then
  149. NUMBER = 0
  150. end
  151. return NUMBER
  152. end
  153.  
  154. function NegativeAngle(NUMBER)
  155. if NUMBER <= 0 then
  156. NUMBER = 0
  157. end
  158. return NUMBER
  159. end
  160.  
  161. function Swait(NUMBER)
  162. if NUMBER == 0 or NUMBER == nil then
  163. ArtificialHB.Event:wait()
  164. else
  165. for i = 1, NUMBER do
  166. ArtificialHB.Event:wait()
  167. end
  168. end
  169. end
  170.  
  171. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  172. local NEWMESH = IT(MESH)
  173. if MESH == "SpecialMesh" then
  174. NEWMESH.MeshType = MESHTYPE
  175. if MESHID ~= "nil" and MESHID ~= "" then
  176. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  177. end
  178. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  179. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  180. end
  181. end
  182. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  183. NEWMESH.Scale = SCALE
  184. NEWMESH.Parent = PARENT
  185. return NEWMESH
  186. end
  187.  
  188. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  189. local NEWPART = IT("Part")
  190. NEWPART.formFactor = FORMFACTOR
  191. NEWPART.Reflectance = REFLECTANCE
  192. NEWPART.Transparency = TRANSPARENCY
  193. NEWPART.CanCollide = false
  194. NEWPART.Locked = true
  195. NEWPART.Anchored = true
  196. if ANCHOR == false then
  197. NEWPART.Anchored = false
  198. end
  199. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  200. NEWPART.Name = NAME
  201. NEWPART.Size = SIZE
  202. NEWPART.Position = Torso.Position
  203. NEWPART.Material = MATERIAL
  204. NEWPART:BreakJoints()
  205. NEWPART.Parent = PARENT
  206. return NEWPART
  207. end
  208.  
  209. local function weldBetween(a, b)
  210. local weldd = Instance.new("ManualWeld")
  211. weldd.Part0 = a
  212. weldd.Part1 = b
  213. weldd.C0 = CFrame.new()
  214. weldd.C1 = b.CFrame:inverse() * a.CFrame
  215. weldd.Parent = a
  216. return weldd
  217. end
  218.  
  219.  
  220. function QuaternionFromCFrame(cf)
  221. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  222. local trace = m00 + m11 + m22
  223. if trace > 0 then
  224. local s = math.sqrt(1 + trace)
  225. local recip = 0.5 / s
  226. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  227. else
  228. local i = 0
  229. if m11 > m00 then
  230. i = 1
  231. end
  232. if m22 > (i == 0 and m00 or m11) then
  233. i = 2
  234. end
  235. if i == 0 then
  236. local s = math.sqrt(m00 - m11 - m22 + 1)
  237. local recip = 0.5 / s
  238. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  239. elseif i == 1 then
  240. local s = math.sqrt(m11 - m22 - m00 + 1)
  241. local recip = 0.5 / s
  242. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  243. elseif i == 2 then
  244. local s = math.sqrt(m22 - m00 - m11 + 1)
  245. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  246. end
  247. end
  248. end
  249.  
  250. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  251. local xs, ys, zs = x + x, y + y, z + z
  252. local wx, wy, wz = w * xs, w * ys, w * zs
  253. local xx = x * xs
  254. local xy = x * ys
  255. local xz = x * zs
  256. local yy = y * ys
  257. local yz = y * zs
  258. local zz = z * zs
  259. 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))
  260. end
  261.  
  262. function QuaternionSlerp(a, b, t)
  263. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  264. local startInterp, finishInterp;
  265. if cosTheta >= 0.0001 then
  266. if (1 - cosTheta) > 0.0001 then
  267. local theta = ACOS(cosTheta)
  268. local invSinTheta = 1 / SIN(theta)
  269. startInterp = SIN((1 - t) * theta) * invSinTheta
  270. finishInterp = SIN(t * theta) * invSinTheta
  271. else
  272. startInterp = 1 - t
  273. finishInterp = t
  274. end
  275. else
  276. if (1 + cosTheta) > 0.0001 then
  277. local theta = ACOS(-cosTheta)
  278. local invSinTheta = 1 / SIN(theta)
  279. startInterp = SIN((t - 1) * theta) * invSinTheta
  280. finishInterp = SIN(t * theta) * invSinTheta
  281. else
  282. startInterp = t - 1
  283. finishInterp = t
  284. end
  285. end
  286. 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
  287. end
  288.  
  289. function Clerp(a, b, t)
  290. local qa = {QuaternionFromCFrame(a)}
  291. local qb = {QuaternionFromCFrame(b)}
  292. local ax, ay, az = a.x, a.y, a.z
  293. local bx, by, bz = b.x, b.y, b.z
  294. local _t = 1 - t
  295. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  296. end
  297.  
  298. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  299. local frame = IT("Frame")
  300. frame.BackgroundTransparency = TRANSPARENCY
  301. frame.BorderSizePixel = BORDERSIZEPIXEL
  302. frame.Position = POSITION
  303. frame.Size = SIZE
  304. frame.BackgroundColor3 = COLOR
  305. frame.BorderColor3 = BORDERCOLOR
  306. frame.Name = NAME
  307. frame.Parent = PARENT
  308. return frame
  309. end
  310.  
  311. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  312. local label = IT("TextLabel")
  313. label.BackgroundTransparency = 1
  314. label.Size = UD2(1, 0, 1, 0)
  315. label.Position = UD2(0, 0, 0, 0)
  316. label.TextColor3 = TEXTCOLOR
  317. label.TextStrokeTransparency = STROKETRANSPARENCY
  318. label.TextTransparency = TRANSPARENCY
  319. label.FontSize = TEXTFONTSIZE
  320. label.Font = TEXTFONT
  321. label.BorderSizePixel = BORDERSIZEPIXEL
  322. label.TextScaled = false
  323. label.Text = TEXT
  324. label.Name = NAME
  325. label.Parent = PARENT
  326. return label
  327. end
  328.  
  329. function NoOutlines(PART)
  330. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  331. end
  332.  
  333. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  334. local NEWWELD = IT(TYPE)
  335. NEWWELD.Part0 = PART0
  336. NEWWELD.Part1 = PART1
  337. NEWWELD.C0 = C0
  338. NEWWELD.C1 = C1
  339. NEWWELD.Parent = PARENT
  340. return NEWWELD
  341. end
  342.  
  343. local S = IT("Sound")
  344. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  345. local NEWSOUND = nil
  346. coroutine.resume(coroutine.create(function()
  347. NEWSOUND = S:Clone()
  348. NEWSOUND.Parent = PARENT
  349. NEWSOUND.Volume = VOLUME
  350. NEWSOUND.Pitch = PITCH
  351. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  352. NEWSOUND:play()
  353. if DOESLOOP == true then
  354. NEWSOUND.Looped = true
  355. else
  356. repeat wait(1) until NEWSOUND.Playing == false
  357. NEWSOUND:remove()
  358. end
  359. end))
  360. return NEWSOUND
  361. end
  362.  
  363. function CFrameFromTopBack(at, top, back)
  364. local right = top:Cross(back)
  365. 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)
  366. end
  367.  
  368. --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})
  369. function WACKYEFFECT(Table)
  370. local TYPE = (Table.EffectType or "Sphere")
  371. local SIZE = (Table.Size or VT(1,1,1))
  372. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  373. local TRANSPARENCY = (Table.Transparency or 0)
  374. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  375. local CFRAME = (Table.CFrame or Torso.CFrame)
  376. local MOVEDIRECTION = (Table.MoveToPos or nil)
  377. local ROTATION1 = (Table.RotationX or 0)
  378. local ROTATION2 = (Table.RotationY or 0)
  379. local ROTATION3 = (Table.RotationZ or 0)
  380. local MATERIAL = (Table.Material or "Neon")
  381. local COLOR = (Table.Color or C3(1,1,1))
  382. local TIME = (Table.Time or 45)
  383. local SOUNDID = (Table.SoundID or nil)
  384. local SOUNDPITCH = (Table.SoundPitch or nil)
  385. local SOUNDVOLUME = (Table.SoundVolume or nil)
  386. coroutine.resume(coroutine.create(function()
  387. local PLAYSSOUND = false
  388. local SOUND = nil
  389. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  390. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  391. PLAYSSOUND = true
  392. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  393. end
  394. EFFECT.Color = COLOR
  395. local MSH = nil
  396. if TYPE == "Sphere" then
  397. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  398. elseif TYPE == "Block" then
  399. MSH = IT("BlockMesh",EFFECT)
  400. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  401. elseif TYPE == "Wave" then
  402. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  403. elseif TYPE == "Ring" then
  404. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  405. elseif TYPE == "Slash" then
  406. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  407. elseif TYPE == "Round Slash" then
  408. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  409. elseif TYPE == "Swirl" then
  410. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  411. elseif TYPE == "Skull" then
  412. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  413. elseif TYPE == "Crystal" then
  414. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  415. end
  416. if MSH ~= nil then
  417. local MOVESPEED = nil
  418. if MOVEDIRECTION ~= nil then
  419. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  420. end
  421. local GROWTH = SIZE - ENDSIZE
  422. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  423. if TYPE == "Block" then
  424. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  425. else
  426. EFFECT.CFrame = CFRAME
  427. end
  428. for LOOP = 1, TIME+1 do
  429. Swait()
  430. MSH.Scale = MSH.Scale - GROWTH/TIME
  431. if TYPE == "Wave" then
  432. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  433. end
  434. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  435. if TYPE == "Block" then
  436. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  437. else
  438. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  439. end
  440. if MOVEDIRECTION ~= nil then
  441. local ORI = EFFECT.Orientation
  442. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  443. EFFECT.Orientation = ORI
  444. end
  445. end
  446. EFFECT.Transparency = 1
  447. if PLAYSSOUND == false then
  448. EFFECT:remove()
  449. else
  450. repeat Swait() until SOUND.Playing == false
  451. EFFECT:remove()
  452. end
  453. else
  454. if PLAYSSOUND == false then
  455. EFFECT:remove()
  456. else
  457. repeat Swait() until SOUND.Playing == false
  458. EFFECT:remove()
  459. end
  460. end
  461. end))
  462. end
  463.  
  464. function MakeForm(PART,TYPE)
  465. if TYPE == "Cyl" then
  466. local MSH = IT("CylinderMesh",PART)
  467. elseif TYPE == "Ball" then
  468. local MSH = IT("SpecialMesh",PART)
  469. MSH.MeshType = "Sphere"
  470. elseif TYPE == "Wedge" then
  471. local MSH = IT("SpecialMesh",PART)
  472. MSH.MeshType = "Wedge"
  473. end
  474. end
  475.  
  476. Debris = game:GetService("Debris")
  477.  
  478. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  479. local DIRECTION = CF(StartPos,EndPos).lookVector
  480. return game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, DIRECTION * Distance), Ignore)
  481. end
  482.  
  483. local FIRECOLOR = C3(1,85/255,0)
  484.  
  485. local Particle = IT("ParticleEmitter",nil)
  486. Particle.Enabled = false
  487. Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.6),NumberSequenceKeypoint.new(1,1)})
  488. Particle.LightEmission = 0.5
  489. Particle.Rate = 500
  490. Particle.Rotation = NumberRange.new(-180, 180)
  491. Particle.RotSpeed = NumberRange.new(-180, 180)
  492. Particle.Texture = "http://www.roblox.com/asset/?id=1460745664"
  493. Particle.Color = ColorSequence.new(FIRECOLOR)
  494.  
  495. --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false})
  496. function ParticleEmitter(Table)
  497. local PRTCL = Particle:Clone()
  498. local Speed = Table.Speed or 5
  499. local Drag = Table.Drag or 0
  500. local Size1 = Table.Size1 or 1
  501. local Size2 = Table.Size2 or 5
  502. local Lifetime1 = Table.Lifetime1 or 1
  503. local Lifetime2 = Table.Lifetime2 or 1.5
  504. local Parent = Table.Parent or Torso
  505. local Emit = Table.Emit or 100
  506. local Offset = Table.Offset or 360
  507. local Accel = Table.Accel or VT(0,0,0)
  508. local Enabled = Table.Enabled or false
  509. PRTCL.Parent = Parent
  510. PRTCL.Size = NumberSequence.new(Size1,Size2)
  511. PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  512. PRTCL.Speed = NumberRange.new(Speed)
  513. PRTCL.VelocitySpread = Offset
  514. PRTCL.Drag = Drag
  515. PRTCL.Acceleration = Accel
  516. if Enabled == false then
  517. PRTCL:Emit(Emit)
  518. Debris:AddItem(PRTCL,Lifetime2)
  519. else
  520. PRTCL.Enabled = true
  521. end
  522. return PRTCL
  523. end
  524.  
  525. function Pheonix(Size)
  526. local PHEONIX = IT("Model",nil)
  527. PHEONIX.Name = "PHEONIX"
  528. local BASEPART = CreatePart(3, PHEONIX, "Neon", 0, 0.5, "Deep orange", "Wyvern Base",VT(0,0,0),false)
  529. CreateWeldOrSnapOrMotor("Weld", RootPart, RootPart, BASEPART, CF(0 , 4*Size, 3*Size), CF(0, 0, 0))
  530. CreateMesh("SpecialMesh", BASEPART, "FileMesh", "90615474", "", VT(1.5,1.5,1.5)*Size, VT(0,0,0))
  531. local RWING = CreatePart(3, PHEONIX, "Neon", 0, 0.5, "Deep orange", "Right Wing", VT(0,0,0),false)
  532. local RWELD = CreateWeldOrSnapOrMotor("Weld", BASEPART, BASEPART, RWING, CF(2*Size , 2*Size, 0.75*Size), CF(-2*Size, 0, 0))
  533. local LWING = CreatePart(3, PHEONIX, "Neon", 0, 0.5, "Deep orange", "Left Wing", VT(0,0,0),false)
  534. local LWELD = CreateWeldOrSnapOrMotor("Weld", BASEPART, BASEPART, LWING, CF(-2*Size , 2*Size, 0.75*Size), CF(2*Size, 0, 0))
  535. CreateMesh("SpecialMesh", RWING, "FileMesh", "90615661", "", VT(1.5,1.5,1.5)*Size, VT(0,0,0))
  536. CreateMesh("SpecialMesh", LWING, "FileMesh", "90615581", "", VT(1.5,1.5,1.5)*Size, VT(0,0,0))
  537. for _, c in pairs(PHEONIX:GetChildren()) do
  538. if c.ClassName == "Part" then
  539. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  540. c.Color = FIRECOLOR
  541. end
  542. end
  543. PHEONIX.Parent = Weapon
  544. return PHEONIX,BASEPART,RWING,LWING,RWELD,LWELD
  545. end
  546.  
  547. function turnto(position)
  548. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  549. end
  550.  
  551. function AddChildrenToTable(FROM,PARENT,DIST,TABLE)
  552. for _, c in pairs(PARENT:GetDescendants()) do
  553. if c.ClassName == "Model" then
  554. if c ~= Character and c:FindFirstChildOfClass("Humanoid") and (c:FindFirstChild("Torso") or c:FindFirstChild("UpperTorso")) then
  555. local HUMANOID = c:FindFirstChildOfClass("Humanoid")
  556. local TORSO = (c:FindFirstChild("Torso") or c:FindFirstChild("UpperTorso"))
  557. if (TORSO.Position - FROM).Magnitude < DIST then
  558. table.insert(TABLE,c)
  559. end
  560. end
  561. end
  562. end
  563. end
  564.  
  565. --//=================================\\
  566. --|| WEAPON CREATION
  567. --\\=================================//
  568.  
  569. Humanoid.DisplayDistanceType = "None"
  570. local naeeym2 = IT("BillboardGui",Character)
  571. naeeym2.AlwaysOnTop = true
  572. naeeym2.Size = UDim2.new(2,35,1,15)
  573. naeeym2.StudsOffset = Vector3.new(0,1.5,0)
  574. naeeym2.MaxDistance = 75
  575. naeeym2.Adornee = Character.Head
  576. naeeym2.Name = "Name"
  577. local tecks2 = IT("TextLabel",naeeym2)
  578. tecks2.BackgroundTransparency = 1
  579. tecks2.TextScaled = true
  580. tecks2.BorderSizePixel = 0
  581. tecks2.Text = "The Pharaoh"
  582. tecks2.Font = "Bodoni"
  583. tecks2.TextSize = 30
  584. tecks2.TextStrokeTransparency = 0
  585. tecks2.TextColor3 = C3(0,0,0)
  586. tecks2.TextStrokeColor3 = C3(188/255, 155/255, 93/255)
  587. tecks2.Size = UDim2.new(1,0,0.5,0)
  588. tecks2.Parent = naeeym2
  589. local top = Instance.new("Shirt")
  590. top.ShirtTemplate = "rbxassetid://182802864"
  591. top.Parent = Character
  592. top.Name = "Cloth"
  593. local bottom = Instance.new("Pants")
  594. bottom.PantsTemplate = "rbxassetid://182802941"
  595. bottom.Parent = Character
  596. bottom.Name = "Cloth"
  597.  
  598. --Head.Transparency = 1
  599. local PRT = CreatePart(3, Character, "Fabric", 0, 0, "Really black", "Hood", VT(1,1,1),false)
  600. PRT.Color = C3(0,0,0)
  601. CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,-0.1,0.05), CF(0, 0, 0))
  602. CreateMesh("SpecialMesh", PRT, "FileMesh", "10661327", "10661334", VT(1,1,1)*1.1, VT(0,0,0))
  603. CreateMesh("SpecialMesh", Head, "FileMesh", "16150909", "16150889", VT(1,1,1), VT(0,0,0))
  604. local Handle = CreatePart(3, Weapon, "Concrete", 0, 0, "Cork", "Staff", VT(0,6,0),false)
  605. MakeForm(Handle,"Cyl")
  606. local Grasp = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, Handle, CF(0,-1,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  607. local Part = CreatePart(3, Weapon, "Concrete", 0, 0, "Cork", "Staff", VT(0.1,1,0.1),false)
  608. MakeForm(Part,"Cyl")
  609. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0,Handle.Size.Y/2,0), CF(0, 0, 0))
  610. local Part = CreatePart(3, Weapon, "Concrete", 0, 0, "Cork", "Staff", VT(0.1,1,0.1),false)
  611. MakeForm(Part,"Cyl")
  612. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0,-Handle.Size.Y/2-1.3,0) * ANGLES(RAD(0), RAD(150), RAD(0)), CF(0, 0, 0))
  613. CreateMesh("SpecialMesh", Part, "FileMesh", "19106648", "19106633", VT(1,1,1)*1.1, VT(0,0,0))
  614. local Eye = CreatePart(3, Weapon, "Concrete", 0, 1, "Cork", "Eye", VT(0,0,0),false)
  615. CreateWeldOrSnapOrMotor("Weld", Handle, Part, Eye, CF(0,Part.Size.Y/2+0.17,-0.05), CF(0, 0, 0))
  616.  
  617. for _, c in pairs(Weapon:GetChildren()) do
  618. if c.ClassName == "Part" then
  619. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  620. end
  621. end
  622.  
  623. local SKILLTEXTCOLOR = C3(188/255, 155/255, 93/255)
  624. local SKILLFONT = "Bodoni"
  625. local SKILLTEXTSIZE = 6
  626.  
  627. Weapon.Parent = Character
  628.  
  629. Humanoid.Died:connect(function()
  630. ATTACK = true
  631. end)
  632.  
  633. local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.23, 0, 0.86, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
  634. local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.50, 0, 0.86, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
  635. local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.23, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
  636. local SKILL4FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.50, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame")
  637. local SKILL5FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.84, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame")
  638.  
  639. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Summon", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 1")
  640. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Warp", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 2")
  641. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Pheonix Glare", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 3")
  642. local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Shade Zone", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 4")
  643. local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Pharaoh's Throne", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 5")
  644.  
  645. --//=================================\\
  646. --|| DAMAGING
  647. --\\=================================//
  648.  
  649. function ApplyDamage(Humanoid,Damage,TorsoPart)
  650. local defence = Instance.new("BoolValue",Humanoid.Parent)
  651. defence.Name = ("HitBy"..Player.Name)
  652. game:GetService("Debris"):AddItem(defence, 0.001)
  653. Damage = Damage * DAMAGEMULTIPLIER
  654. if Humanoid.Health ~= 0 then
  655. local CritChance = MRANDOM(1,100)
  656. if Damage > Humanoid.Health then
  657. Damage = math.ceil(Humanoid.Health)
  658. if Damage == 0 then
  659. Damage = 0.1
  660. end
  661. end
  662. Humanoid.Health = Humanoid.Health - Damage
  663. end
  664. end
  665.  
  666. function ApplyAoE(POSITION,RANGE,MINDMG,MAXDMG,FLING,INSTAKILL)
  667. local CHILDREN = workspace:GetDescendants()
  668. for index, CHILD in pairs(CHILDREN) do
  669. if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
  670. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  671. if HUM then
  672. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  673. if TORSO then
  674. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  675. if INSTAKILL == true then
  676. CHILD:BreakJoints()
  677. else
  678. local DMG = MRANDOM(MINDMG,MAXDMG)
  679. ApplyDamage(HUM,DMG,TORSO)
  680. end
  681. if FLING > 0 then
  682. for _, c in pairs(CHILD:GetChildren()) do
  683. if c:IsA("BasePart") then
  684. local bv = Instance.new("BodyVelocity")
  685. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  686. bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
  687. bv.Parent = c
  688. Debris:AddItem(bv,0.05)
  689. end
  690. end
  691. end
  692. end
  693. end
  694. end
  695. end
  696. end
  697. end
  698.  
  699. --//=================================\\
  700. --|| ATTACK FUNCTIONS AND STUFF
  701. --\\=================================//
  702.  
  703. function Raise()
  704. PLAYANIMS = false
  705. for i=0, 0.3, 0.1 / Animation_Speed do
  706. Swait()
  707. Grasp.C1 = Clerp(Grasp.C1,CF(0, 0, 0) * ANGLES(RAD(45), RAD(0), RAD(45)), 1 / Animation_Speed)
  708. 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)
  709. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-10 - 4 * COS(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  710. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.45, 0) * ANGLES(RAD(150), RAD(7.5), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  711. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(15), RAD(-12 - 6 * COS(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  712. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  713. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  714. end
  715. Rooted = true
  716. WACKYEFFECT({Time = 25, EffectType = "Block", Size = VT(1,1,1)*4, Size2 = VT(0,0,0), Transparency = 1, Transparency2 = 0, CFrame = CF(Eye.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = 743521450, SoundPitch = 1, SoundVolume = 2.5})
  717. WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = VT(1,1,1)*7, Size2 = VT(0,0,0), Transparency = 1, Transparency2 = 0, CFrame = CF(Eye.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  718. WACKYEFFECT({Time = 25, EffectType = "Ring", Size = VT(0,0,0), Size2 = VT(3,3,0), Transparency = 0, Transparency2 = 1, CFrame = CF(Eye.Position) * ANGLES(RAD(90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  719. for i=0, 1, 0.1 / Animation_Speed do
  720. Swait()
  721. Grasp.C1 = Clerp(Grasp.C1,CF(0, 0, 0) * ANGLES(RAD(45), RAD(0), RAD(45)), 1 / Animation_Speed)
  722. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  723. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-10 - 4 * COS(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  724. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.45, 0) * ANGLES(RAD(150), RAD(7.5), RAD(45)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  725. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(15), RAD(-12 - 6 * COS(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  726. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  727. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  728. end
  729. Rooted = false
  730. PLAYANIMS = true
  731. end
  732.  
  733. function Attack()
  734. ATTACK = true
  735. Raise()
  736. coroutine.resume(coroutine.create(function()
  737. end))
  738. ATTACK = false
  739. end
  740.  
  741. function Summon()
  742. ATTACK = true
  743. Raise()
  744. coroutine.resume(coroutine.create(function()
  745. local MINIONS = {}
  746. local HEADMESHES = {{Mesh = 36869983, Texture = 36869975},{Mesh = 63638055, Texture = 63638307}}
  747. local RIGHTARMS = {{Mesh = 63637701, Texture = 63637809},{Mesh = 36780156, Texture = 36780292}}
  748. local LEFTARMS = {{Mesh = 63637682, Texture = 63637809},{Mesh = 36780032, Texture = 36780292}}
  749. local RIGHTLEGS = {{Mesh = 63637711, Texture = 63637809},{Mesh = 36780195, Texture = 36780292}}
  750. local LEFTLEGS = {{Mesh = 63637691, Texture = 63637809},{Mesh = 36780079, Texture = 36780292}}
  751. local TORSOS = {{Mesh = 63637732, Texture = 63637809},{Mesh = 36780113, Texture = 36780292}}
  752. for i = 1, 3 do
  753. Swait()
  754. local MINION = CLONE:Clone()
  755. ANIMATE:Clone().Parent = MINION
  756. MINION.Name = "Mummy"
  757. MINION.Parent = Effects
  758. MINION.Head:ClearAllChildren()
  759. MINION.HumanoidRootPart.Anchored = true
  760. MINION.HumanoidRootPart.CFrame = RootPart.CFrame*CF(MRANDOM(-15,15),-10,MRANDOM(-15,15))
  761. local HITFLOOR = Raycast(MINION.HumanoidRootPart.Position+VT(0,10,0), (CF(MINION.HumanoidRootPart.Position, MINION.HumanoidRootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  762. if HITFLOOR then
  763. MINION.HumanoidRootPart.Color = HITFLOOR.Color
  764. WACKYEFFECT({Time = 25, EffectType = "Crystal", Size = VT(1,0,1), Size2 = VT(0,100,0), Transparency = 1, Transparency2 = 0, CFrame = CF(MINION.HumanoidRootPart.Position), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = 743521450, SoundPitch = 1.5, SoundVolume = 2})
  765. local HEDMESH = HEADMESHES[MRANDOM(1,#HEADMESHES)]
  766. CreateMesh("SpecialMesh", MINION.Head, "FileMesh", HEDMESH.Mesh, HEDMESH.Texture, VT(1,1,1), VT(0,0,0))
  767. ---------
  768. local PACKAGE = IT("CharacterMesh",MINION)
  769. PACKAGE.BodyPart = "RightArm"
  770. local PACKAGESTUFF = RIGHTARMS[MRANDOM(1,2)]
  771. PACKAGE.MeshId = PACKAGESTUFF.Mesh
  772. PACKAGE.OverlayTextureId = PACKAGESTUFF.Texture
  773. ---------
  774. local PACKAGE = IT("CharacterMesh",MINION)
  775. PACKAGE.BodyPart = "LeftArm"
  776. local PACKAGESTUFF = LEFTARMS[MRANDOM(1,2)]
  777. PACKAGE.MeshId = PACKAGESTUFF.Mesh
  778. PACKAGE.OverlayTextureId = PACKAGESTUFF.Texture
  779. ---------
  780. local PACKAGE = IT("CharacterMesh",MINION)
  781. PACKAGE.BodyPart = "RightLeg"
  782. local PACKAGESTUFF = RIGHTLEGS[MRANDOM(1,2)]
  783. PACKAGE.MeshId = PACKAGESTUFF.Mesh
  784. PACKAGE.OverlayTextureId = PACKAGESTUFF.Texture
  785. ---------
  786. local PACKAGE = IT("CharacterMesh",MINION)
  787. PACKAGE.BodyPart = "LeftLeg"
  788. local PACKAGESTUFF = LEFTLEGS[MRANDOM(1,2)]
  789. PACKAGE.MeshId = PACKAGESTUFF.Mesh
  790. PACKAGE.OverlayTextureId = PACKAGESTUFF.Texture
  791. ---------
  792. local PACKAGE = IT("CharacterMesh",MINION)
  793. PACKAGE.BodyPart = "Torso"
  794. local PACKAGESTUFF = TORSOS[MRANDOM(1,2)]
  795. PACKAGE.MeshId = PACKAGESTUFF.Mesh
  796. PACKAGE.OverlayTextureId = PACKAGESTUFF.Texture
  797. ---------
  798. table.insert(MINIONS,MINION)
  799. else
  800. MINION:remove()
  801. end
  802. end
  803. for e = 1, 100 do
  804. Swait()
  805. for i = 1, #MINIONS do
  806. if MINIONS[i] ~= nil then
  807. WACKYEFFECT({Time = 5, EffectType = "Wave", Size = VT(1,2,1), Size2 = VT(8,0,8), Transparency = 0.5, Transparency2 = 1, CFrame = MINIONS[i].HumanoidRootPart.CFrame*CF(0,7.5-(e*0.1),0) * ANGLES(RAD(0), RAD(i*2), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = MINIONS[i].HumanoidRootPart.Color, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  808. MINIONS[i].HumanoidRootPart.CFrame = MINIONS[i].HumanoidRootPart.CFrame * CF(0,0.1,0)
  809. end
  810. end
  811. end
  812. for i = 1, #MINIONS do
  813. if MINIONS[i] ~= nil then
  814. MINIONS[i].HumanoidRootPart.Anchored = false
  815. end
  816. end
  817. for i = 1, #MINIONS do
  818. coroutine.resume(coroutine.create(function()
  819. local SHOUTS = {1158091961,1158091668,1158092150}
  820. local TORSO = MINIONS[i].Torso
  821. local MUMMY = MINIONS[i]
  822. local HUMAN = MINIONS[i].Humanoid
  823. HUMAN.MaxHealth = MRANDOM(20,65)
  824. HUMAN.Health = HUMAN.MaxHealth
  825. HUMAN.Died:connect(function()
  826. CreateSound(SHOUTS[MRANDOM(1,3)], TORSO, 3, 0.5, false)
  827. end)
  828. local findNearestTorso = function(POS)
  829. local list = game.Workspace:GetDescendants()
  830. local torso = nil
  831. local dist = 10000
  832. local temp = nil
  833. local human = nil
  834. local temp2 = nil
  835. for x = 1, #list do
  836. temp2 = list[x]
  837. if (temp2.className == "Model") and (temp2 ~= Character) and (temp2.Parent ~= Effects) then
  838. temp = temp2:findFirstChild("Torso") or temp2:findFirstChild("UpperTorso")
  839. human = temp2:findFirstChild("Humanoid")
  840. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  841. if (temp.Position - POS).magnitude < dist then
  842. torso = temp
  843. dist = (temp.Position - POS).magnitude
  844. end
  845. end
  846. end
  847. end
  848. return torso, dist
  849. end
  850. for i = 1, 60 do
  851. if HUMAN.Health == 0 then
  852. break
  853. end
  854. wait(1)
  855. local target,dist= findNearestTorso(TORSO.Position)
  856. if target then
  857. HUMAN:MoveTo(target.Position)
  858. if dist < 5 then
  859. local ANIM = HUMAN:LoadAnimation(ATANIM)
  860. ANIM:Play()
  861. CreateSound(SHOUTS[MRANDOM(1,3)], TORSO, 1, 1, false)
  862. ApplyAoE(TORSO.CFrame*CF(0,0,-1.2).p,3,5,25,3,false)
  863. end
  864. end
  865. end
  866. TORSO.Parent:BreakJoints()
  867. Debris:AddItem(MUMMY,4)
  868. end))
  869. end
  870. end))
  871. ATTACK = false
  872. end
  873.  
  874. function Warp(Pos)
  875. ATTACK = true
  876. Raise()
  877. PLAYANIMS = false
  878. local SPOT = Pos
  879. if Pos == "Mouse" then
  880. SPOT = Mouse.Hit.p
  881. end
  882. local PLAYPOS = RootPart.Position
  883. Rooted = true
  884. coroutine.resume(coroutine.create(function()
  885. repeat
  886. Swait()
  887. Grasp.C1 = Clerp(Grasp.C1,CF(0, 0, 0) * ANGLES(RAD(45), RAD(0), RAD(45)), 1 / Animation_Speed)
  888. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  889. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-10 - 4 * COS(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  890. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.45, 0) * ANGLES(RAD(150), RAD(7.5), RAD(45)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  891. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(15), RAD(-12 - 6 * COS(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  892. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  893. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  894. until ATTACK == false
  895. PLAYANIMS = true
  896. end))
  897. for i = 1, 10 do
  898. for _, c in pairs(Weapon:GetChildren()) do
  899. if c.ClassName == "Part" then
  900. c.Transparency = c.Transparency + 1/10
  901. end
  902. end
  903. for _, c in pairs(Character:GetChildren()) do
  904. if c.ClassName == "Part" and c ~= RootPart then
  905. c.Transparency = c.Transparency + 1/10
  906. end
  907. end
  908. tecks2.TextTransparency = tecks2.TextTransparency + 1/10
  909. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency + 1/10
  910. WACKYEFFECT({Time = 25, EffectType = "Swirl", Size = VT(1,1,1)*25, Size2 = VT(0,0,0), Transparency = 1, Transparency2 = 0, CFrame = CF(Torso.Position), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = 743521450, SoundPitch = 1.5, SoundVolume = 2})
  911. wait(0.1)
  912. end
  913. CreateSound(743521450, Torso, 5, 0.5, false)
  914. RootPart.CFrame = CF(SPOT+VT(0,15,0),PLAYPOS)
  915. UNANCHOR = false
  916. RootPart.Anchored = true
  917. for i = 1, 10 do
  918. wait(0.04)
  919. WACKYEFFECT({Time = 25, EffectType = "Swirl", Size = VT(0,0,0), Size2 = VT(1,1,1)*25, Transparency = 0, Transparency2 = 1, CFrame = CF(Torso.Position), MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = 1.5, SoundVolume = 2})
  920. for _, c in pairs(Weapon:GetChildren()) do
  921. if c.ClassName == "Part" then
  922. c.Transparency = c.Transparency - 1/10
  923. end
  924. end
  925. for _, c in pairs(Character:GetChildren()) do
  926. if c.ClassName == "Part" and c ~= RootPart then
  927. c.Transparency = c.Transparency - 1/10
  928. end
  929. end
  930. tecks2.TextTransparency = tecks2.TextTransparency - 1/10
  931. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency - 1/10
  932. end
  933. UNANCHOR = true
  934. RootPart.Anchored = false
  935. Rooted = false
  936. ATTACK = false
  937. end
  938.  
  939. function PheonixGlare()
  940. ATTACK = true
  941. Rooted = true
  942. local BURNINGBODIES = {}
  943. local SIZE = 2
  944. if Humanoid.Sit == false then
  945. Raise()
  946. else
  947. PLAYANIMS = false
  948. SIZE = 9
  949. for i=0, 0.3, 0.1 / Animation_Speed do
  950. Swait()
  951. Grasp.C1 = Clerp(Grasp.C1,CF(0, 0, 0) * ANGLES(RAD(45), RAD(0), RAD(45)), 1 / Animation_Speed)
  952. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-10 - 4 * COS(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  953. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.45, 0) * ANGLES(RAD(150), RAD(7.5), RAD(45)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  954. end
  955. WACKYEFFECT({Time = 25, EffectType = "Block", Size = VT(1,1,1)*4, Size2 = VT(0,0,0), Transparency = 1, Transparency2 = 0, CFrame = CF(Eye.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = 743521450, SoundPitch = 1, SoundVolume = 2.5})
  956. WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = VT(1,1,1)*7, Size2 = VT(0,0,0), Transparency = 1, Transparency2 = 0, CFrame = CF(Eye.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  957. WACKYEFFECT({Time = 25, EffectType = "Ring", Size = VT(0,0,0), Size2 = VT(3,3,0), Transparency = 0, Transparency2 = 1, CFrame = CF(Eye.Position) * ANGLES(RAD(90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = SKILLTEXTCOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  958. for i=0, 1, 0.1 / Animation_Speed do
  959. Swait()
  960. Grasp.C1 = Clerp(Grasp.C1,CF(0, 0, 0) * ANGLES(RAD(45), RAD(0), RAD(45)), 1 / Animation_Speed)
  961. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-10 - 4 * COS(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  962. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.45, 0) * ANGLES(RAD(150), RAD(7.5), RAD(45)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  963. end
  964. PLAYANIMS = true
  965. end
  966. Rooted = true
  967. local PHEONIX,WBODY,WRWING,WLWING,RWELD2,LWELD2 = Pheonix(SIZE)
  968. for i=1, 20 do
  969. Swait()
  970. RWELD2.C0 = Clerp(RWELD2.C0, CF(2*(SIZE/2),3*(SIZE/2),0.75*SIZE) * ANGLES(RAD(-25), RAD(65), RAD(0)), 0.1 / Animation_Speed)
  971. LWELD2.C0 = Clerp(LWELD2.C0, CF(-2*(SIZE/2),3*(SIZE/2),0.75*SIZE) * ANGLES(RAD(-25), RAD(-65), RAD(0)), 0.1 / Animation_Speed)
  972. end
  973. for i=1, 65 do
  974. Swait()
  975. RWELD2.C0 = Clerp(RWELD2.C0, CF(2*(SIZE/2),3*(SIZE/2),0.75*SIZE) * ANGLES(RAD(25), RAD(65), RAD(0)), 0.1 / Animation_Speed)
  976. LWELD2.C0 = Clerp(LWELD2.C0, CF(-2*(SIZE/2),3*(SIZE/2),0.75*SIZE) * ANGLES(RAD(25), RAD(-65), RAD(0)), 0.1 / Animation_Speed)
  977. end
  978. for i = 1, 5 do
  979. WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(35,35,35)*(SIZE/2), Transparency = 0, Transparency2 = 1, CFrame = CF(WBODY.Position) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)))*CF(0,0,35*(SIZE/2)), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0.1,0.1,0.1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  980. WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(45,45,45)*(SIZE/2), Transparency = 0, Transparency2 = 1, CFrame = CF(WBODY.Position) * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)))*CF(0,0,35*(SIZE/2)), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = FIRECOLOR, SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  981. end
  982. WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = VT(0,0,0), Size2 = VT(200,200,200)*(SIZE/2), Transparency = 0, Transparency2 = 1, CFrame = CF(WBODY.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = FIRECOLOR, SoundID = 462676772, SoundPitch = 1.2, SoundVolume = 10})
  983. AddChildrenToTable(WBODY.Position,workspace,50*(SIZE/2),BURNINGBODIES)
  984. ApplyAoE(WBODY.Position,50*(SIZE/2),0,0,130,false)
  985. for i=1, 15 do
  986. Swait()
  987. RWELD2.C0 = Clerp(RWELD2.C0, CF(2*(SIZE/2),3*(SIZE/2),0.75*SIZE) * ANGLES(RAD(25), RAD(-65), RAD(0)), 1 / Animation_Speed)
  988. LWELD2.C0 = Clerp(LWELD2.C0, CF(-2*(SIZE/2),3*(SIZE/2),0.75*SIZE) * ANGLES(RAD(25), RAD(65), RAD(0)), 1 / Animation_Speed)
  989. end
  990. coroutine.resume(coroutine.create(function()
  991. wait(1)
  992. for i = 1, 150 do
  993. for i = 1, #BURNINGBODIES do
  994. if BURNINGBODIES[i] ~= nil then
  995. if BURNINGBODIES[i].Name ~= "Mummy" then
  996. local HUM = BURNINGBODIES[i]:FindFirstChildOfClass("Humanoid")
  997. if HUM then
  998. if HUM.Health > 0 then
  999. for _, c in pairs(BURNINGBODIES[i]:GetChildren()) do
  1000. if c:IsA("BasePart") and c.Transparency < 1 then
  1001. ParticleEmitter({Accel = VT(0,25,0), Speed = 2, Drag = 0, Size1 = 0.3, Size2 = 0, Lifetime1 = 1, Lifetime2 = 1.5, Parent = c, Emit = 4, Offset = 360, Enabled = false})
  1002. end
  1003. end
  1004. HUM.Health = HUM.Health - 0.5
  1005. else
  1006. table.remove(BURNINGBODIES,i)
  1007. end
  1008. else
  1009. table.remove(BURNINGBODIES,i)
  1010. end
  1011. else
  1012. for _, c in pairs(BURNINGBODIES[i]:GetChildren()) do
  1013. if c:IsA("BasePart") and c.Transparency < 1 then
  1014. c.Velocity = VT(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5))*5
  1015. ParticleEmitter({Accel = VT(0,25,0), Speed = 2, Drag = 0, Size1 = 0.5, Size2 = 0, Lifetime1 = 1, Lifetime2 = 1.5, Parent = c, Emit = 45, Offset = 360, Enabled = true})
  1016. end
  1017. end
  1018. BURNINGBODIES[i]:BreakJoints()
  1019. table.remove(BURNINGBODIES,i)
  1020. end
  1021. else
  1022. table.remove(BURNINGBODIES,i)
  1023. end
  1024. end
  1025. wait()
  1026. end
  1027. end))
  1028. coroutine.resume(coroutine.create(function()
  1029. for i = 1, 50 do
  1030. Swait()
  1031. WBODY.Transparency = WBODY.Transparency + 0.5/50
  1032. WRWING.Transparency = WBODY.Transparency
  1033. WLWING.Transparency = WBODY.Transparency
  1034. end
  1035. PHEONIX:remove()
  1036. end))
  1037. Rooted = false
  1038. ATTACK = false
  1039. end
  1040.  
  1041. function ShadeZone()
  1042. local HEADMESHES = {{Mesh = 36869983, Texture = 36869975},{Mesh = 63638055, Texture = 63638307}}
  1043. local RIGHTARMS = {{Mesh = 63637701, Texture = 63637809},{Mesh = 36780156, Texture = 36780292}}
  1044. local LEFTARMS = {{Mesh = 63637682, Texture = 63637809},{Mesh = 36780032, Texture = 36780292}}
  1045. local RIGHTLEGS = {{Mesh = 63637711, Texture = 63637809},{Mesh = 36780195, Texture = 36780292}}
  1046. local LEFTLEGS = {{Mesh = 63637691, Texture = 63637809},{Mesh = 36780079, Texture = 36780292}}
  1047. local TORSOS = {{Mesh = 63637732, Texture = 63637809},{Mesh = 36780113, Texture = 36780292}}
  1048. local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 15, Character)
  1049. if HITFLOOR and Effects:FindFirstChild("Shade Zone") == nil then
  1050. ATTACK = true
  1051. local BODIES = {}
  1052. Raise()
  1053. coroutine.resume(coroutine.create(function()
  1054. local ZONE = CreatePart(3, Effects, "Neon", 0, 1, C3(0,0,0), "Shade Zone", VT(45,0,45))
  1055. ZONE.Color = C3(0,0,0)
  1056. MakeForm(ZONE,"Cyl")
  1057. ZONE.CFrame = CF(HITPOS)
  1058. local AURA = CreateSound(1393698948, ZONE, 0, 0.5, true)
  1059. for i =1, 45 do
  1060. Swait()
  1061. AURA.Volume = AURA.Volume + 10/45
  1062. ZONE.Transparency = ZONE.Transparency - 1/45
  1063. ZONE.Size = ZONE.Size + VT(2,0,2)
  1064. end
  1065. local SIZE = ZONE.Size
  1066. for i =1, 400 do
  1067. Swait()
  1068. AddChildrenToTable(ZONE.Position,workspace,ZONE.Size.X/2,BODIES)
  1069. if MRANDOM(1,5) == 1 then
  1070. WACKYEFFECT({Time = 25, EffectType = "Sphere", Size = VT(5,0,5), Size2 = VT(0,135,0), Transparency = 0, Transparency2 = 1, CFrame = CF(ZONE.Position) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0))*CF(0,0,MRANDOM(0,math.ceil(ZONE.Size.X/2.1))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1071. end
  1072. ZONE.Size = SIZE + VT(2 * COS(i / 12),0,2 * COS(i / 12))
  1073. end
  1074. for i =1, 45 do
  1075. Swait()
  1076. AURA.Volume = AURA.Volume - 10/45
  1077. ZONE.Transparency = ZONE.Transparency + 1/45
  1078. ZONE.Size = ZONE.Size - VT(2,0,2)
  1079. end
  1080. ZONE:remove()
  1081. for e = 1, #BODIES do
  1082. Swait()
  1083. if BODIES[e] ~= nil then
  1084. local BOD = BODIES[e]
  1085. for i = 1, 10 do
  1086. for i = 1, #BODIES do
  1087. if (BODIES[i] == BOD and i ~= e) then
  1088. table.remove(BODIES,i)
  1089. end
  1090. end
  1091. end
  1092. coroutine.resume(coroutine.create(function()
  1093. local BODY = BODIES[e]
  1094. local TORSO = BODIES[e]:FindFirstChild("Torso") or BODIES[e]:FindFirstChild("UpperTorso")
  1095. local HUM = BODIES[e]:FindFirstChildOfClass("Humanoid")
  1096. if TORSO and HUM then
  1097. TORSO.Anchored = true
  1098. for i = 1, 15 do
  1099. if HUM.Health > 0 then
  1100. wait(0.1)
  1101. WACKYEFFECT({Time = 15, EffectType = "Block", Size = VT(0,0,0), Size2 = VT(15,15,15), Transparency = 0, Transparency2 = 1, CFrame = CF(TORSO.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(0,0,0), SoundID = 182765513, SoundPitch = MRANDOM(6,8)/10, SoundVolume = 2.5})
  1102. TORSO.CFrame = TORSO.CFrame * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)))
  1103. HUM.Health = HUM.Health - 1.5
  1104. if HUM.Health == 0 then
  1105. local MINION = CLONE:Clone()
  1106. ANIMATE:Clone().Parent = MINION
  1107. MINION.Name = "Mummy"
  1108. MINION.Parent = Effects
  1109. MINION.Head:ClearAllChildren()
  1110. MINION.Torso.CFrame = TORSO.CFrame
  1111. BODY:remove()
  1112. local HEDMESH = HEADMESHES[MRANDOM(1,#HEADMESHES)]
  1113. CreateMesh("SpecialMesh", MINION.Head, "FileMesh", HEDMESH.Mesh, HEDMESH.Texture, VT(1,1,1), VT(0,0,0))
  1114. ---------
  1115. local PACKAGE = IT("CharacterMesh",MINION)
  1116. PACKAGE.BodyPart = "RightArm"
  1117. local PACKAGESTUFF = RIGHTARMS[MRANDOM(1,2)]
  1118. PACKAGE.MeshId = PACKAGESTUFF.Mesh
  1119. PACKAGE.OverlayTextureId = PACKAGESTUFF.Texture
  1120. ---------
  1121. local PACKAGE = IT("CharacterMesh",MINION)
  1122. PACKAGE.BodyPart = "LeftArm"
  1123. local PACKAGESTUFF = LEFTARMS[MRANDOM(1,2)]
  1124. PACKAGE.MeshId = PACKAGESTUFF.Mesh
  1125. PACKAGE.OverlayTextureId = PACKAGESTUFF.Texture
  1126. ---------
  1127. local PACKAGE = IT("CharacterMesh",MINION)
  1128. PACKAGE.BodyPart = "RightLeg"
  1129. local PACKAGESTUFF = RIGHTLEGS[MRANDOM(1,2)]
  1130. PACKAGE.MeshId = PACKAGESTUFF.Mesh
  1131. PACKAGE.OverlayTextureId = PACKAGESTUFF.Texture
  1132. ---------
  1133. local PACKAGE = IT("CharacterMesh",MINION)
  1134. PACKAGE.BodyPart = "LeftLeg"
  1135. local PACKAGESTUFF = LEFTLEGS[MRANDOM(1,2)]
  1136. PACKAGE.MeshId = PACKAGESTUFF.Mesh
  1137. PACKAGE.OverlayTextureId = PACKAGESTUFF.Texture
  1138. ---------
  1139. local PACKAGE = IT("CharacterMesh",MINION)
  1140. PACKAGE.BodyPart = "Torso"
  1141. local PACKAGESTUFF = TORSOS[MRANDOM(1,2)]
  1142. PACKAGE.MeshId = PACKAGESTUFF.Mesh
  1143. PACKAGE.OverlayTextureId = PACKAGESTUFF.Texture
  1144. ---------
  1145. coroutine.resume(coroutine.create(function()
  1146. local SHOUTS = {1158091961,1158091668,1158092150}
  1147. local TORSO = MINION.Torso
  1148. local MUMMY = MINION
  1149. local HUMAN = MINION.Humanoid
  1150. HUMAN.MaxHealth = MRANDOM(20,65)
  1151. HUMAN.Health = HUMAN.MaxHealth
  1152. HUMAN.Died:connect(function()
  1153. CreateSound(SHOUTS[MRANDOM(1,3)], TORSO, 3, 0.5, false)
  1154. end)
  1155. local findNearestTorso = function(POS)
  1156. local list = game.Workspace:GetDescendants()
  1157. local torso = nil
  1158. local dist = 10000
  1159. local temp = nil
  1160. local human = nil
  1161. local temp2 = nil
  1162. for x = 1, #list do
  1163. temp2 = list[x]
  1164. if (temp2.className == "Model") and (temp2 ~= Character) and (temp2.Parent ~= Effects) then
  1165. temp = temp2:findFirstChild("Torso") or temp2:findFirstChild("UpperTorso")
  1166. human = temp2:findFirstChild("Humanoid")
  1167. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  1168. if (temp.Position - POS).magnitude < dist then
  1169. torso = temp
  1170. dist = (temp.Position - POS).magnitude
  1171. end
  1172. end
  1173. end
  1174. end
  1175. return torso, dist
  1176. end
  1177. for i = 1, 30 do
  1178. if HUMAN.Health == 0 then
  1179. break
  1180. end
  1181. wait(1)
  1182. local target,dist= findNearestTorso(TORSO.Position)
  1183. if target then
  1184. HUMAN:MoveTo(target.Position)
  1185. if dist < 5 then
  1186. local ANIM = HUMAN:LoadAnimation(ATANIM)
  1187. ANIM:Play()
  1188. CreateSound(SHOUTS[MRANDOM(1,3)], TORSO, 1, 1, false)
  1189. ApplyAoE(TORSO.CFrame*CF(0,0,-1.2).p,3,5,25,3,false)
  1190. end
  1191. end
  1192. end
  1193. TORSO.Parent:BreakJoints()
  1194. Debris:AddItem(MUMMY,4)
  1195. end))
  1196. break
  1197. end
  1198. end
  1199. end
  1200. if TORSO then
  1201. TORSO.Anchored = false
  1202. end
  1203. end
  1204. end))
  1205. end
  1206. end
  1207. end))
  1208. ATTACK = false
  1209. end
  1210. end
  1211.  
  1212. function PharaohsThrone()
  1213. local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  1214. if HITFLOOR then
  1215. ATTACK = true
  1216. Raise()
  1217. coroutine.resume(coroutine.create(function()
  1218. local PYRAMID = IT("Model")
  1219. PYRAMID.Name = "Pyramid"
  1220. local BASEPART = CreatePart(3, PYRAMID, "Concrete", 0, 0, "Wheat", "Pyramid", VT(100,1,100))
  1221. local FIREPART = CreatePart(3, Effects, "Neon", 0, 1, "Wheat", "Pyramid", VT(110,1,110))
  1222. FIREPART.Touched:Connect(function(hit)
  1223. if FIREPART.Transparency ~= 1 then
  1224. if hit.Parent:FindFirstChildOfClass("Humanoid") then
  1225. if hit.Parent.Name == "Mummy" then
  1226. hit.Parent:BreakJoints()
  1227. else
  1228. hit.Parent:FindFirstChildOfClass("Humanoid").Health = hit.Parent:FindFirstChildOfClass("Humanoid").Health - 25
  1229. end
  1230. end
  1231. end
  1232. end)
  1233. ------
  1234. local PILLAR = CreatePart(3, PYRAMID, "Concrete", 0, 0, "Wheat", "Pyramid", VT(5,25,5))
  1235. MakeForm(PILLAR,"Cyl")
  1236. PILLAR.CFrame = BASEPART.CFrame*CF(25,25,25)
  1237. local PILLARTOP = CreatePart(3, PYRAMID, "Concrete", 0, 0, "Wheat", "Pyramid", VT(6,4,6))
  1238. MakeForm(PILLARTOP,"Cyl")
  1239. PILLARTOP.CFrame = PILLAR.CFrame*CF(0,12.5,0)
  1240. local COAL = CreatePart(3, PYRAMID, "Pebble", 0, 0, "Black", "Pyramid", VT(2,2,2))
  1241. COAL.CFrame = PILLARTOP.CFrame*CF(0,PILLARTOP.Size.Y/2,0)
  1242. local FIRE = ParticleEmitter({Accel = VT(0,15,0), Speed = 3, Drag = 0, Size1 = 2, Size2 = 0, Lifetime1 = 1, Lifetime2 = 2, Parent = COAL, Emit = 45, Offset = 360, Enabled = true})
  1243. FIRE.LockedToPart = true
  1244. ------
  1245. local PILLAR = CreatePart(3, PYRAMID, "Concrete", 0, 0, "Wheat", "Pyramid", VT(5,25,5))
  1246. MakeForm(PILLAR,"Cyl")
  1247. PILLAR.CFrame = BASEPART.CFrame*CF(-25,25,25)
  1248. local PILLARTOP = CreatePart(3, PYRAMID, "Concrete", 0, 0, "Wheat", "Pyramid", VT(6,4,6))
  1249. MakeForm(PILLARTOP,"Cyl")
  1250. PILLARTOP.CFrame = PILLAR.CFrame*CF(0,12.5,0)
  1251. local COAL = CreatePart(3, PYRAMID, "Pebble", 0, 0, "Black", "Pyramid", VT(2,2,2))
  1252. COAL.CFrame = PILLARTOP.CFrame*CF(0,PILLARTOP.Size.Y/2,0)
  1253. local FIRE = ParticleEmitter({Accel = VT(0,15,0), Speed = 3, Drag = 0, Size1 = 2, Size2 = 0, Lifetime1 = 1, Lifetime2 = 2, Parent = COAL, Emit = 45, Offset = 360, Enabled = true})
  1254. FIRE.LockedToPart = true
  1255. ------
  1256. local PILLAR = CreatePart(3, PYRAMID, "Concrete", 0, 0, "Wheat", "Pyramid", VT(5,25,5))
  1257. MakeForm(PILLAR,"Cyl")
  1258. PILLAR.CFrame = BASEPART.CFrame*CF(25,25,-25)
  1259. local PILLARTOP = CreatePart(3, PYRAMID, "Concrete", 0, 0, "Wheat", "Pyramid", VT(6,4,6))
  1260. MakeForm(PILLARTOP,"Cyl")
  1261. PILLARTOP.CFrame = PILLAR.CFrame*CF(0,12.5,0)
  1262. local COAL = CreatePart(3, PYRAMID, "Pebble", 0, 0, "Black", "Pyramid", VT(2,2,2))
  1263. COAL.CFrame = PILLARTOP.CFrame*CF(0,PILLARTOP.Size.Y/2,0)
  1264. local FIRE = ParticleEmitter({Accel = VT(0,15,0), Speed = 3, Drag = 0, Size1 = 2, Size2 = 0, Lifetime1 = 1, Lifetime2 = 2, Parent = COAL, Emit = 45, Offset = 360, Enabled = true})
  1265. FIRE.LockedToPart = true
  1266. ------
  1267. local PILLAR = CreatePart(3, PYRAMID, "Concrete", 0, 0, "Wheat", "Pyramid", VT(5,25,5))
  1268. MakeForm(PILLAR,"Cyl")
  1269. PILLAR.CFrame = BASEPART.CFrame*CF(-25,25,-25)
  1270. local PILLARTOP = CreatePart(3, PYRAMID, "Concrete", 0, 0, "Wheat", "Pyramid", VT(6,4,6))
  1271. MakeForm(PILLARTOP,"Cyl")
  1272. PILLARTOP.CFrame = PILLAR.CFrame*CF(0,12.5,0)
  1273. local COAL = CreatePart(3, PYRAMID, "Pebble", 0, 0, "Black", "Pyramid", VT(2,2,2))
  1274. COAL.CFrame = PILLARTOP.CFrame*CF(0,PILLARTOP.Size.Y/2,0)
  1275. local FIRE = ParticleEmitter({Accel = VT(0,15,0), Speed = 3, Drag = 0, Size1 = 2, Size2 = 0, Lifetime1 = 1, Lifetime2 = 2, Parent = COAL, Emit = 45, Offset = 360, Enabled = true})
  1276. FIRE.LockedToPart = true
  1277. ------
  1278. FIREPART.Color = FIRECOLOR
  1279. FIREPART.CFrame = RootPart.CFrame*CF(0,-3.3,65)
  1280. local FIRE = ParticleEmitter({Accel = VT(0,15,0), Speed = 3, Drag = 0, Size1 = 2, Size2 = 0, Lifetime1 = 1, Lifetime2 = 2, Parent = FIREPART, Emit = 45, Offset = 360, Enabled = true})
  1281. local LASTPART = nil
  1282. for i = 1, 35 do
  1283. local PART = CreatePart(3, PYRAMID, "Concrete", 0, 0, "Wheat", "Pyramid", VT(100-i*2,1,100-i*2))
  1284. PART.CFrame = BASEPART.CFrame*CF(0,i,0)
  1285. LASTPART = PART
  1286. local PART = CreatePart(3, PYRAMID, "Marble", 0, 0, "Cork", "Pyramid", VT(5,1.1,100.1-i*2))
  1287. PART.CFrame = BASEPART.CFrame*CF(0,i,0)
  1288. local PART = CreatePart(3, PYRAMID, "Marble", 0, 0, "Cork", "Pyramid", VT(100.1-i*2,1.1,5))
  1289. PART.CFrame = BASEPART.CFrame*CF(0,i,0)
  1290. local PART = CreatePart(3, PYRAMID, "Granite", 0, 0, "Cork", "Pyramid", VT(7,1.05,100.05-i*2))
  1291. PART.CFrame = BASEPART.CFrame*CF(0,i,0)
  1292. local PART = CreatePart(3, PYRAMID, "Granite", 0, 0, "Cork", "Pyramid", VT(100.05-i*2,1.05,7))
  1293. PART.CFrame = BASEPART.CFrame*CF(0,i,0)
  1294. end
  1295. local PART = CreatePart(3, PYRAMID, "Marble", 0, 0, "Cork", "Pyramid", VT(20,0.1,20))
  1296. PART.CFrame = LASTPART.CFrame*CF(0,LASTPART.Size.Y/2,0)
  1297. FIRE.Rate = 999
  1298. local CHAIR1 = CreatePart(3, PYRAMID, "Concrete", 0, 0, "Dark stone grey", "Throne", VT(7,1,7))
  1299. CHAIR1.CFrame = BASEPART.CFrame*CF(0,36,0)
  1300. local CHAIR2 = CreatePart(3, PYRAMID, "Concrete", 0, 0, "Dark stone grey", "Throne", VT(5,1,5))
  1301. CHAIR2.CFrame = CHAIR1.CFrame*CF(0,1,0)
  1302. local CHAIR3 = CreatePart(3, PYRAMID, "Concrete", 0, 0, "Mid gray", "Throne", VT(3,1,3))
  1303. CHAIR3.CFrame = CHAIR2.CFrame*CF(0,1,0)
  1304. local SEAT = IT("Seat",PYRAMID)
  1305. SEAT.Size = VT(2,0.2,2)
  1306. SEAT.Material = "Concrete"
  1307. SEAT.Anchored = true
  1308. SEAT.BrickColor = BRICKC"Dark orange"
  1309. SEAT.CFrame = CHAIR3.CFrame*CF(0,0.55,-0.5)
  1310. local CHAIR4 = CreatePart(3, PYRAMID, "Concrete", 0, 0, "Mid gray", "Throne", VT(3,5,1))
  1311. CHAIR4.CFrame = CHAIR3.CFrame*CF(0,3,1)
  1312. local CHAIR5 = CreatePart(3, PYRAMID, "Concrete", 0, 0, "Dark orange", "Throne", VT(2,4.7,1))
  1313. CHAIR5.CFrame = CHAIR4.CFrame*CF(0,0,-0.1)
  1314. local CHAIR6 = CreatePart(3, PYRAMID, "Concrete", 0, 0, "Mid gray", "Throne", VT(0.5,2,2))
  1315. CHAIR6.CFrame = CHAIR3.CFrame*CF(1.5,0.75,0)
  1316. local CHAIR7 = CreatePart(3, PYRAMID, "Concrete", 0, 0, "Mid gray", "Throne", VT(0.5,2,2))
  1317. CHAIR7.CFrame = CHAIR3.CFrame*CF(-1.5,0.75,0)
  1318. PYRAMID.PrimaryPart = BASEPART
  1319. PYRAMID:SetPrimaryPartCFrame(RootPart.CFrame*CF(0,-50,65))
  1320. PYRAMID.Parent = Weapon
  1321. for i = 1, 25 do
  1322. Swait()
  1323. FIREPART.Transparency = FIREPART.Transparency - 1/25
  1324. end
  1325. for _, c in pairs(PYRAMID:GetChildren()) do
  1326. if c:IsA("BasePart") then
  1327. c.CanCollide = true
  1328. end
  1329. end
  1330. local RESET = PYRAMID.Changed:Connect(function()
  1331. PYRAMID.Parent = workspace
  1332. end)
  1333. CreateSound(130972023, BASEPART, 10, 0.8, false)
  1334. for i = 1, 46*4 do
  1335. Swait()
  1336. PYRAMID:SetPrimaryPartCFrame(BASEPART.CFrame*CF(0,0.25,0))
  1337. end
  1338. for i = 1, 25 do
  1339. Swait()
  1340. FIREPART.Transparency = FIREPART.Transparency + 1/25
  1341. end
  1342. FIRE.Enabled = false
  1343. local SINKING = false
  1344. SIT.Changed:Connect(function()
  1345. if SIT.Value == false and SINKING == false then
  1346. SINKING = true
  1347. local PRT = CreatePart(3, PYRAMID, "Concrete", 0, 0, "Dark orange", "Throne", VT(2,0.2,2))
  1348. PRT.CFrame = SEAT.CFrame
  1349. SEAT:remove()
  1350. wait(1)
  1351. FIRE.Enabled = true
  1352. for i = 1, 25 do
  1353. Swait()
  1354. FIREPART.Transparency = FIREPART.Transparency - 1/25
  1355. end
  1356. for i = 1, 46*4 do
  1357. Swait()
  1358. FIREPART.Size = FIREPART.Size - VT(0.003*i,0,0.003*i)
  1359. PYRAMID:SetPrimaryPartCFrame(BASEPART.CFrame*CF(0,-0.25,0))
  1360. end
  1361. for i = 1, 25 do
  1362. Swait()
  1363. FIREPART.Size = FIREPART.Size - VT((0.003*i)*45,0,(0.003*i)*45)
  1364. FIREPART.Transparency = FIREPART.Transparency + 1/25
  1365. end
  1366. FIRE.Enabled = false
  1367. Debris:AddItem(FIREPART,5)
  1368. RESET:disconnect()
  1369. PYRAMID:remove()
  1370. end
  1371. end)
  1372. end))
  1373. ATTACK = false
  1374. end
  1375. end
  1376.  
  1377. function Taunt()
  1378. ATTACK = true
  1379. Rooted = false
  1380. CreateSound(1546451566, Head, 7, 1, false)
  1381. for i=0, 3.5, 0.1 / Animation_Speed do
  1382. Swait()
  1383. Grasp.C1 = Clerp(Grasp.C1,CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1384. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0 - 0.15 * COS(SINE / 12), 0 + 0.1 * COS(SINE / 2)) * ANGLES(RAD(3.5 * COS(SINE / 12)), RAD(0), RAD(-35)), 1 / Animation_Speed)
  1385. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-26 + 5.5 * SIN(SINE / 4)), RAD(-25 + 6.5 * COS(SINE / 4)), RAD(35)), 1 / Animation_Speed)
  1386. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 - 0.25 * COS(SINE / 12), 0.45 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(90), RAD(7.5 * COS(SINE / 12)), RAD(45 - 7.5 * COS(SINE / 12))) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1387. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.0, 0.55, -0.6) * ANGLES(RAD(170), RAD(MRANDOM(-4,4)), RAD(60)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
  1388. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1389. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1390. end
  1391. ATTACK = false
  1392. Rooted = false
  1393. end
  1394.  
  1395. --//=================================\\
  1396. --|| ASSIGN THINGS TO KEYS
  1397. --\\=================================//
  1398.  
  1399. function MouseDown(Mouse)
  1400. if ATTACK == false then
  1401. end
  1402. end
  1403.  
  1404. function MouseUp(Mouse)
  1405. HOLD = false
  1406. end
  1407.  
  1408. function KeyDown(Key)
  1409. KEYHOLD = true
  1410. if Humanoid.Sit == false then
  1411. if Key == "z" and ATTACK == false then
  1412. Summon()
  1413. end
  1414.  
  1415. if Key == "b" and ATTACK == false then
  1416. if Weapon:FindFirstChild("Pyramid") == nil then
  1417. Warp("Mouse")
  1418. else
  1419. if Weapon.Pyramid:FindFirstChild("Seat") then
  1420. Warp(Weapon.Pyramid.Seat.Position+VT(0,5,0))
  1421. end
  1422. end
  1423. end
  1424.  
  1425. if Key == "v" and ATTACK == false then
  1426. ShadeZone()
  1427. end
  1428.  
  1429. if Key == "t" and ATTACK == false then
  1430. Taunt()
  1431. end
  1432.  
  1433. if Key == "x" and ATTACK == false then
  1434. if Weapon:FindFirstChild("Pyramid") == nil then
  1435. PharaohsThrone()
  1436. else
  1437. SIT.Value = true
  1438. end
  1439. end
  1440. end
  1441.  
  1442. if Key == "c" and ATTACK == false then
  1443. PheonixGlare()
  1444. end
  1445. end
  1446.  
  1447. function KeyUp(Key)
  1448. KEYHOLD = false
  1449. end
  1450.  
  1451. Mouse.Button1Down:connect(function(NEWKEY)
  1452. MouseDown(NEWKEY)
  1453. end)
  1454. Mouse.Button1Up:connect(function(NEWKEY)
  1455. MouseUp(NEWKEY)
  1456. end)
  1457. Mouse.KeyDown:connect(function(NEWKEY)
  1458. KeyDown(NEWKEY)
  1459. end)
  1460. Mouse.KeyUp:connect(function(NEWKEY)
  1461. KeyUp(NEWKEY)
  1462. end)
  1463.  
  1464. --//=================================\\
  1465. --\\=================================//
  1466.  
  1467.  
  1468. function unanchor()
  1469. if UNANCHOR == true then
  1470. RootPart.Anchored = false
  1471. end
  1472. g = Character:GetChildren()
  1473. for i = 1, #g do
  1474. if g[i].ClassName == "Part" and g[i] ~= RootPart then
  1475. g[i].Anchored = false
  1476. end
  1477. end
  1478. g = Weapon:GetChildren()
  1479. for i = 1, #g do
  1480. if g[i].ClassName == "Part" then
  1481. g[i].Anchored = false
  1482. end
  1483. end
  1484. end
  1485.  
  1486.  
  1487. --//=================================\\
  1488. --|| WRAP THE WHOLE SCRIPT UP
  1489. --\\=================================//
  1490.  
  1491. Humanoid.Changed:connect(function(Jump)
  1492. if Jump == "Jump" and (Disable_Jump == true) then
  1493. Humanoid.Jump = false
  1494. end
  1495. end)
  1496.  
  1497. while true do
  1498. Swait()
  1499. script.Parent = WEAPONGUI
  1500. ANIMATE.Parent = nil
  1501. if Humanoid then
  1502. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  1503. IDLEANIMATION:Play()
  1504. end
  1505. SINE = SINE + CHANGE
  1506. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1507. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1508. Ignore = {Torso,RootPart,RightLeg,LeftLeg,RightLeg,Head,RightArm,LeftArm,PRT}
  1509. local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
  1510. local HITFLOOR,HITPOS = CastProperRay(RootPart.Position, RootPart.Position-VT(0,15,0), 4, Ignore)
  1511. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  1512. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  1513. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1514. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * 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)
  1515. RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1516. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ -0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
  1517. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  1518. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1519. Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1520. RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1521. LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1522. end
  1523. if Humanoid.Sit == false then
  1524. SIT.Value = false
  1525. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  1526. ANIM = "Jump"
  1527. if PLAYANIMS == true then
  1528. Grasp.C1 = Clerp(Grasp.C1,CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1529. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1530. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1531. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1532. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1533. 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)
  1534. 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)
  1535. end
  1536. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  1537. ANIM = "Fall"
  1538. if PLAYANIMS == true then
  1539. Grasp.C1 = Clerp(Grasp.C1,CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1540. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1541. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  1542. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  1543. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  1544. 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)
  1545. 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)
  1546. end
  1547. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  1548. ANIM = "Idle"
  1549. if PLAYANIMS == true then
  1550. Grasp.C1 = Clerp(Grasp.C1,CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1551. 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)
  1552. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-8 - 4 * COS(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1553. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5 - 0.25 * COS(SINE / 12), 0.45 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(90), RAD(7.5 * COS(SINE / 12)), RAD(45 - 7.5 * COS(SINE / 12))) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
  1554. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(15), RAD(-12 - 6 * COS(SINE / 12))) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
  1555. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1556. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
  1557. end
  1558. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  1559. ANIM = "Walk"
  1560. if PLAYANIMS == true then
  1561. Grasp.C1 = Clerp(Grasp.C1,CF(0, 0+0.35 * COS(SINE / WALKSPEEDVALUE), 0) * ANGLES(RAD(0), RAD(0), RAD(-20 * COS(SINE / WALKSPEEDVALUE / 2))), 0.5 / Animation_Speed)
  1562. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1563. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1564. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.65-0.35 * COS(SINE / WALKSPEEDVALUE), 0) * ANGLES(RAD(90-20 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 0.35 / Animation_Speed)
  1565. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE)), RAD(15), RAD(-5)) * LEFTSHOULDERC0, 0.35 / Animation_Speed)
  1566. RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed)
  1567. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-75), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed)
  1568. end
  1569. end
  1570. else
  1571. SIT.Value = true
  1572. if PLAYANIMS == true then
  1573. Grasp.C1 = Clerp(Grasp.C1,CF(0, 0.85, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  1574. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.5 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
  1575. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-3 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 2 / Animation_Speed)
  1576. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(90), RAD(0), RAD(35)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
  1577. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 - 0.05 * COS(SINE / 12), 0.3) * ANGLES(RAD(90), RAD(0), RAD(5)) * LEFTSHOULDERC0, 2 / Animation_Speed)
  1578. RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.35 - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(25), RAD(65), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 2 / Animation_Speed)
  1579. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.35 - 0.05 * COS(SINE / 12), -0.5) * ANGLES(RAD(25), RAD(-65), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 2 / Animation_Speed)
  1580. end
  1581. end
  1582. unanchor()
  1583. Humanoid.MaxHealth = "inf"
  1584. Humanoid.Health = "inf"
  1585. if Rooted == false then
  1586. Disable_Jump = false
  1587. Humanoid.WalkSpeed = Speed
  1588. elseif Rooted == true then
  1589. Disable_Jump = true
  1590. Humanoid.WalkSpeed = 0
  1591. end
  1592. for _, c in pairs(Character:GetChildren()) do
  1593. if c.ClassName == "Part" and c.Name ~= "Eye" then
  1594. c.Material = "Neon"
  1595. if c:FindFirstChildOfClass("ParticleEmitter") then
  1596. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  1597. end
  1598. c.Color = C3(0,0,0)
  1599. if c == Head then
  1600. if c:FindFirstChild("face") then
  1601. c.face:remove()
  1602. end
  1603. end
  1604. elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.Name == "Body Colors" then
  1605. c:remove()
  1606. elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then
  1607. c:remove()
  1608. end
  1609. end
  1610. if sick.Parent ~= Torso then
  1611. sick = Instance.new("Sound")
  1612. end
  1613. sick.SoundId = "rbxassetid://890276873"
  1614. sick.Looped = true
  1615. sick.Pitch = 1
  1616. sick.Volume = 4
  1617. sick.Parent = Torso
  1618. sick:Resume()
  1619. Humanoid.Name = "Pharaoh"
  1620. end
  1621.  
  1622. --//=================================\\
  1623. --\\=================================//
  1624.  
  1625.  
  1626.  
  1627.  
  1628.  
  1629. --//====================================================\\--
  1630. --|| END OF SCRIPT
  1631. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement