Advertisement
Dark_EccentricYT

Untitled

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