Advertisement
Deyer

Pharaoh

Mar 4th, 2023
19
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 91.25 KB | None | 0 0
  1.  
  2. game.Players.LocalPlayer.Character["Hat1"].Handle.Mesh:Destroy()
  3. game.Players.LocalPlayer.Character["Pal Hair"].Handle.Mesh:Destroy() --Pink Hair
  4. game.Players.LocalPlayer.Character["Pink Hair"].Handle.Mesh:Destroy()
  5. game.Players.LocalPlayer.Character["Kate Hair"].Handle.Mesh:Destroy() --LavanderHair
  6. game.Players.LocalPlayer.Character["LavanderHair"].Handle.Mesh:Destroy()
  7. game.Players.LocalPlayer.Character["Robloxclassicred"].Handle.Mesh:Destroy()
  8. --VarietyShades02
  9. --TennisBall
  10.  
  11. local c = game.Players.LocalPlayer.Character
  12. for i, v in pairs({"Right Arm", "Left Arm"}) do
  13. local arm = c[v]
  14. arm.Parent = nil
  15. arm.Transparency = 1
  16. arm.Parent = c
  17. end
  18.  
  19. local c = game.Players.LocalPlayer.Character
  20. for i, v in pairs({"Right Leg", "Left Leg"}) do
  21. local Leg = c[v]
  22. Leg.Parent = nil
  23. Leg.Transparency = 1
  24. Leg.Parent = c
  25. end
  26.  
  27. local v3_net, v3_808 = Vector3.new(0, 25.1, 0), Vector3.new(8, 0, 8)
  28. local function getNetlessVelocity(realPartVelocity)
  29. local mag = realPartVelocity.Magnitude
  30. if mag > 1 then
  31. local unit = realPartVelocity.Unit
  32. if (unit.Y > 0.25) or (unit.Y < -0.75) then
  33. return unit * (25.1 / unit.Y)
  34. end
  35. end
  36. return v3_net + realPartVelocity * v3_808
  37. end
  38. local simradius = "shp" --simulation radius (net bypass) method
  39. --simulation radius (net bypass) method
  40. --"shp" - sethiddenproperty
  41. --"ssr" - setsimulationradius
  42. --false - disable
  43. local antiragdoll = true --removes hingeConstraints and ballSocketConstraints from your character
  44. local newanimate = false --disables the animate script and enables after reanimation
  45. local discharscripts = true --disables all localScripts parented to your character before reanimation
  46. local R15toR6 = true --tries to convert your character to r6 if its r15
  47. local hatcollide = true --makes hats cancollide (only method 0)
  48. local humState16 = true --enables collisions for limbs before the humanoid dies (using hum:ChangeState)
  49. local addtools = false --puts all tools from backpack to character and lets you hold them after reanimation
  50. local hedafterneck = false --disable aligns for head and enable after neck is removed
  51. local loadtime = game:GetService("Players").RespawnTime + 0.5 --anti respawn delay
  52. local method = 0 --reanimation method
  53. --methods:
  54. --0 - breakJoints (takes [loadtime] seconds to laod)
  55. --1 - limbs
  56. --2 - limbs + anti respawn
  57. --3 - limbs + breakJoints after [loadtime] seconds
  58. --4 - remove humanoid + breakJoints
  59. --5 - remove humanoid + limbs
  60. local alignmode = 3 --AlignPosition mode
  61. --modes:
  62. --1 - AlignPosition rigidity enabled true
  63. --2 - 2 AlignPositions rigidity enabled both true and false
  64. --3 - AlignPosition rigidity enabled false
  65.  
  66. healthHide = healthHide and ((method == 0) or (method == 2) or (method == 000)) and gp(c, "Head", "BasePart")
  67.  
  68. local lp = game:GetService("Players").LocalPlayer
  69. local rs = game:GetService("RunService")
  70. local stepped = rs.Stepped
  71. local heartbeat = rs.Heartbeat
  72. local renderstepped = rs.RenderStepped
  73. local sg = game:GetService("StarterGui")
  74. local ws = game:GetService("Workspace")
  75. local cf = CFrame.new
  76. local v3 = Vector3.new
  77. local v3_0 = v3(0, 0, 0)
  78. local inf = math.huge
  79.  
  80. local c = lp.Character
  81.  
  82. if not (c and c.Parent) then
  83. return
  84. end
  85.  
  86. c.Destroying:Connect(function()
  87. c = nil
  88. end)
  89.  
  90. local function gp(parent, name, className)
  91. if typeof(parent) == "Instance" then
  92. for i, v in pairs(parent:GetChildren()) do
  93. if (v.Name == name) and v:IsA(className) then
  94. return v
  95. end
  96. end
  97. end
  98. return nil
  99. end
  100.  
  101. local function align(Part0, Part1)
  102. Part0.CustomPhysicalProperties = PhysicalProperties.new(0.0001, 0.0001, 0.0001, 0.0001, 0.0001)
  103.  
  104. local att0 = Instance.new("Attachment", Part0)
  105. att0.Orientation = v3_0
  106. att0.Position = v3_0
  107. att0.Name = "att0_" .. Part0.Name
  108. local att1 = Instance.new("Attachment", Part1)
  109. att1.Orientation = v3_0
  110. att1.Position = v3_0
  111. att1.Name = "att1_" .. Part1.Name
  112.  
  113. if (alignmode == 1) or (alignmode == 2) then
  114. local ape = Instance.new("AlignPosition", att0)
  115. ape.ApplyAtCenterOfMass = false
  116. ape.MaxForce = inf
  117. ape.MaxVelocity = inf
  118. ape.ReactionForceEnabled = false
  119. ape.Responsiveness = 200
  120. ape.Attachment1 = att1
  121. ape.Attachment0 = att0
  122. ape.Name = "AlignPositionRtrue"
  123. ape.RigidityEnabled = true
  124. end
  125.  
  126. if (alignmode == 2) or (alignmode == 3) then
  127. local apd = Instance.new("AlignPosition", att0)
  128. apd.ApplyAtCenterOfMass = false
  129. apd.MaxForce = inf
  130. apd.MaxVelocity = inf
  131. apd.ReactionForceEnabled = false
  132. apd.Responsiveness = 200
  133. apd.Attachment1 = att1
  134. apd.Attachment0 = att0
  135. apd.Name = "AlignPositionRfalse"
  136. apd.RigidityEnabled = false
  137. end
  138.  
  139. local ao = Instance.new("AlignOrientation", att0)
  140. ao.MaxAngularVelocity = inf
  141. ao.MaxTorque = inf
  142. ao.PrimaryAxisOnly = false
  143. ao.ReactionTorqueEnabled = false
  144. ao.Responsiveness = 200
  145. ao.Attachment1 = att1
  146. ao.Attachment0 = att0
  147. ao.RigidityEnabled = false
  148.  
  149. if type(getNetlessVelocity) == "function" then
  150. local realVelocity = v3_0
  151. local steppedcon = stepped:Connect(function()
  152. Part0.Velocity = realVelocity
  153. end)
  154. local heartbeatcon = heartbeat:Connect(function()
  155. realVelocity = Part0.Velocity
  156. Part0.Velocity = getNetlessVelocity(realVelocity)
  157. end)
  158. Part0.Destroying:Connect(function()
  159. Part0 = nil
  160. steppedcon:Disconnect()
  161. heartbeatcon:Disconnect()
  162. end)
  163. end
  164. end
  165.  
  166. local function respawnrequest()
  167. local ccfr = ws.CurrentCamera.CFrame
  168. local c = lp.Character
  169. lp.Character = nil
  170. lp.Character = c
  171. local con = nil
  172. con = ws.CurrentCamera.Changed:Connect(function(prop)
  173. if (prop ~= "Parent") and (prop ~= "CFrame") then
  174. return
  175. end
  176. ws.CurrentCamera.CFrame = ccfr
  177. con:Disconnect()
  178. end)
  179. end
  180.  
  181. local destroyhum = (method == 4) or (method == 5)
  182. local breakjoints = (method == 0) or (method == 4)
  183. local antirespawn = (method == 0) or (method == 2) or (method == 3)
  184.  
  185. hatcollide = hatcollide and (method == 0)
  186.  
  187. addtools = addtools and gp(lp, "Backpack", "Backpack")
  188.  
  189. local fenv = getfenv()
  190. local shp = fenv.sethiddenproperty or fenv.set_hidden_property or fenv.set_hidden_prop or fenv.sethiddenprop
  191. local ssr = fenv.setsimulationradius or fenv.set_simulation_radius or fenv.set_sim_radius or fenv.setsimradius or fenv.set_simulation_rad or fenv.setsimulationrad
  192.  
  193. if shp and (simradius == "shp") then
  194. spawn(function()
  195. while c and heartbeat:Wait() do
  196. shp(lp, "SimulationRadius", inf)
  197. end
  198. end)
  199. elseif ssr and (simradius == "ssr") then
  200. spawn(function()
  201. while c and heartbeat:Wait() do
  202. ssr(inf)
  203. end
  204. end)
  205. end
  206.  
  207. antiragdoll = antiragdoll and function(v)
  208. if v:IsA("HingeConstraint") or v:IsA("BallSocketConstraint") then
  209. v.Parent = nil
  210. end
  211. end
  212.  
  213. if antiragdoll then
  214. for i, v in pairs(c:GetDescendants()) do
  215. antiragdoll(v)
  216. end
  217. c.DescendantAdded:Connect(antiragdoll)
  218. end
  219.  
  220. if antirespawn then
  221. respawnrequest()
  222. end
  223.  
  224. if method == 0 then
  225. wait(loadtime)
  226. if not c then
  227. return
  228. end
  229. end
  230.  
  231. if discharscripts then
  232. for i, v in pairs(c:GetChildren()) do
  233. if v:IsA("LocalScript") then
  234. v.Disabled = true
  235. end
  236. end
  237. elseif newanimate then
  238. local animate = gp(c, "Animate", "LocalScript")
  239. if animate and (not animate.Disabled) then
  240. animate.Disabled = true
  241. else
  242. newanimate = false
  243. end
  244. end
  245.  
  246. if addtools then
  247. for i, v in pairs(addtools:GetChildren()) do
  248. if v:IsA("Tool") then
  249. v.Parent = c
  250. end
  251. end
  252. end
  253.  
  254. pcall(function()
  255. settings().Physics.AllowSleep = false
  256. settings().Physics.PhysicsEnvironmentalThrottle = Enum.EnviromentalPhysicsThrottle.Disabled
  257. end)
  258.  
  259. local OLDscripts = {}
  260.  
  261. for i, v in pairs(c:GetDescendants()) do
  262. if v.ClassName == "Script" then
  263. table.insert(OLDscripts, v)
  264. end
  265. end
  266.  
  267. local scriptNames = {}
  268.  
  269. for i, v in pairs(c:GetDescendants()) do
  270. if v:IsA("BasePart") then
  271. local newName = tostring(i)
  272. local exists = true
  273. while exists do
  274. exists = false
  275. for i, v in pairs(OLDscripts) do
  276. if v.Name == newName then
  277. exists = true
  278. end
  279. end
  280. if exists then
  281. newName = newName .. "_"
  282. end
  283. end
  284. table.insert(scriptNames, newName)
  285. Instance.new("Script", v).Name = newName
  286. end
  287. end
  288.  
  289. c.Archivable = true
  290. local hum = c:FindFirstChildOfClass("Humanoid")
  291. if hum then
  292. for i, v in pairs(hum:GetPlayingAnimationTracks()) do
  293. v:Stop()
  294. end
  295. end
  296. local cl = c:Clone()
  297. if hum and humState16 then
  298. hum:ChangeState(Enum.HumanoidStateType.Physics)
  299. if destroyhum then
  300. wait(1.6)
  301. end
  302. end
  303. if hum and hum.Parent and destroyhum then
  304. hum:Destroy()
  305. end
  306.  
  307. if not c then
  308. return
  309. end
  310.  
  311. local head = gp(c, "Head", "BasePart")
  312. local torso = gp(c, "Torso", "BasePart") or gp(c, "UpperTorso", "BasePart")
  313. local root = gp(c, "HumanoidRootPart", "BasePart")
  314. if hatcollide and c:FindFirstChildOfClass("Accessory") then
  315. local anything = c:FindFirstChildOfClass("BodyColors") or gp(c, "Health", "Script")
  316. if not (torso and root and anything) then
  317. return
  318. end
  319. torso:Destroy()
  320. root:Destroy()
  321. if shp then
  322. for i,v in pairs(c:GetChildren()) do
  323. if v:IsA("Accessory") then
  324. shp(v, "BackendAccoutrementState", 0)
  325. end
  326. end
  327. end
  328. anything:Destroy()
  329. if head then
  330. head:Destroy()
  331. end
  332. end
  333.  
  334. for i, v in pairs(cl:GetDescendants()) do
  335. if v:IsA("BasePart") then
  336. v.Transparency = 1
  337. v.Anchored = false
  338. end
  339. end
  340.  
  341. local model = Instance.new("Model", c)
  342. model.Name = model.ClassName
  343.  
  344. model.Destroying:Connect(function()
  345. model = nil
  346. end)
  347.  
  348. for i, v in pairs(c:GetChildren()) do
  349. if v ~= model then
  350. if addtools and v:IsA("Tool") then
  351. for i1, v1 in pairs(v:GetDescendants()) do
  352. if v1 and v1.Parent and v1:IsA("BasePart") then
  353. local bv = Instance.new("BodyVelocity", v1)
  354. bv.Velocity = v3_0
  355. bv.MaxForce = v3(1000, 1000, 1000)
  356. bv.P = 1250
  357. bv.Name = "bv_" .. v.Name
  358. end
  359. end
  360. end
  361. v.Parent = model
  362. end
  363. end
  364.  
  365. if breakjoints then
  366. model:BreakJoints()
  367. else
  368. if head and torso then
  369. for i, v in pairs(model:GetDescendants()) do
  370. if v:IsA("Weld") or v:IsA("Snap") or v:IsA("Glue") or v:IsA("Motor") or v:IsA("Motor6D") then
  371. local save = false
  372. if (v.Part0 == torso) and (v.Part1 == head) then
  373. save = true
  374. end
  375. if (v.Part0 == head) and (v.Part1 == torso) then
  376. save = true
  377. end
  378. if save then
  379. if hedafterneck then
  380. hedafterneck = v
  381. end
  382. else
  383. v:Destroy()
  384. end
  385. end
  386. end
  387. end
  388. if method == 3 then
  389. spawn(function()
  390. wait(loadtime)
  391. if model then
  392. model:BreakJoints()
  393. end
  394. end)
  395. end
  396. end
  397.  
  398. cl.Parent = c
  399. for i, v in pairs(cl:GetChildren()) do
  400. v.Parent = c
  401. end
  402. cl:Destroy()
  403.  
  404. local modelDes = {}
  405. for i, v in pairs(model:GetDescendants()) do
  406. if v:IsA("BasePart") then
  407. i = tostring(i)
  408. v.Destroying:Connect(function()
  409. modelDes[i] = nil
  410. end)
  411. modelDes[i] = v
  412. end
  413. end
  414. local modelcolcon = nil
  415. local function modelcolf()
  416. if model then
  417. for i, v in pairs(modelDes) do
  418. v.CanCollide = false
  419. end
  420. else
  421. modelcolcon:Disconnect()
  422. end
  423. end
  424. modelcolcon = stepped:Connect(modelcolf)
  425. modelcolf()
  426.  
  427. for i, scr in pairs(model:GetDescendants()) do
  428. if (scr.ClassName == "Script") and table.find(scriptNames, scr.Name) then
  429. local Part0 = scr.Parent
  430. if Part0:IsA("BasePart") then
  431. for i1, scr1 in pairs(c:GetDescendants()) do
  432. if (scr1.ClassName == "Script") and (scr1.Name == scr.Name) and (not scr1:IsDescendantOf(model)) then
  433. local Part1 = scr1.Parent
  434. if (Part1.ClassName == Part0.ClassName) and (Part1.Name == Part0.Name) then
  435. align(Part0, Part1)
  436. break
  437. end
  438. end
  439. end
  440. end
  441. end
  442. end
  443.  
  444. if (typeof(hedafterneck) == "Instance") and head then
  445. local aligns = {}
  446. local con = nil
  447. con = hedafterneck.Changed:Connect(function(prop)
  448. if (prop == "Parent") and not hedafterneck.Parent then
  449. con:Disconnect()
  450. for i, v in pairs(aligns) do
  451. v.Enabled = true
  452. end
  453. end
  454. end)
  455. for i, v in pairs(head:GetDescendants()) do
  456. if v:IsA("AlignPosition") or v:IsA("AlignOrientation") then
  457. i = tostring(i)
  458. aligns[i] = v
  459. v.Destroying:Connect(function()
  460. aligns[i] = nil
  461. end)
  462. v.Enabled = false
  463. end
  464. end
  465. end
  466.  
  467. for i, v in pairs(c:GetDescendants()) do
  468. if v and v.Parent then
  469. if v.ClassName == "Script" then
  470. if table.find(scriptNames, v.Name) then
  471. v:Destroy()
  472. end
  473. elseif not v:IsDescendantOf(model) then
  474. if v:IsA("Decal") then
  475. v.Transparency = 1
  476. elseif v:IsA("ForceField") then
  477. v.Visible = false
  478. elseif v:IsA("Sound") then
  479. v.Playing = false
  480. elseif v:IsA("BillboardGui") or v:IsA("SurfaceGui") or v:IsA("ParticleEmitter") or v:IsA("Fire") or v:IsA("Smoke") or v:IsA("Sparkles") then
  481. v.Enabled = false
  482. end
  483. end
  484. end
  485. end
  486.  
  487. if newanimate then
  488. local animate = gp(c, "Animate", "LocalScript")
  489. if animate then
  490. animate.Disabled = false
  491. end
  492. end
  493.  
  494. if addtools then
  495. for i, v in pairs(c:GetChildren()) do
  496. if v:IsA("Tool") then
  497. v.Parent = addtools
  498. end
  499. end
  500. end
  501.  
  502. local hum0 = model:FindFirstChildOfClass("Humanoid")
  503. if hum0 then
  504. hum0.Destroying:Connect(function()
  505. hum0 = nil
  506. end)
  507. end
  508.  
  509. local hum1 = c:FindFirstChildOfClass("Humanoid")
  510. if hum1 then
  511. hum1.Destroying:Connect(function()
  512. hum1 = nil
  513. end)
  514. end
  515.  
  516. if hum1 then
  517. ws.CurrentCamera.CameraSubject = hum1
  518. local camSubCon = nil
  519. local function camSubFunc()
  520. camSubCon:Disconnect()
  521. if c and hum1 then
  522. ws.CurrentCamera.CameraSubject = hum1
  523. end
  524. end
  525. camSubCon = renderstepped:Connect(camSubFunc)
  526. if hum0 then
  527. hum0.Changed:Connect(function(prop)
  528. if hum1 and (prop == "Jump") then
  529. hum1.Jump = hum0.Jump
  530. end
  531. end)
  532. else
  533. respawnrequest()
  534. end
  535. end
  536.  
  537. local rb = Instance.new("BindableEvent", c)
  538. rb.Event:Connect(function()
  539. rb:Destroy()
  540. sg:SetCore("ResetButtonCallback", true)
  541. if destroyhum then
  542. c:BreakJoints()
  543. return
  544. end
  545. if hum0 and (hum0.Health > 0) then
  546. model:BreakJoints()
  547. hum0.Health = 0
  548. end
  549. if antirespawn then
  550. respawnrequest()
  551. end
  552. end)
  553. sg:SetCore("ResetButtonCallback", rb)
  554.  
  555. spawn(function()
  556. while c do
  557. if hum0 and hum1 then
  558. hum1.Jump = hum0.Jump
  559. end
  560. wait()
  561. end
  562. sg:SetCore("ResetButtonCallback", true)
  563. end)
  564.  
  565. R15toR6 = R15toR6 and hum1 and (hum1.RigType == Enum.HumanoidRigType.R15)
  566. if R15toR6 then
  567. local part = gp(c, "HumanoidRootPart", "BasePart") or gp(c, "UpperTorso", "BasePart") or gp(c, "LowerTorso", "BasePart") or gp(c, "Head", "BasePart") or c:FindFirstChildWhichIsA("BasePart")
  568. if part then
  569. local cfr = part.CFrame
  570. local R6parts = {
  571. head = {
  572. Name = "Head",
  573. Size = v3(2, 1, 1),
  574. R15 = {
  575. Head = 0
  576. }
  577. },
  578. torso = {
  579. Name = "Torso",
  580. Size = v3(2, 2, 1),
  581. R15 = {
  582. UpperTorso = 0.2,
  583. LowerTorso = -100
  584. }
  585. },
  586. root = {
  587. Name = "HumanoidRootPart",
  588. Size = v3(2, 2, 1),
  589. R15 = {
  590. HumanoidRootPart = 0
  591. }
  592. },
  593. leftArm = {
  594. Name = "Left Arm",
  595. Size = v3(1, 2, 1),
  596. R15 = {
  597. LeftHand = -0.73,
  598. LeftLowerArm = -0.2,
  599. LeftUpperArm = 0.4
  600. }
  601. },
  602. rightArm = {
  603. Name = "Right Arm",
  604. Size = v3(1, 2, 1),
  605. R15 = {
  606. RightHand = -0.73,
  607. RightLowerArm = -0.2,
  608. RightUpperArm = 0.4
  609. }
  610. },
  611. leftLeg = {
  612. Name = "Left Leg",
  613. Size = v3(1, 2, 1),
  614. R15 = {
  615. LeftFoot = -0.73,
  616. LeftLowerLeg = -0.15,
  617. LeftUpperLeg = 0.6
  618. }
  619. },
  620. rightLeg = {
  621. Name = "Right Leg",
  622. Size = v3(1, 2, 1),
  623. R15 = {
  624. RightFoot = -0.73,
  625. RightLowerLeg = -0.15,
  626. RightUpperLeg = 0.6
  627. }
  628. }
  629. }
  630. for i, v in pairs(c:GetChildren()) do
  631. if v:IsA("BasePart") then
  632. for i1, v1 in pairs(v:GetChildren()) do
  633. if v1:IsA("Motor6D") then
  634. v1.Part0 = nil
  635. end
  636. end
  637. end
  638. end
  639. part.Archivable = true
  640. for i, v in pairs(R6parts) do
  641. local part = part:Clone()
  642. part:ClearAllChildren()
  643. part.Name = v.Name
  644. part.Size = v.Size
  645. part.CFrame = cfr
  646. part.Anchored = false
  647. part.Transparency = 1
  648. part.CanCollide = false
  649. for i1, v1 in pairs(v.R15) do
  650. local R15part = gp(c, i1, "BasePart")
  651. local att = gp(R15part, "att1_" .. i1, "Attachment")
  652. if R15part then
  653. local weld = Instance.new("Weld", R15part)
  654. weld.Name = "Weld_" .. i1
  655. weld.Part0 = part
  656. weld.Part1 = R15part
  657. weld.C0 = cf(0, v1, 0)
  658. weld.C1 = cf(0, 0, 0)
  659. R15part.Massless = true
  660. R15part.Name = "R15_" .. i1
  661. R15part.Parent = part
  662. if att then
  663. att.Parent = part
  664. att.Position = v3(0, v1, 0)
  665. end
  666. end
  667. end
  668. part.Parent = c
  669. R6parts[i] = part
  670. end
  671. local R6joints = {
  672. neck = {
  673. Parent = R6parts.torso,
  674. Name = "Neck",
  675. Part0 = R6parts.torso,
  676. Part1 = R6parts.head,
  677. C0 = cf(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0),
  678. C1 = cf(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  679. },
  680. rootJoint = {
  681. Parent = R6parts.root,
  682. Name = "RootJoint" ,
  683. Part0 = R6parts.root,
  684. Part1 = R6parts.torso,
  685. C0 = cf(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0),
  686. C1 = cf(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
  687. },
  688. rightShoulder = {
  689. Parent = R6parts.torso,
  690. Name = "Right Shoulder",
  691. Part0 = R6parts.torso,
  692. Part1 = R6parts.rightArm,
  693. C0 = cf(1, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0),
  694. C1 = cf(-0.5, 0.5, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  695. },
  696. leftShoulder = {
  697. Parent = R6parts.torso,
  698. Name = "Left Shoulder",
  699. Part0 = R6parts.torso,
  700. Part1 = R6parts.leftArm,
  701. C0 = cf(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),
  702. C1 = cf(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  703. },
  704. rightHip = {
  705. Parent = R6parts.torso,
  706. Name = "Right Hip",
  707. Part0 = R6parts.torso,
  708. Part1 = R6parts.rightLeg,
  709. C0 = cf(1, -1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0),
  710. C1 = cf(0.5, 1, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0)
  711. },
  712. leftHip = {
  713. Parent = R6parts.torso,
  714. Name = "Left Hip" ,
  715. Part0 = R6parts.torso,
  716. Part1 = R6parts.leftLeg,
  717. C0 = cf(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),
  718. C1 = cf(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  719. }
  720. }
  721. for i, v in pairs(R6joints) do
  722. local joint = Instance.new("Motor6D")
  723. for prop, val in pairs(v) do
  724. joint[prop] = val
  725. end
  726. R6joints[i] = joint
  727. end
  728. hum1.RigType = Enum.HumanoidRigType.R6
  729. hum1.HipHeight = 0
  730. end
  731. end
  732.  
  733.  
  734.  
  735. --find rig joints
  736.  
  737. local function fakemotor()
  738. return {C0=cf(), C1=cf()}
  739. end
  740.  
  741. local torso = gp(c, "Torso", "BasePart")
  742. local root = gp(c, "HumanoidRootPart", "BasePart")
  743.  
  744. local neck = gp(torso, "Neck", "Motor6D")
  745. neck = neck or fakemotor()
  746.  
  747. local rootJoint = gp(root, "RootJoint", "Motor6D")
  748. rootJoint = rootJoint or fakemotor()
  749.  
  750. local leftShoulder = gp(torso, "Left Shoulder", "Motor6D")
  751. leftShoulder = leftShoulder or fakemotor()
  752.  
  753. local rightShoulder = gp(torso, "Right Shoulder", "Motor6D")
  754. rightShoulder = rightShoulder or fakemotor()
  755.  
  756. local leftHip = gp(torso, "Left Hip", "Motor6D")
  757. leftHip = leftHip or fakemotor()
  758.  
  759. local rightHip = gp(torso, "Right Hip", "Motor6D")
  760. rightHip = rightHip or fakemotor()
  761.  
  762. --120 fps
  763.  
  764. local fps = 0
  765. local event = Instance.new("BindableEvent", c)
  766. event.Name = "120 fps"
  767. local floor = math.floor
  768. fps = 1 / fps
  769. local tf = 0
  770. local con = nil
  771. con = game:GetService("RunService").RenderStepped:Connect(function(s)
  772. if not c then
  773. con:Disconnect()
  774. return
  775. end
  776. --tf += s
  777. if tf >= fps then
  778. for i=1, floor(tf / fps) do
  779. event:Fire(c)
  780. end
  781. tf = 0
  782. end
  783. end)
  784. local event = event.Event
  785.  
  786. local hedrot = v3(0, 5, 0)
  787.  
  788. local uis = game:GetService("UserInputService")
  789. local function isPressed(key)
  790. return (not uis:GetFocusedTextBox()) and uis:IsKeyDown(Enum.KeyCode[key])
  791. end
  792.  
  793. local biggesthandle = nil
  794. for i, v in pairs(c:GetChildren()) do
  795. if v:IsA("Accessory") then
  796. local handle = gp(v, "Handle", "BasePart")
  797. if biggesthandle then
  798. if biggesthandle.Size.Magnitude < handle.Size.Magnitude then
  799. biggesthandle = handle
  800. end
  801. else
  802. biggesthandle = gp(v, "Handle", "BasePart")
  803. end
  804. end
  805. end
  806.  
  807. if not biggesthandle then
  808. return
  809. end
  810.  
  811. local handle1 = gp(gp(model, biggesthandle.Parent.Name, "Accessory"), "Handle", "BasePart")
  812. if not handle1 then
  813. return
  814. end
  815.  
  816. handle1.Destroying:Connect(function()
  817. handle1 = nil
  818. end)
  819. biggesthandle.Destroying:Connect(function()
  820. biggesthandle = nil
  821. end)
  822.  
  823. biggesthandle:BreakJoints()
  824. biggesthandle.Anchored = true
  825.  
  826. for i, v in pairs(handle1:GetDescendants()) do
  827. if v:IsA("AlignOrientation") then
  828. v.Enabled = false
  829. end
  830. end
  831.  
  832. local mouse = lp:GetMouse()
  833. local fling = false
  834. mouse.Button1Down:Connect(function()
  835. fling = true
  836. end)
  837. mouse.Button1Up:Connect(function()
  838. fling = false
  839. end)
  840. local function doForSignal(signal, vel)
  841. spawn(function()
  842. while signal:Wait() and c and handle1 and biggesthandle do
  843. if fling and mouse.Target then
  844. biggesthandle.Position = mouse.Hit.Position
  845. end
  846. handle1.RotVelocity = vel
  847. end
  848. end)
  849. end
  850. doForSignal(stepped, v3(100, 100, 100))
  851. doForSignal(renderstepped, v3(100, 100, 100))
  852. doForSignal(heartbeat, v3(20000, 20000, 20000)) --https://web.roblox.com/catalog/63690008/Pal-Hair
  853.  
  854. local lp = game:GetService("Players").LocalPlayer
  855. local rs = game:GetService("RunService")
  856. local stepped = rs.Stepped
  857. local heartbeat = rs.Heartbeat
  858. local renderstepped = rs.RenderStepped
  859. local sg = game:GetService("StarterGui")
  860. local ws = game:GetService("Workspace")
  861. local cf = CFrame.new
  862. local v3 = Vector3.new
  863. local v3_0 = Vector3.zero
  864. local inf = math.huge
  865.  
  866. local cplayer = lp.Character
  867.  
  868. local v3 = Vector3.new
  869.  
  870. local function gp(parent, name, className)
  871. if typeof(parent) == "Instance" then
  872. for i, v in pairs(parent:GetChildren()) do
  873. if (v.Name == name) and v:IsA(className) then
  874. return v
  875. end
  876. end
  877. end
  878. return nil
  879. end
  880.  
  881. local hat2 = gp(cplayer, "Hat1", "Accessory")
  882. local handle2 = gp(hat2, "Handle", "BasePart")
  883. local att2 = gp(handle2, "att1_Handle", "Attachment")
  884. att2.Parent = cplayer["Torso"]
  885. att2.Position = Vector3.new(0.5, -0, 0)
  886. att2.Rotation = Vector3.new(90, 0, 0)
  887.  
  888. local hat2 = gp(cplayer, "Pal Hair", "Accessory")
  889. local handle2 = gp(hat2, "Handle", "BasePart")
  890. local att2 = gp(handle2, "att1_Handle", "Attachment")
  891. att2.Parent = cplayer["Torso"]
  892. att2.Position = Vector3.new(-0.5, -0, 0)
  893. att2.Rotation = Vector3.new(90, 0, 0)
  894.  
  895. local hat2 = gp(cplayer, "Pink Hair", "Accessory")
  896. local handle2 = gp(hat2, "Handle", "BasePart")
  897. local att2 = gp(handle2, "att1_Handle", "Attachment")
  898. att2.Parent = cplayer["Left Arm"]
  899. att2.Position = Vector3.new(0, -0, 0)
  900. att2.Rotation = Vector3.new(90, 0, 0)
  901.  
  902. local hat2 = gp(cplayer, "Kate Hair", "Accessory")
  903. local handle2 = gp(hat2, "Handle", "BasePart")
  904. local att2 = gp(handle2, "att1_Handle", "Attachment")
  905. att2.Parent = cplayer["Right Arm"]
  906. att2.Position = Vector3.new(-0, -0, 0)
  907. att2.Rotation = Vector3.new(90, 0, 0) --LavanderHair
  908.  
  909. local hat2 = gp(cplayer, "LavanderHair", "Accessory")
  910. local handle2 = gp(hat2, "Handle", "BasePart")
  911. local att2 = gp(handle2, "att1_Handle", "Attachment")
  912. att2.Parent = cplayer["Right Leg"]
  913. att2.Position = Vector3.new(0, 0, 0) --Robloxclassicred
  914. att2.Rotation = Vector3.new(90, 0, 0)
  915.  
  916. local hat2 = gp(cplayer, "Robloxclassicred", "Accessory")
  917. local handle2 = gp(hat2, "Handle", "BasePart")
  918. local att2 = gp(handle2, "att1_Handle", "Attachment")
  919. att2.Parent = cplayer["Left Leg"]
  920. att2.Position = Vector3.new(-0, 0, 0)
  921. att2.Rotation = Vector3.new(90, 0, 0)
  922.  
  923.  
  924.  
  925.  
  926.  
  927.  
  928.  
  929.  
  930. --//====================================================\\--
  931. --|| CREATED BY SHACKLUSTER
  932. --\\====================================================//--
  933.  
  934. wait(0.2)
  935.  
  936. Player = game:GetService("Players").LocalPlayer
  937. PlayerGui = Player.PlayerGui
  938. Cam = workspace.CurrentCamera
  939. Backpack = Player.Backpack
  940. Character = Player.Character
  941. Humanoid = Character.Humanoid
  942. Mouse = Player:GetMouse()
  943. RootPart = Character["HumanoidRootPart"]
  944. Torso = Character["Torso"]
  945. Head = Character["Head"]
  946. RightArm = Character["Right Arm"]
  947. LeftArm = Character["Left Arm"]
  948. RightLeg = Character["Right Leg"]
  949. LeftLeg = Character["Left Leg"]
  950. RootJoint = RootPart["RootJoint"]
  951. Neck = Torso["Neck"]
  952. RightShoulder = Torso["Right Shoulder"]
  953. LeftShoulder = Torso["Left Shoulder"]
  954. RightHip = Torso["Right Hip"]
  955. LeftHip = Torso["Left Hip"]
  956. Player:ClearCharacterAppearance()
  957.  
  958. IT = Instance.new
  959. CF = CFrame.new
  960. VT = Vector3.new
  961. RAD = math.rad
  962. C3 = Color3.new
  963. UD2 = UDim2.new
  964. BRICKC = BrickColor.new
  965. ANGLES = CFrame.Angles
  966. EULER = CFrame.fromEulerAnglesXYZ
  967. COS = math.cos
  968. ACOS = math.acos
  969. SIN = math.sin
  970. ASIN = math.asin
  971. ABS = math.abs
  972. MRANDOM = math.random
  973. FLOOR = math.floor
  974.  
  975. --//=================================\\
  976. --|| USEFUL VALUES
  977. --\\=================================//
  978.  
  979. Animation_Speed = 3
  980. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  981. local Speed = 10
  982. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  983. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  984. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  985. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  986. local DAMAGEMULTIPLIER = 1
  987. local ANIM = "Idle"
  988. local ATTACK = false
  989. local EQUIPPED = false
  990. local HOLD = false
  991. local COMBO = 1
  992. local Rooted = false
  993. local SINE = 0
  994. local KEYHOLD = false
  995. local CHANGE = 2 / Animation_Speed
  996. local WALKINGANIM = false
  997. local VALUE1 = false
  998. local VALUE2 = false
  999. local ROBLOXIDLEANIMATION = IT("Animation")
  1000. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  1001. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  1002. local ATANIM = IT("Animation")
  1003. ATANIM.Name = "Attack Animation"
  1004. ATANIM.AnimationId = "http://www.roblox.com/asset/?id=74894663"
  1005. --ROBLOXIDLEANIMATION.Parent = Humanoid
  1006. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  1007. WEAPONGUI.Name = "Weapon GUI"
  1008. local Weapon = IT("Model")
  1009. Weapon.Name = "Adds"
  1010. local Effects = IT("Folder", Weapon)
  1011. Effects.Name = "Effects"
  1012. local ANIMATOR = Humanoid.Animator
  1013. local ANIMATE = Character.Animate
  1014. local UNANCHOR = true
  1015. local PLAYANIMS = true
  1016. script.Parent = WEAPONGUI
  1017. Character.Archivable = true
  1018. local CLONE = Character:Clone()
  1019. CLONE.Parent = nil
  1020. Character.Archivable = false
  1021. local sick = Instance.new("Sound",Torso)
  1022. sick.SoundId = "rbxassetid://1551788627"
  1023. sick.Looped = true
  1024. sick.Pitch = 1
  1025. sick.Volume = 3
  1026. sick:Play()
  1027. local SIT = IT("BoolValue",Torso)
  1028. SIT.Name = "IsThePharaohSitting?"
  1029.  
  1030. --//=================================\\
  1031. --\\=================================//
  1032.  
  1033.  
  1034. --//=================================\\
  1035. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  1036. --\\=================================//
  1037.  
  1038. ArtificialHB = Instance.new("BindableEvent", script)
  1039. ArtificialHB.Name = "ArtificialHB"
  1040.  
  1041. script:WaitForChild("ArtificialHB")
  1042.  
  1043. frame = Frame_Speed
  1044. tf = 0
  1045. allowframeloss = false
  1046. tossremainder = false
  1047. lastframe = tick()
  1048. script.ArtificialHB:Fire()
  1049.  
  1050. game:GetService("RunService").Heartbeat:connect(function(s, p)
  1051. tf = tf + s
  1052. if tf >= frame then
  1053. if allowframeloss then
  1054. script.ArtificialHB:Fire()
  1055. lastframe = tick()
  1056. else
  1057. for i = 1, math.floor(tf / frame) do
  1058. script.ArtificialHB:Fire()
  1059. end
  1060. lastframe = tick()
  1061. end
  1062. if tossremainder then
  1063. tf = 0
  1064. else
  1065. tf = tf - frame * math.floor(tf / frame)
  1066. end
  1067. end
  1068. end)
  1069.  
  1070. --//=================================\\
  1071. --\\=================================//
  1072.  
  1073. --//=================================\\
  1074. --|| SOME FUNCTIONS
  1075. --\\=================================//
  1076.  
  1077. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  1078. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  1079. end
  1080.  
  1081. function PositiveAngle(NUMBER)
  1082. if NUMBER >= 0 then
  1083. NUMBER = 0
  1084. end
  1085. return NUMBER
  1086. end
  1087.  
  1088. function NegativeAngle(NUMBER)
  1089. if NUMBER <= 0 then
  1090. NUMBER = 0
  1091. end
  1092. return NUMBER
  1093. end
  1094.  
  1095. function Swait(NUMBER)
  1096. if NUMBER == 0 or NUMBER == nil then
  1097. ArtificialHB.Event:wait()
  1098. else
  1099. for i = 1, NUMBER do
  1100. ArtificialHB.Event:wait()
  1101. end
  1102. end
  1103. end
  1104.  
  1105. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  1106. local NEWMESH = IT(MESH)
  1107. if MESH == "SpecialMesh" then
  1108. NEWMESH.MeshType = MESHTYPE
  1109. if MESHID ~= "nil" and MESHID ~= "" then
  1110. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  1111. end
  1112. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  1113. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  1114. end
  1115. end
  1116. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  1117. NEWMESH.Scale = SCALE
  1118. NEWMESH.Parent = PARENT
  1119. return NEWMESH
  1120. end
  1121.  
  1122. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  1123. local NEWPART = IT("Part")
  1124. NEWPART.formFactor = FORMFACTOR
  1125. NEWPART.Reflectance = REFLECTANCE
  1126. NEWPART.Transparency = TRANSPARENCY
  1127. NEWPART.CanCollide = false
  1128. NEWPART.Locked = true
  1129. NEWPART.Anchored = true
  1130. if ANCHOR == false then
  1131. NEWPART.Anchored = false
  1132. end
  1133. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  1134. NEWPART.Name = NAME
  1135. NEWPART.Size = SIZE
  1136. NEWPART.Position = Torso.Position
  1137. NEWPART.Material = MATERIAL
  1138. NEWPART:BreakJoints()
  1139. NEWPART.Parent = PARENT
  1140. return NEWPART
  1141. end
  1142.  
  1143. local function weldBetween(a, b)
  1144. local weldd = Instance.new("ManualWeld")
  1145. weldd.Part0 = a
  1146. weldd.Part1 = b
  1147. weldd.C0 = CFrame.new()
  1148. weldd.C1 = b.CFrame:inverse() * a.CFrame
  1149. weldd.Parent = a
  1150. return weldd
  1151. end
  1152.  
  1153.  
  1154. function QuaternionFromCFrame(cf)
  1155. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  1156. local trace = m00 + m11 + m22
  1157. if trace > 0 then
  1158. local s = math.sqrt(1 + trace)
  1159. local recip = 0.5 / s
  1160. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  1161. else
  1162. local i = 0
  1163. if m11 > m00 then
  1164. i = 1
  1165. end
  1166. if m22 > (i == 0 and m00 or m11) then
  1167. i = 2
  1168. end
  1169. if i == 0 then
  1170. local s = math.sqrt(m00 - m11 - m22 + 1)
  1171. local recip = 0.5 / s
  1172. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  1173. elseif i == 1 then
  1174. local s = math.sqrt(m11 - m22 - m00 + 1)
  1175. local recip = 0.5 / s
  1176. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  1177. elseif i == 2 then
  1178. local s = math.sqrt(m22 - m00 - m11 + 1)
  1179. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  1180. end
  1181. end
  1182. end
  1183.  
  1184. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  1185. local xs, ys, zs = x + x, y + y, z + z
  1186. local wx, wy, wz = w * xs, w * ys, w * zs
  1187. local xx = x * xs
  1188. local xy = x * ys
  1189. local xz = x * zs
  1190. local yy = y * ys
  1191. local yz = y * zs
  1192. local zz = z * zs
  1193. 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))
  1194. end
  1195.  
  1196. function QuaternionSlerp(a, b, t)
  1197. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  1198. local startInterp, finishInterp;
  1199. if cosTheta >= 0.0001 then
  1200. if (1 - cosTheta) > 0.0001 then
  1201. local theta = ACOS(cosTheta)
  1202. local invSinTheta = 1 / SIN(theta)
  1203. startInterp = SIN((1 - t) * theta) * invSinTheta
  1204. finishInterp = SIN(t * theta) * invSinTheta
  1205. else
  1206. startInterp = 1 - t
  1207. finishInterp = t
  1208. end
  1209. else
  1210. if (1 + cosTheta) > 0.0001 then
  1211. local theta = ACOS(-cosTheta)
  1212. local invSinTheta = 1 / SIN(theta)
  1213. startInterp = SIN((t - 1) * theta) * invSinTheta
  1214. finishInterp = SIN(t * theta) * invSinTheta
  1215. else
  1216. startInterp = t - 1
  1217. finishInterp = t
  1218. end
  1219. end
  1220. 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
  1221. end
  1222.  
  1223. function Clerp(a, b, t)
  1224. local qa = {QuaternionFromCFrame(a)}
  1225. local qb = {QuaternionFromCFrame(b)}
  1226. local ax, ay, az = a.x, a.y, a.z
  1227. local bx, by, bz = b.x, b.y, b.z
  1228. local _t = 1 - t
  1229. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  1230. end
  1231.  
  1232. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  1233. local frame = IT("Frame")
  1234. frame.BackgroundTransparency = TRANSPARENCY
  1235. frame.BorderSizePixel = BORDERSIZEPIXEL
  1236. frame.Position = POSITION
  1237. frame.Size = SIZE
  1238. frame.BackgroundColor3 = COLOR
  1239. frame.BorderColor3 = BORDERCOLOR
  1240. frame.Name = NAME
  1241. frame.Parent = PARENT
  1242. return frame
  1243. end
  1244.  
  1245. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  1246. local label = IT("TextLabel")
  1247. label.BackgroundTransparency = 1
  1248. label.Size = UD2(1, 0, 1, 0)
  1249. label.Position = UD2(0, 0, 0, 0)
  1250. label.TextColor3 = TEXTCOLOR
  1251. label.TextStrokeTransparency = STROKETRANSPARENCY
  1252. label.TextTransparency = TRANSPARENCY
  1253. label.FontSize = TEXTFONTSIZE
  1254. label.Font = TEXTFONT
  1255. label.BorderSizePixel = BORDERSIZEPIXEL
  1256. label.TextScaled = false
  1257. label.Text = TEXT
  1258. label.Name = NAME
  1259. label.Parent = PARENT
  1260. return label
  1261. end
  1262.  
  1263. function NoOutlines(PART)
  1264. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  1265. end
  1266.  
  1267. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  1268. local NEWWELD = IT(TYPE)
  1269. NEWWELD.Part0 = PART0
  1270. NEWWELD.Part1 = PART1
  1271. NEWWELD.C0 = C0
  1272. NEWWELD.C1 = C1
  1273. NEWWELD.Parent = PARENT
  1274. return NEWWELD
  1275. end
  1276.  
  1277. local S = IT("Sound")
  1278. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  1279. local NEWSOUND = nil
  1280. coroutine.resume(coroutine.create(function()
  1281. NEWSOUND = S:Clone()
  1282. NEWSOUND.Parent = PARENT
  1283. NEWSOUND.Volume = VOLUME
  1284. NEWSOUND.Pitch = PITCH
  1285. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  1286. NEWSOUND:play()
  1287. if DOESLOOP == true then
  1288. NEWSOUND.Looped = true
  1289. else
  1290. repeat wait(1) until NEWSOUND.Playing == false
  1291. NEWSOUND:remove()
  1292. end
  1293. end))
  1294. return NEWSOUND
  1295. end
  1296.  
  1297. function CFrameFromTopBack(at, top, back)
  1298. local right = top:Cross(back)
  1299. 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)
  1300. end
  1301.  
  1302. --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})
  1303. function WACKYEFFECT(Table)
  1304. local TYPE = (Table.EffectType or "Sphere")
  1305. local SIZE = (Table.Size or VT(1,1,1))
  1306. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  1307. local TRANSPARENCY = (Table.Transparency or 0)
  1308. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  1309. local CFRAME = (Table.CFrame or Torso.CFrame)
  1310. local MOVEDIRECTION = (Table.MoveToPos or nil)
  1311. local ROTATION1 = (Table.RotationX or 0)
  1312. local ROTATION2 = (Table.RotationY or 0)
  1313. local ROTATION3 = (Table.RotationZ or 0)
  1314. local MATERIAL = (Table.Material or "Neon")
  1315. local COLOR = (Table.Color or C3(1,1,1))
  1316. local TIME = (Table.Time or 45)
  1317. local SOUNDID = (Table.SoundID or nil)
  1318. local SOUNDPITCH = (Table.SoundPitch or nil)
  1319. local SOUNDVOLUME = (Table.SoundVolume or nil)
  1320. coroutine.resume(coroutine.create(function()
  1321. local PLAYSSOUND = false
  1322. local SOUND = nil
  1323. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  1324. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  1325. PLAYSSOUND = true
  1326. SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
  1327. end
  1328. EFFECT.Color = COLOR
  1329. local MSH = nil
  1330. if TYPE == "Sphere" then
  1331. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  1332. elseif TYPE == "Block" then
  1333. MSH = IT("BlockMesh",EFFECT)
  1334. MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
  1335. elseif TYPE == "Wave" then
  1336. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  1337. elseif TYPE == "Ring" then
  1338. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  1339. elseif TYPE == "Slash" then
  1340. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  1341. elseif TYPE == "Round Slash" then
  1342. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  1343. elseif TYPE == "Swirl" then
  1344. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  1345. elseif TYPE == "Skull" then
  1346. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  1347. elseif TYPE == "Crystal" then
  1348. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  1349. end
  1350. if MSH ~= nil then
  1351. local MOVESPEED = nil
  1352. if MOVEDIRECTION ~= nil then
  1353. MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
  1354. end
  1355. local GROWTH = SIZE - ENDSIZE
  1356. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  1357. if TYPE == "Block" then
  1358. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  1359. else
  1360. EFFECT.CFrame = CFRAME
  1361. end
  1362. for LOOP = 1, TIME+1 do
  1363. Swait()
  1364. MSH.Scale = MSH.Scale - GROWTH/TIME
  1365. if TYPE == "Wave" then
  1366. MSH.Offset = VT(0,0,-MSH.Scale.X/8)
  1367. end
  1368. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  1369. if TYPE == "Block" then
  1370. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  1371. else
  1372. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  1373. end
  1374. if MOVEDIRECTION ~= nil then
  1375. local ORI = EFFECT.Orientation
  1376. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  1377. EFFECT.Orientation = ORI
  1378. end
  1379. end
  1380. EFFECT.Transparency = 1
  1381. if PLAYSSOUND == false then
  1382. EFFECT:remove()
  1383. else
  1384. repeat Swait() until SOUND.Playing == false
  1385. EFFECT:remove()
  1386. end
  1387. else
  1388. if PLAYSSOUND == false then
  1389. EFFECT:remove()
  1390. else
  1391. repeat Swait() until SOUND.Playing == false
  1392. EFFECT:remove()
  1393. end
  1394. end
  1395. end))
  1396. end
  1397.  
  1398. function MakeForm(PART,TYPE)
  1399. if TYPE == "Cyl" then
  1400. local MSH = IT("CylinderMesh",PART)
  1401. elseif TYPE == "Ball" then
  1402. local MSH = IT("SpecialMesh",PART)
  1403. MSH.MeshType = "Sphere"
  1404. elseif TYPE == "Wedge" then
  1405. local MSH = IT("SpecialMesh",PART)
  1406. MSH.MeshType = "Wedge"
  1407. end
  1408. end
  1409.  
  1410. Debris = game:GetService("Debris")
  1411.  
  1412. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  1413. local DIRECTION = CF(StartPos,EndPos).lookVector
  1414. return game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, DIRECTION * Distance), Ignore)
  1415. end
  1416.  
  1417. local FIRECOLOR = C3(1,85/255,0)
  1418.  
  1419. local Particle = IT("ParticleEmitter",nil)
  1420. Particle.Enabled = false
  1421. Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0.6),NumberSequenceKeypoint.new(1,1)})
  1422. Particle.LightEmission = 0.5
  1423. Particle.Rate = 500
  1424. Particle.Rotation = NumberRange.new(-180, 180)
  1425. Particle.RotSpeed = NumberRange.new(-180, 180)
  1426. Particle.Texture = "http://www.roblox.com/asset/?id=1460745664"
  1427. Particle.Color = ColorSequence.new(FIRECOLOR)
  1428.  
  1429. --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false})
  1430. function ParticleEmitter(Table)
  1431. local PRTCL = Particle:Clone()
  1432. local Speed = Table.Speed or 5
  1433. local Drag = Table.Drag or 0
  1434. local Size1 = Table.Size1 or 1
  1435. local Size2 = Table.Size2 or 5
  1436. local Lifetime1 = Table.Lifetime1 or 1
  1437. local Lifetime2 = Table.Lifetime2 or 1.5
  1438. local Parent = Table.Parent or Torso
  1439. local Emit = Table.Emit or 100
  1440. local Offset = Table.Offset or 360
  1441. local Accel = Table.Accel or VT(0,0,0)
  1442. local Enabled = Table.Enabled or false
  1443. PRTCL.Parent = Parent
  1444. PRTCL.Size = NumberSequence.new(Size1,Size2)
  1445. PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  1446. PRTCL.Speed = NumberRange.new(Speed)
  1447. PRTCL.VelocitySpread = Offset
  1448. PRTCL.Drag = Drag
  1449. PRTCL.Acceleration = Accel
  1450. if Enabled == false then
  1451. PRTCL:Emit(Emit)
  1452. Debris:AddItem(PRTCL,Lifetime2)
  1453. else
  1454. PRTCL.Enabled = true
  1455. end
  1456. return PRTCL
  1457. end
  1458.  
  1459. function Pheonix(Size)
  1460. local PHEONIX = IT("Model",nil)
  1461. PHEONIX.Name = "PHEONIX"
  1462. local BASEPART = CreatePart(3, PHEONIX, "Neon", 0, 0.5, "Deep orange", "Wyvern Base",VT(0,0,0),false)
  1463. CreateWeldOrSnapOrMotor("Weld", RootPart, RootPart, BASEPART, CF(0 , 4*Size, 3*Size), CF(0, 0, 0))
  1464. CreateMesh("SpecialMesh", BASEPART, "FileMesh", "90615474", "", VT(1.5,1.5,1.5)*Size, VT(0,0,0))
  1465. local RWING = CreatePart(3, PHEONIX, "Neon", 0, 0.5, "Deep orange", "Right Wing", VT(0,0,0),false)
  1466. local RWELD = CreateWeldOrSnapOrMotor("Weld", BASEPART, BASEPART, RWING, CF(2*Size , 2*Size, 0.75*Size), CF(-2*Size, 0, 0))
  1467. local LWING = CreatePart(3, PHEONIX, "Neon", 0, 0.5, "Deep orange", "Left Wing", VT(0,0,0),false)
  1468. local LWELD = CreateWeldOrSnapOrMotor("Weld", BASEPART, BASEPART, LWING, CF(-2*Size , 2*Size, 0.75*Size), CF(2*Size, 0, 0))
  1469. CreateMesh("SpecialMesh", RWING, "FileMesh", "90615661", "", VT(1.5,1.5,1.5)*Size, VT(0,0,0))
  1470. CreateMesh("SpecialMesh", LWING, "FileMesh", "90615581", "", VT(1.5,1.5,1.5)*Size, VT(0,0,0))
  1471. for _, c in pairs(PHEONIX:GetChildren()) do
  1472. if c.ClassName == "Part" then
  1473. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  1474. c.Color = FIRECOLOR
  1475. end
  1476. end
  1477. PHEONIX.Parent = Weapon
  1478. return PHEONIX,BASEPART,RWING,LWING,RWELD,LWELD
  1479. end
  1480.  
  1481. function turnto(position)
  1482. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  1483. end
  1484.  
  1485. function AddChildrenToTable(FROM,PARENT,DIST,TABLE)
  1486. for _, c in pairs(PARENT:GetDescendants()) do
  1487. if c.ClassName == "Model" then
  1488. if c ~= Character and c:FindFirstChildOfClass("Humanoid") and (c:FindFirstChild("Torso") or c:FindFirstChild("UpperTorso")) then
  1489. local HUMANOID = c:FindFirstChildOfClass("Humanoid")
  1490. local TORSO = (c:FindFirstChild("Torso") or c:FindFirstChild("UpperTorso"))
  1491. if (TORSO.Position - FROM).Magnitude < DIST then
  1492. table.insert(TABLE,c)
  1493. end
  1494. end
  1495. end
  1496. end
  1497. end
  1498.  
  1499. --//=================================\\
  1500. --|| WEAPON CREATION
  1501. --\\=================================//
  1502.  
  1503. Humanoid.DisplayDistanceType = "None"
  1504. local naeeym2 = IT("BillboardGui",Character)
  1505. naeeym2.AlwaysOnTop = true
  1506. naeeym2.Size = UDim2.new(2,35,1,15)
  1507. naeeym2.StudsOffset = Vector3.new(0,1.5,0)
  1508. naeeym2.MaxDistance = 75
  1509. naeeym2.Adornee = Character.Head
  1510. naeeym2.Name = "Name"
  1511. naeeym2.PlayerToHideFrom = Player
  1512. local tecks2 = IT("TextLabel",naeeym2)
  1513. tecks2.BackgroundTransparency = 1
  1514. tecks2.TextScaled = true
  1515. tecks2.BorderSizePixel = 0
  1516. tecks2.Text = "The Pharaoh"
  1517. tecks2.Font = "Bodoni"
  1518. tecks2.TextSize = 30
  1519. tecks2.TextStrokeTransparency = 0
  1520. tecks2.TextColor3 = C3(0,0,0)
  1521. tecks2.TextStrokeColor3 = C3(188/255, 155/255, 93/255)
  1522. tecks2.Size = UDim2.new(1,0,0.5,0)
  1523. tecks2.Parent = naeeym2
  1524. local top = Instance.new("Shirt")
  1525. top.ShirtTemplate = "rbxassetid://182802864"
  1526. top.Parent = Character
  1527. top.Name = "Cloth"
  1528. local bottom = Instance.new("Pants")
  1529. bottom.PantsTemplate = "rbxassetid://182802941"
  1530. bottom.Parent = Character
  1531. bottom.Name = "Cloth"
  1532.  
  1533. --Head.Transparency = 1
  1534. local PRT = CreatePart(3, Character, "Fabric", 0, 0, "Really black", "Hood", VT(1,1,1),false)
  1535. PRT.Color = C3(0,0,0)
  1536. CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,-0.1,0.05), CF(0, 0, 0))
  1537. CreateMesh("SpecialMesh", PRT, "FileMesh", "10661327", "10661334", VT(1,1,1)*1.1, VT(0,0,0))
  1538. CreateMesh("SpecialMesh", Head, "FileMesh", "16150909", "16150889", VT(1,1,1), VT(0,0,0))
  1539. local Handle = CreatePart(3, Weapon, "Concrete", 0, 0, "Cork", "Staff", VT(0,6,0),false)
  1540. MakeForm(Handle,"Cyl")
  1541. local Grasp = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, Handle, CF(0,-1,0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
  1542. local Part = CreatePart(3, Weapon, "Concrete", 0, 0, "Cork", "Staff", VT(0.1,1,0.1),false)
  1543. MakeForm(Part,"Cyl")
  1544. CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0,Handle.Size.Y/2,0), CF(0, 0, 0))
  1545. local Part = CreatePart(3, Weapon, "Concrete", 0, 0, "Cork", "Staff", VT(0.1,1,0.1),false)
  1546. MakeForm(Part,"Cyl")
  1547. 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))
  1548. CreateMesh("SpecialMesh", Part, "FileMesh", "19106648", "19106633", VT(1,1,1)*1.1, VT(0,0,0))
  1549. local Eye = CreatePart(3, Weapon, "Concrete", 0, 1, "Cork", "Eye", VT(0,0,0),false)
  1550. CreateWeldOrSnapOrMotor("Weld", Handle, Part, Eye, CF(0,Part.Size.Y/2+0.17,-0.05), CF(0, 0, 0))
  1551.  
  1552. for _, c in pairs(Weapon:GetChildren()) do
  1553. if c.ClassName == "Part" then
  1554. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  1555. end
  1556. end
  1557.  
  1558. local SKILLTEXTCOLOR = C3(188/255, 155/255, 93/255)
  1559. local SKILLFONT = "Bodoni"
  1560. local SKILLTEXTSIZE = 6
  1561.  
  1562. Weapon.Parent = Character
  1563.  
  1564. Humanoid.Died:connect(function()
  1565. ATTACK = true
  1566. end)
  1567.  
  1568. 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")
  1569. 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")
  1570. 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")
  1571. 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")
  1572. 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")
  1573.  
  1574. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Summon", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 1")
  1575. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Warp", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 2")
  1576. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Pheonix Glare", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 3")
  1577. local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V] Shade Zone", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 4")
  1578. local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[X] Pharaoh's Throne", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 5")
  1579.  
  1580. --//=================================\\
  1581. --|| DAMAGING
  1582. --\\=================================//
  1583.  
  1584. function ApplyDamage(Humanoid,Damage,TorsoPart)
  1585. local defence = Instance.new("BoolValue",Humanoid.Parent)
  1586. defence.Name = ("HitBy"..Player.Name)
  1587. game:GetService("Debris"):AddItem(defence, 0.001)
  1588. Damage = Damage * DAMAGEMULTIPLIER
  1589. if Humanoid.Health ~= 0 then
  1590. local CritChance = MRANDOM(1,100)
  1591. if Damage > Humanoid.Health then
  1592. Damage = math.ceil(Humanoid.Health)
  1593. if Damage == 0 then
  1594. Damage = 0.1
  1595. end
  1596. end
  1597. Humanoid.Health = Humanoid.Health - Damage
  1598. end
  1599. end
  1600.  
  1601. function ApplyAoE(POSITION,RANGE,MINDMG,MAXDMG,FLING,INSTAKILL)
  1602. local CHILDREN = workspace:GetDescendants()
  1603. for index, CHILD in pairs(CHILDREN) do
  1604. if CHILD.ClassName == "Model" and CHILD ~= Character and CHILD.Parent ~= Effects then
  1605. local HUM = CHILD:FindFirstChildOfClass("Humanoid")
  1606. if HUM then
  1607. local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
  1608. if TORSO then
  1609. if (TORSO.Position - POSITION).Magnitude <= RANGE then
  1610. if INSTAKILL == true then
  1611. CHILD:BreakJoints()
  1612. else
  1613. local DMG = MRANDOM(MINDMG,MAXDMG)
  1614. ApplyDamage(HUM,DMG,TORSO)
  1615. end
  1616. if FLING > 0 then
  1617. for _, c in pairs(CHILD:GetChildren()) do
  1618. if c:IsA("BasePart") then
  1619. local bv = Instance.new("BodyVelocity")
  1620. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  1621. bv.velocity = CF(POSITION,TORSO.Position).lookVector*FLING
  1622. bv.Parent = c
  1623. Debris:AddItem(bv,0.05)
  1624. end
  1625. end
  1626. end
  1627. end
  1628. end
  1629. end
  1630. end
  1631. end
  1632. end
  1633.  
  1634. --//=================================\\
  1635. --|| ATTACK FUNCTIONS AND STUFF
  1636. --\\=================================//
  1637.  
  1638. function Raise()
  1639. PLAYANIMS = false
  1640. for i=0, 0.3, 0.1 / Animation_Speed do
  1641. Swait()
  1642. Grasp.C1 = Clerp(Grasp.C1,CF(0, 0, 0) * ANGLES(RAD(45), RAD(0), RAD(45)), 1 / Animation_Speed)
  1643. 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)
  1644. 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)
  1645. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.45, 0) * ANGLES(RAD(150), RAD(7.5), RAD(45)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1646. 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)
  1647. 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)
  1648. 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)
  1649. end
  1650. Rooted = true
  1651. 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})
  1652. 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})
  1653. 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})
  1654. for i=0, 1, 0.1 / Animation_Speed do
  1655. Swait()
  1656. Grasp.C1 = Clerp(Grasp.C1,CF(0, 0, 0) * ANGLES(RAD(45), RAD(0), RAD(45)), 1 / Animation_Speed)
  1657. 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)
  1658. 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)
  1659. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.45, 0) * ANGLES(RAD(150), RAD(7.5), RAD(45)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1660. 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)
  1661. 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)
  1662. 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)
  1663. end
  1664. Rooted = false
  1665. PLAYANIMS = true
  1666. end
  1667.  
  1668. function Attack()
  1669. ATTACK = true
  1670. Raise()
  1671. coroutine.resume(coroutine.create(function()
  1672. end))
  1673. ATTACK = false
  1674. end
  1675.  
  1676. function Summon()
  1677. ATTACK = true
  1678. Raise()
  1679. coroutine.resume(coroutine.create(function()
  1680. local MINIONS = {}
  1681. local HEADMESHES = {{Mesh = 36869983, Texture = 36869975},{Mesh = 63638055, Texture = 63638307}}
  1682. local RIGHTARMS = {{Mesh = 63637701, Texture = 63637809},{Mesh = 36780156, Texture = 36780292}}
  1683. local LEFTARMS = {{Mesh = 63637682, Texture = 63637809},{Mesh = 36780032, Texture = 36780292}}
  1684. local RIGHTLEGS = {{Mesh = 63637711, Texture = 63637809},{Mesh = 36780195, Texture = 36780292}}
  1685. local LEFTLEGS = {{Mesh = 63637691, Texture = 63637809},{Mesh = 36780079, Texture = 36780292}}
  1686. local TORSOS = {{Mesh = 63637732, Texture = 63637809},{Mesh = 36780113, Texture = 36780292}}
  1687. for i = 1, 3 do
  1688. Swait()
  1689. local MINION = CLONE:Clone()
  1690. ANIMATE:Clone().Parent = MINION
  1691. MINION.Name = "Mummy"
  1692. MINION.Parent = Effects
  1693. MINION.Head:ClearAllChildren()
  1694. MINION.HumanoidRootPart.Anchored = true
  1695. MINION.HumanoidRootPart.CFrame = RootPart.CFrame*CF(MRANDOM(-15,15),-10,MRANDOM(-15,15))
  1696. local HITFLOOR = Raycast(MINION.HumanoidRootPart.Position+VT(0,10,0), (CF(MINION.HumanoidRootPart.Position, MINION.HumanoidRootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  1697. if HITFLOOR then
  1698. MINION.HumanoidRootPart.Color = HITFLOOR.Color
  1699. 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})
  1700. local HEDMESH = HEADMESHES[MRANDOM(1,#HEADMESHES)]
  1701. CreateMesh("SpecialMesh", MINION.Head, "FileMesh", HEDMESH.Mesh, HEDMESH.Texture, VT(1,1,1), VT(0,0,0))
  1702. ---------
  1703. local PACKAGE = IT("CharacterMesh",MINION)
  1704. PACKAGE.BodyPart = "RightArm"
  1705. local PACKAGESTUFF = RIGHTARMS[MRANDOM(1,2)]
  1706. PACKAGE.MeshId = PACKAGESTUFF.Mesh
  1707. PACKAGE.OverlayTextureId = PACKAGESTUFF.Texture
  1708. ---------
  1709. local PACKAGE = IT("CharacterMesh",MINION)
  1710. PACKAGE.BodyPart = "LeftArm"
  1711. local PACKAGESTUFF = LEFTARMS[MRANDOM(1,2)]
  1712. PACKAGE.MeshId = PACKAGESTUFF.Mesh
  1713. PACKAGE.OverlayTextureId = PACKAGESTUFF.Texture
  1714. ---------
  1715. local PACKAGE = IT("CharacterMesh",MINION)
  1716. PACKAGE.BodyPart = "RightLeg"
  1717. local PACKAGESTUFF = RIGHTLEGS[MRANDOM(1,2)]
  1718. PACKAGE.MeshId = PACKAGESTUFF.Mesh
  1719. PACKAGE.OverlayTextureId = PACKAGESTUFF.Texture
  1720. ---------
  1721. local PACKAGE = IT("CharacterMesh",MINION)
  1722. PACKAGE.BodyPart = "LeftLeg"
  1723. local PACKAGESTUFF = LEFTLEGS[MRANDOM(1,2)]
  1724. PACKAGE.MeshId = PACKAGESTUFF.Mesh
  1725. PACKAGE.OverlayTextureId = PACKAGESTUFF.Texture
  1726. ---------
  1727. local PACKAGE = IT("CharacterMesh",MINION)
  1728. PACKAGE.BodyPart = "Torso"
  1729. local PACKAGESTUFF = TORSOS[MRANDOM(1,2)]
  1730. PACKAGE.MeshId = PACKAGESTUFF.Mesh
  1731. PACKAGE.OverlayTextureId = PACKAGESTUFF.Texture
  1732. ---------
  1733. table.insert(MINIONS,MINION)
  1734. else
  1735. MINION:remove()
  1736. end
  1737. end
  1738. for e = 1, 100 do
  1739. Swait()
  1740. for i = 1, #MINIONS do
  1741. if MINIONS[i] ~= nil then
  1742. 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})
  1743. MINIONS[i].HumanoidRootPart.CFrame = MINIONS[i].HumanoidRootPart.CFrame * CF(0,0.1,0)
  1744. end
  1745. end
  1746. end
  1747. for i = 1, #MINIONS do
  1748. if MINIONS[i] ~= nil then
  1749. MINIONS[i].HumanoidRootPart.Anchored = false
  1750. end
  1751. end
  1752. for i = 1, #MINIONS do
  1753. coroutine.resume(coroutine.create(function()
  1754. local SHOUTS = {1158091961,1158091668,1158092150}
  1755. local TORSO = MINIONS[i].Torso
  1756. local MUMMY = MINIONS[i]
  1757. local HUMAN = MINIONS[i].Humanoid
  1758. HUMAN.MaxHealth = MRANDOM(20,65)
  1759. HUMAN.Health = HUMAN.MaxHealth
  1760. HUMAN.Died:connect(function()
  1761. CreateSound(SHOUTS[MRANDOM(1,3)], TORSO, 3, 0.5, false)
  1762. end)
  1763. local findNearestTorso = function(POS)
  1764. local list = game.Workspace:GetDescendants()
  1765. local torso = nil
  1766. local dist = 10000
  1767. local temp = nil
  1768. local human = nil
  1769. local temp2 = nil
  1770. for x = 1, #list do
  1771. temp2 = list[x]
  1772. if (temp2.className == "Model") and (temp2 ~= Character) and (temp2.Parent ~= Effects) then
  1773. temp = temp2:findFirstChild("Torso") or temp2:findFirstChild("UpperTorso")
  1774. human = temp2:findFirstChild("Humanoid")
  1775. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  1776. if (temp.Position - POS).magnitude < dist then
  1777. torso = temp
  1778. dist = (temp.Position - POS).magnitude
  1779. end
  1780. end
  1781. end
  1782. end
  1783. return torso, dist
  1784. end
  1785. for i = 1, 60 do
  1786. if HUMAN.Health == 0 then
  1787. break
  1788. end
  1789. wait(1)
  1790. local target,dist= findNearestTorso(TORSO.Position)
  1791. if target then
  1792. HUMAN:MoveTo(target.Position)
  1793. if dist < 5 then
  1794. local ANIM = HUMAN:LoadAnimation(ATANIM)
  1795. ANIM:Play()
  1796. CreateSound(SHOUTS[MRANDOM(1,3)], TORSO, 1, 1, false)
  1797. ApplyAoE(TORSO.CFrame*CF(0,0,-1.2).p,3,5,25,3,false)
  1798. end
  1799. end
  1800. end
  1801. TORSO.Parent:BreakJoints()
  1802. Debris:AddItem(MUMMY,4)
  1803. end))
  1804. end
  1805. end))
  1806. ATTACK = false
  1807. end
  1808.  
  1809. function Warp(Pos)
  1810. ATTACK = true
  1811. Raise()
  1812. PLAYANIMS = false
  1813. local SPOT = Pos
  1814. if Pos == "Mouse" then
  1815. SPOT = Mouse.Hit.p
  1816. end
  1817. local PLAYPOS = RootPart.Position
  1818. Rooted = true
  1819. coroutine.resume(coroutine.create(function()
  1820. repeat
  1821. Swait()
  1822. Grasp.C1 = Clerp(Grasp.C1,CF(0, 0, 0) * ANGLES(RAD(45), RAD(0), RAD(45)), 1 / Animation_Speed)
  1823. 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)
  1824. 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)
  1825. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.45, 0) * ANGLES(RAD(150), RAD(7.5), RAD(45)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1826. 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)
  1827. 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)
  1828. 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)
  1829. until ATTACK == false
  1830. PLAYANIMS = true
  1831. end))
  1832. for i = 1, 10 do
  1833. for _, c in pairs(Weapon:GetChildren()) do
  1834. if c.ClassName == "Part" then
  1835. c.Transparency = c.Transparency + 1/10
  1836. end
  1837. end
  1838. for _, c in pairs(Character:GetChildren()) do
  1839. if c.ClassName == "Part" and c ~= RootPart then
  1840. c.Transparency = c.Transparency + 1/10
  1841. end
  1842. end
  1843. tecks2.TextTransparency = tecks2.TextTransparency + 1/10
  1844. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency + 1/10
  1845. 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})
  1846. wait(0.1)
  1847. end
  1848. CreateSound(743521450, Torso, 5, 0.5, false)
  1849. RootPart.CFrame = CF(SPOT+VT(0,15,0),PLAYPOS)
  1850. UNANCHOR = false
  1851. RootPart.Anchored = true
  1852. for i = 1, 10 do
  1853. wait(0.04)
  1854. 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})
  1855. for _, c in pairs(Weapon:GetChildren()) do
  1856. if c.ClassName == "Part" then
  1857. c.Transparency = c.Transparency - 1/10
  1858. end
  1859. end
  1860. for _, c in pairs(Character:GetChildren()) do
  1861. if c.ClassName == "Part" and c ~= RootPart then
  1862. c.Transparency = c.Transparency - 1/10
  1863. end
  1864. end
  1865. tecks2.TextTransparency = tecks2.TextTransparency - 1/10
  1866. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency - 1/10
  1867. end
  1868. UNANCHOR = true
  1869. RootPart.Anchored = false
  1870. Rooted = false
  1871. ATTACK = false
  1872. end
  1873.  
  1874. function PheonixGlare()
  1875. ATTACK = true
  1876. Rooted = true
  1877. local BURNINGBODIES = {}
  1878. local SIZE = 2
  1879. if Humanoid.Sit == false then
  1880. Raise()
  1881. else
  1882. PLAYANIMS = false
  1883. SIZE = 9
  1884. for i=0, 0.3, 0.1 / Animation_Speed do
  1885. Swait()
  1886. Grasp.C1 = Clerp(Grasp.C1,CF(0, 0, 0) * ANGLES(RAD(45), RAD(0), RAD(45)), 1 / Animation_Speed)
  1887. 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)
  1888. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.45, 0) * ANGLES(RAD(150), RAD(7.5), RAD(45)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1889. end
  1890. 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})
  1891. 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})
  1892. 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})
  1893. for i=0, 1, 0.1 / Animation_Speed do
  1894. Swait()
  1895. Grasp.C1 = Clerp(Grasp.C1,CF(0, 0, 0) * ANGLES(RAD(45), RAD(0), RAD(45)), 1 / Animation_Speed)
  1896. 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)
  1897. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.45, 0) * ANGLES(RAD(150), RAD(7.5), RAD(45)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
  1898. end
  1899. PLAYANIMS = true
  1900. end
  1901. Rooted = true
  1902. local PHEONIX,WBODY,WRWING,WLWING,RWELD2,LWELD2 = Pheonix(SIZE)
  1903. for i=1, 20 do
  1904. Swait()
  1905. 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)
  1906. 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)
  1907. end
  1908. for i=1, 65 do
  1909. Swait()
  1910. 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)
  1911. 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)
  1912. end
  1913. for i = 1, 5 do
  1914. 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})
  1915. 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})
  1916. end
  1917. 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})
  1918. AddChildrenToTable(WBODY.Position,workspace,50*(SIZE/2),BURNINGBODIES)
  1919. ApplyAoE(WBODY.Position,50*(SIZE/2),0,0,130,false)
  1920. for i=1, 15 do
  1921. Swait()
  1922. 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)
  1923. 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)
  1924. end
  1925. coroutine.resume(coroutine.create(function()
  1926. wait(1)
  1927. for i = 1, 150 do
  1928. for i = 1, #BURNINGBODIES do
  1929. if BURNINGBODIES[i] ~= nil then
  1930. if BURNINGBODIES[i].Name ~= "Mummy" then
  1931. local HUM = BURNINGBODIES[i]:FindFirstChildOfClass("Humanoid")
  1932. if HUM then
  1933. if HUM.Health > 0 then
  1934. for _, c in pairs(BURNINGBODIES[i]:GetChildren()) do
  1935. if c:IsA("BasePart") and c.Transparency < 1 then
  1936. 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})
  1937. end
  1938. end
  1939. HUM.Health = HUM.Health - 0.5
  1940. else
  1941. table.remove(BURNINGBODIES,i)
  1942. end
  1943. else
  1944. table.remove(BURNINGBODIES,i)
  1945. end
  1946. else
  1947. for _, c in pairs(BURNINGBODIES[i]:GetChildren()) do
  1948. if c:IsA("BasePart") and c.Transparency < 1 then
  1949. c.Velocity = VT(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5))*5
  1950. 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})
  1951. end
  1952. end
  1953. BURNINGBODIES[i]:BreakJoints()
  1954. table.remove(BURNINGBODIES,i)
  1955. end
  1956. else
  1957. table.remove(BURNINGBODIES,i)
  1958. end
  1959. end
  1960. wait()
  1961. end
  1962. end))
  1963. coroutine.resume(coroutine.create(function()
  1964. for i = 1, 50 do
  1965. Swait()
  1966. WBODY.Transparency = WBODY.Transparency + 0.5/50
  1967. WRWING.Transparency = WBODY.Transparency
  1968. WLWING.Transparency = WBODY.Transparency
  1969. end
  1970. PHEONIX:remove()
  1971. end))
  1972. Rooted = false
  1973. ATTACK = false
  1974. end
  1975.  
  1976. function ShadeZone()
  1977. local HEADMESHES = {{Mesh = 36869983, Texture = 36869975},{Mesh = 63638055, Texture = 63638307}}
  1978. local RIGHTARMS = {{Mesh = 63637701, Texture = 63637809},{Mesh = 36780156, Texture = 36780292}}
  1979. local LEFTARMS = {{Mesh = 63637682, Texture = 63637809},{Mesh = 36780032, Texture = 36780292}}
  1980. local RIGHTLEGS = {{Mesh = 63637711, Texture = 63637809},{Mesh = 36780195, Texture = 36780292}}
  1981. local LEFTLEGS = {{Mesh = 63637691, Texture = 63637809},{Mesh = 36780079, Texture = 36780292}}
  1982. local TORSOS = {{Mesh = 63637732, Texture = 63637809},{Mesh = 36780113, Texture = 36780292}}
  1983. local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 15, Character)
  1984. if HITFLOOR and Effects:FindFirstChild("Shade Zone") == nil then
  1985. ATTACK = true
  1986. local BODIES = {}
  1987. Raise()
  1988. coroutine.resume(coroutine.create(function()
  1989. local ZONE = CreatePart(3, Effects, "Neon", 0, 1, C3(0,0,0), "Shade Zone", VT(45,0,45))
  1990. ZONE.Color = C3(0,0,0)
  1991. MakeForm(ZONE,"Cyl")
  1992. ZONE.CFrame = CF(HITPOS)
  1993. local AURA = CreateSound(1393698948, ZONE, 0, 0.5, true)
  1994. for i =1, 45 do
  1995. Swait()
  1996. AURA.Volume = AURA.Volume + 10/45
  1997. ZONE.Transparency = ZONE.Transparency - 1/45
  1998. ZONE.Size = ZONE.Size + VT(2,0,2)
  1999. end
  2000. local SIZE = ZONE.Size
  2001. for i =1, 400 do
  2002. Swait()
  2003. AddChildrenToTable(ZONE.Position,workspace,ZONE.Size.X/2,BODIES)
  2004. if MRANDOM(1,5) == 1 then
  2005. 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})
  2006. end
  2007. ZONE.Size = SIZE + VT(2 * COS(i / 12),0,2 * COS(i / 12))
  2008. end
  2009. for i =1, 45 do
  2010. Swait()
  2011. AURA.Volume = AURA.Volume - 10/45
  2012. ZONE.Transparency = ZONE.Transparency + 1/45
  2013. ZONE.Size = ZONE.Size - VT(2,0,2)
  2014. end
  2015. ZONE:remove()
  2016. for e = 1, #BODIES do
  2017. Swait()
  2018. if BODIES[e] ~= nil then
  2019. local BOD = BODIES[e]
  2020. for i = 1, 10 do
  2021. for i = 1, #BODIES do
  2022. if (BODIES[i] == BOD and i ~= e) then
  2023. table.remove(BODIES,i)
  2024. end
  2025. end
  2026. end
  2027. coroutine.resume(coroutine.create(function()
  2028. local BODY = BODIES[e]
  2029. local TORSO = BODIES[e]:FindFirstChild("Torso") or BODIES[e]:FindFirstChild("UpperTorso")
  2030. local HUM = BODIES[e]:FindFirstChildOfClass("Humanoid")
  2031. if TORSO and HUM then
  2032. TORSO.Anchored = true
  2033. for i = 1, 15 do
  2034. if HUM.Health > 0 then
  2035. wait(0.1)
  2036. 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})
  2037. TORSO.CFrame = TORSO.CFrame * ANGLES(RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)), RAD(MRANDOM(0,360)))
  2038. HUM.Health = HUM.Health - 1.5
  2039. if HUM.Health == 0 then
  2040. local MINION = CLONE:Clone()
  2041. ANIMATE:Clone().Parent = MINION
  2042. MINION.Name = "Mummy"
  2043. MINION.Parent = Effects
  2044. MINION.Head:ClearAllChildren()
  2045. MINION.Torso.CFrame = TORSO.CFrame
  2046. BODY:remove()
  2047. local HEDMESH = HEADMESHES[MRANDOM(1,#HEADMESHES)]
  2048. CreateMesh("SpecialMesh", MINION.Head, "FileMesh", HEDMESH.Mesh, HEDMESH.Texture, VT(1,1,1), VT(0,0,0))
  2049. ---------
  2050. local PACKAGE = IT("CharacterMesh",MINION)
  2051. PACKAGE.BodyPart = "RightArm"
  2052. local PACKAGESTUFF = RIGHTARMS[MRANDOM(1,2)]
  2053. PACKAGE.MeshId = PACKAGESTUFF.Mesh
  2054. PACKAGE.OverlayTextureId = PACKAGESTUFF.Texture
  2055. ---------
  2056. local PACKAGE = IT("CharacterMesh",MINION)
  2057. PACKAGE.BodyPart = "LeftArm"
  2058. local PACKAGESTUFF = LEFTARMS[MRANDOM(1,2)]
  2059. PACKAGE.MeshId = PACKAGESTUFF.Mesh
  2060. PACKAGE.OverlayTextureId = PACKAGESTUFF.Texture
  2061. ---------
  2062. local PACKAGE = IT("CharacterMesh",MINION)
  2063. PACKAGE.BodyPart = "RightLeg"
  2064. local PACKAGESTUFF = RIGHTLEGS[MRANDOM(1,2)]
  2065. PACKAGE.MeshId = PACKAGESTUFF.Mesh
  2066. PACKAGE.OverlayTextureId = PACKAGESTUFF.Texture
  2067. ---------
  2068. local PACKAGE = IT("CharacterMesh",MINION)
  2069. PACKAGE.BodyPart = "LeftLeg"
  2070. local PACKAGESTUFF = LEFTLEGS[MRANDOM(1,2)]
  2071. PACKAGE.MeshId = PACKAGESTUFF.Mesh
  2072. PACKAGE.OverlayTextureId = PACKAGESTUFF.Texture
  2073. ---------
  2074. local PACKAGE = IT("CharacterMesh",MINION)
  2075. PACKAGE.BodyPart = "Torso"
  2076. local PACKAGESTUFF = TORSOS[MRANDOM(1,2)]
  2077. PACKAGE.MeshId = PACKAGESTUFF.Mesh
  2078. PACKAGE.OverlayTextureId = PACKAGESTUFF.Texture
  2079. ---------
  2080. coroutine.resume(coroutine.create(function()
  2081. local SHOUTS = {1158091961,1158091668,1158092150}
  2082. local TORSO = MINION.Torso
  2083. local MUMMY = MINION
  2084. local HUMAN = MINION.Humanoid
  2085. HUMAN.MaxHealth = MRANDOM(20,65)
  2086. HUMAN.Health = HUMAN.MaxHealth
  2087. HUMAN.Died:connect(function()
  2088. CreateSound(SHOUTS[MRANDOM(1,3)], TORSO, 3, 0.5, false)
  2089. end)
  2090. local findNearestTorso = function(POS)
  2091. local list = game.Workspace:GetDescendants()
  2092. local torso = nil
  2093. local dist = 10000
  2094. local temp = nil
  2095. local human = nil
  2096. local temp2 = nil
  2097. for x = 1, #list do
  2098. temp2 = list[x]
  2099. if (temp2.className == "Model") and (temp2 ~= Character) and (temp2.Parent ~= Effects) then
  2100. temp = temp2:findFirstChild("Torso") or temp2:findFirstChild("UpperTorso")
  2101. human = temp2:findFirstChild("Humanoid")
  2102. if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then
  2103. if (temp.Position - POS).magnitude < dist then
  2104. torso = temp
  2105. dist = (temp.Position - POS).magnitude
  2106. end
  2107. end
  2108. end
  2109. end
  2110. return torso, dist
  2111. end
  2112. for i = 1, 30 do
  2113. if HUMAN.Health == 0 then
  2114. break
  2115. end
  2116. wait(1)
  2117. local target,dist= findNearestTorso(TORSO.Position)
  2118. if target then
  2119. HUMAN:MoveTo(target.Position)
  2120. if dist < 5 then
  2121. local ANIM = HUMAN:LoadAnimation(ATANIM)
  2122. ANIM:Play()
  2123. CreateSound(SHOUTS[MRANDOM(1,3)], TORSO, 1, 1, false)
  2124. ApplyAoE(TORSO.CFrame*CF(0,0,-1.2).p,3,5,25,3,false)
  2125. end
  2126. end
  2127. end
  2128. TORSO.Parent:BreakJoints()
  2129. Debris:AddItem(MUMMY,4)
  2130. end))
  2131. break
  2132. end
  2133. end
  2134. end
  2135. if TORSO then
  2136. TORSO.Anchored = false
  2137. end
  2138. end
  2139. end))
  2140. end
  2141. end
  2142. end))
  2143. ATTACK = false
  2144. end
  2145. end
  2146.  
  2147. function PharaohsThrone()
  2148. local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
  2149. if HITFLOOR then
  2150. ATTACK = true
  2151. Raise()
  2152. coroutine.resume(coroutine.create(function()
  2153. local PYRAMID = IT("Model")
  2154. PYRAMID.Name = "Pyramid"
  2155. local BASEPART = CreatePart(3, PYRAMID, "Concrete", 0, 0, "Wheat", "Pyramid", VT(100,1,100))
  2156. local FIREPART = CreatePart(3, Effects, "Neon", 0, 1, "Wheat", "Pyramid", VT(110,1,110))
  2157. FIREPART.Touched:Connect(function(hit)
  2158. if FIREPART.Transparency ~= 1 then
  2159. if hit.Parent:FindFirstChildOfClass("Humanoid") then
  2160. if hit.Parent.Name == "Mummy" then
  2161. hit.Parent:BreakJoints()
  2162. else
  2163. hit.Parent:FindFirstChildOfClass("Humanoid").Health = hit.Parent:FindFirstChildOfClass("Humanoid").Health - 25
  2164. end
  2165. end
  2166. end
  2167. end)
  2168. ------
  2169. local PILLAR = CreatePart(3, PYRAMID, "Concrete", 0, 0, "Wheat", "Pyramid", VT(5,25,5))
  2170. MakeForm(PILLAR,"Cyl")
  2171. PILLAR.CFrame = BASEPART.CFrame*CF(25,25,25)
  2172. local PILLARTOP = CreatePart(3, PYRAMID, "Concrete", 0, 0, "Wheat", "Pyramid", VT(6,4,6))
  2173. MakeForm(PILLARTOP,"Cyl")
  2174. PILLARTOP.CFrame = PILLAR.CFrame*CF(0,12.5,0)
  2175. local COAL = CreatePart(3, PYRAMID, "Pebble", 0, 0, "Black", "Pyramid", VT(2,2,2))
  2176. COAL.CFrame = PILLARTOP.CFrame*CF(0,PILLARTOP.Size.Y/2,0)
  2177. 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})
  2178. FIRE.LockedToPart = true
  2179. ------
  2180. local PILLAR = CreatePart(3, PYRAMID, "Concrete", 0, 0, "Wheat", "Pyramid", VT(5,25,5))
  2181. MakeForm(PILLAR,"Cyl")
  2182. PILLAR.CFrame = BASEPART.CFrame*CF(-25,25,25)
  2183. local PILLARTOP = CreatePart(3, PYRAMID, "Concrete", 0, 0, "Wheat", "Pyramid", VT(6,4,6))
  2184. MakeForm(PILLARTOP,"Cyl")
  2185. PILLARTOP.CFrame = PILLAR.CFrame*CF(0,12.5,0)
  2186. local COAL = CreatePart(3, PYRAMID, "Pebble", 0, 0, "Black", "Pyramid", VT(2,2,2))
  2187. COAL.CFrame = PILLARTOP.CFrame*CF(0,PILLARTOP.Size.Y/2,0)
  2188. 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})
  2189. FIRE.LockedToPart = true
  2190. ------
  2191. local PILLAR = CreatePart(3, PYRAMID, "Concrete", 0, 0, "Wheat", "Pyramid", VT(5,25,5))
  2192. MakeForm(PILLAR,"Cyl")
  2193. PILLAR.CFrame = BASEPART.CFrame*CF(25,25,-25)
  2194. local PILLARTOP = CreatePart(3, PYRAMID, "Concrete", 0, 0, "Wheat", "Pyramid", VT(6,4,6))
  2195. MakeForm(PILLARTOP,"Cyl")
  2196. PILLARTOP.CFrame = PILLAR.CFrame*CF(0,12.5,0)
  2197. local COAL = CreatePart(3, PYRAMID, "Pebble", 0, 0, "Black", "Pyramid", VT(2,2,2))
  2198. COAL.CFrame = PILLARTOP.CFrame*CF(0,PILLARTOP.Size.Y/2,0)
  2199. 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})
  2200. FIRE.LockedToPart = true
  2201. ------
  2202. local PILLAR = CreatePart(3, PYRAMID, "Concrete", 0, 0, "Wheat", "Pyramid", VT(5,25,5))
  2203. MakeForm(PILLAR,"Cyl")
  2204. PILLAR.CFrame = BASEPART.CFrame*CF(-25,25,-25)
  2205. local PILLARTOP = CreatePart(3, PYRAMID, "Concrete", 0, 0, "Wheat", "Pyramid", VT(6,4,6))
  2206. MakeForm(PILLARTOP,"Cyl")
  2207. PILLARTOP.CFrame = PILLAR.CFrame*CF(0,12.5,0)
  2208. local COAL = CreatePart(3, PYRAMID, "Pebble", 0, 0, "Black", "Pyramid", VT(2,2,2))
  2209. COAL.CFrame = PILLARTOP.CFrame*CF(0,PILLARTOP.Size.Y/2,0)
  2210. 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})
  2211. FIRE.LockedToPart = true
  2212. ------
  2213. FIREPART.Color = FIRECOLOR
  2214. FIREPART.CFrame = RootPart.CFrame*CF(0,-3.3,65)
  2215. 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})
  2216. local LASTPART = nil
  2217. for i = 1, 35 do
  2218. local PART = CreatePart(3, PYRAMID, "Concrete", 0, 0, "Wheat", "Pyramid", VT(100-i*2,1,100-i*2))
  2219. PART.CFrame = BASEPART.CFrame*CF(0,i,0)
  2220. LASTPART = PART
  2221. local PART = CreatePart(3, PYRAMID, "Marble", 0, 0, "Cork", "Pyramid", VT(5,1.1,100.1-i*2))
  2222. PART.CFrame = BASEPART.CFrame*CF(0,i,0)
  2223. local PART = CreatePart(3, PYRAMID, "Marble", 0, 0, "Cork", "Pyramid", VT(100.1-i*2,1.1,5))
  2224. PART.CFrame = BASEPART.CFrame*CF(0,i,0)
  2225. local PART = CreatePart(3, PYRAMID, "Granite", 0, 0, "Cork", "Pyramid", VT(7,1.05,100.05-i*2))
  2226. PART.CFrame = BASEPART.CFrame*CF(0,i,0)
  2227. local PART = CreatePart(3, PYRAMID, "Granite", 0, 0, "Cork", "Pyramid", VT(100.05-i*2,1.05,7))
  2228. PART.CFrame = BASEPART.CFrame*CF(0,i,0)
  2229. end
  2230. local PART = CreatePart(3, PYRAMID, "Marble", 0, 0, "Cork", "Pyramid", VT(20,0.1,20))
  2231. PART.CFrame = LASTPART.CFrame*CF(0,LASTPART.Size.Y/2,0)
  2232. FIRE.Rate = 999
  2233. local CHAIR1 = CreatePart(3, PYRAMID, "Concrete", 0, 0, "Dark stone grey", "Throne", VT(7,1,7))
  2234. CHAIR1.CFrame = BASEPART.CFrame*CF(0,36,0)
  2235. local CHAIR2 = CreatePart(3, PYRAMID, "Concrete", 0, 0, "Dark stone grey", "Throne", VT(5,1,5))
  2236. CHAIR2.CFrame = CHAIR1.CFrame*CF(0,1,0)
  2237. local CHAIR3 = CreatePart(3, PYRAMID, "Concrete", 0, 0, "Mid gray", "Throne", VT(3,1,3))
  2238. CHAIR3.CFrame = CHAIR2.CFrame*CF(0,1,0)
  2239. local SEAT = IT("Seat",PYRAMID)
  2240. SEAT.Size = VT(2,0.2,2)
  2241. SEAT.Material = "Concrete"
  2242. SEAT.Anchored = true
  2243. SEAT.BrickColor = BRICKC"Dark orange"
  2244. SEAT.CFrame = CHAIR3.CFrame*CF(0,0.55,-0.5)
  2245. local CHAIR4 = CreatePart(3, PYRAMID, "Concrete", 0, 0, "Mid gray", "Throne", VT(3,5,1))
  2246. CHAIR4.CFrame = CHAIR3.CFrame*CF(0,3,1)
  2247. local CHAIR5 = CreatePart(3, PYRAMID, "Concrete", 0, 0, "Dark orange", "Throne", VT(2,4.7,1))
  2248. CHAIR5.CFrame = CHAIR4.CFrame*CF(0,0,-0.1)
  2249. local CHAIR6 = CreatePart(3, PYRAMID, "Concrete", 0, 0, "Mid gray", "Throne", VT(0.5,2,2))
  2250. CHAIR6.CFrame = CHAIR3.CFrame*CF(1.5,0.75,0)
  2251. local CHAIR7 = CreatePart(3, PYRAMID, "Concrete", 0, 0, "Mid gray", "Throne", VT(0.5,2,2))
  2252. CHAIR7.CFrame = CHAIR3.CFrame*CF(-1.5,0.75,0)
  2253. PYRAMID.PrimaryPart = BASEPART
  2254. PYRAMID:SetPrimaryPartCFrame(RootPart.CFrame*CF(0,-50,65))
  2255. PYRAMID.Parent = Weapon
  2256. for i = 1, 25 do
  2257. Swait()
  2258. FIREPART.Transparency = FIREPART.Transparency - 1/25
  2259. end
  2260. for _, c in pairs(PYRAMID:GetChildren()) do
  2261. if c:IsA("BasePart") then
  2262. c.CanCollide = true
  2263. end
  2264. end
  2265. local RESET = PYRAMID.Changed:Connect(function()
  2266. PYRAMID.Parent = workspace
  2267. end)
  2268. CreateSound(130972023, BASEPART, 10, 0.8, false)
  2269. for i = 1, 46*4 do
  2270. Swait()
  2271. PYRAMID:SetPrimaryPartCFrame(BASEPART.CFrame*CF(0,0.25,0))
  2272. end
  2273. for i = 1, 25 do
  2274. Swait()
  2275. FIREPART.Transparency = FIREPART.Transparency + 1/25
  2276. end
  2277. FIRE.Enabled = false
  2278. local SINKING = false
  2279. SIT.Changed:Connect(function()
  2280. if SIT.Value == false and SINKING == false then
  2281. SINKING = true
  2282. local PRT = CreatePart(3, PYRAMID, "Concrete", 0, 0, "Dark orange", "Throne", VT(2,0.2,2))
  2283. PRT.CFrame = SEAT.CFrame
  2284. SEAT:remove()
  2285. wait(1)
  2286. FIRE.Enabled = true
  2287. for i = 1, 25 do
  2288. Swait()
  2289. FIREPART.Transparency = FIREPART.Transparency - 1/25
  2290. end
  2291. for i = 1, 46*4 do
  2292. Swait()
  2293. FIREPART.Size = FIREPART.Size - VT(0.003*i,0,0.003*i)
  2294. PYRAMID:SetPrimaryPartCFrame(BASEPART.CFrame*CF(0,-0.25,0))
  2295. end
  2296. for i = 1, 25 do
  2297. Swait()
  2298. FIREPART.Size = FIREPART.Size - VT((0.003*i)*45,0,(0.003*i)*45)
  2299. FIREPART.Transparency = FIREPART.Transparency + 1/25
  2300. end
  2301. FIRE.Enabled = false
  2302. Debris:AddItem(FIREPART,5)
  2303. RESET:disconnect()
  2304. PYRAMID:remove()
  2305. end
  2306. end)
  2307. end))
  2308. ATTACK = false
  2309. end
  2310. end
  2311.  
  2312. --//=================================\\
  2313. --|| ASSIGN THINGS TO KEYS
  2314. --\\=================================//
  2315.  
  2316. function MouseDown(Mouse)
  2317. if ATTACK == false then
  2318. end
  2319. end
  2320.  
  2321. function MouseUp(Mouse)
  2322. HOLD = false
  2323. end
  2324.  
  2325. function KeyDown(Key)
  2326. KEYHOLD = true
  2327. if Humanoid.Sit == false then
  2328. if Key == "z" and ATTACK == false then
  2329. Summon()
  2330. end
  2331.  
  2332. if Key == "b" and ATTACK == false then
  2333. if Weapon:FindFirstChild("Pyramid") == nil then
  2334. Warp("Mouse")
  2335. else
  2336. if Weapon.Pyramid:FindFirstChild("Seat") then
  2337. Warp(Weapon.Pyramid.Seat.Position+VT(0,5,0))
  2338. end
  2339. end
  2340. end
  2341.  
  2342. if Key == "v" and ATTACK == false then
  2343. ShadeZone()
  2344. end
  2345.  
  2346. if Key == "x" and ATTACK == false then
  2347. if Weapon:FindFirstChild("Pyramid") == nil then
  2348. PharaohsThrone()
  2349. else
  2350. SIT.Value = true
  2351. end
  2352. end
  2353. end
  2354.  
  2355. if Key == "c" and ATTACK == false then
  2356. PheonixGlare()
  2357. end
  2358. end
  2359.  
  2360. function KeyUp(Key)
  2361. KEYHOLD = false
  2362. end
  2363.  
  2364. Mouse.Button1Down:connect(function(NEWKEY)
  2365. MouseDown(NEWKEY)
  2366. end)
  2367. Mouse.Button1Up:connect(function(NEWKEY)
  2368. MouseUp(NEWKEY)
  2369. end)
  2370. Mouse.KeyDown:connect(function(NEWKEY)
  2371. KeyDown(NEWKEY)
  2372. end)
  2373. Mouse.KeyUp:connect(function(NEWKEY)
  2374. KeyUp(NEWKEY)
  2375. end)
  2376.  
  2377. --//=================================\\
  2378. --\\=================================//
  2379.  
  2380.  
  2381. function unanchor()
  2382. if UNANCHOR == true then
  2383. RootPart.Anchored = false
  2384. end
  2385. g = Character:GetChildren()
  2386. for i = 1, #g do
  2387. if g[i].ClassName == "Part" and g[i] ~= RootPart then
  2388. g[i].Anchored = false
  2389. end
  2390. end
  2391. g = Weapon:GetChildren()
  2392. for i = 1, #g do
  2393. if g[i].ClassName == "Part" then
  2394. g[i].Anchored = false
  2395. end
  2396. end
  2397. end
  2398.  
  2399.  
  2400. --//=================================\\
  2401. --|| WRAP THE WHOLE SCRIPT UP
  2402. --\\=================================//
  2403.  
  2404. Humanoid.Changed:connect(function(Jump)
  2405. if Jump == "Jump" and (Disable_Jump == true) then
  2406. Humanoid.Jump = false
  2407. end
  2408. end)
  2409.  
  2410. while true do
  2411. Swait()
  2412. script.Parent = WEAPONGUI
  2413. ANIMATE.Parent = nil
  2414. if Humanoid then
  2415. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  2416. IDLEANIMATION:Play()
  2417. end
  2418. SINE = SINE + CHANGE
  2419. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  2420. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  2421. Ignore = {Torso,RootPart,RightLeg,LeftLeg,RightLeg,Head,RightArm,LeftArm,PRT}
  2422. local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
  2423. local HITFLOOR,HITPOS = CastProperRay(RootPart.Position, RootPart.Position-VT(0,15,0), 4, Ignore)
  2424. local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
  2425. if ANIM == "Walk" and TORSOVELOCITY > 1 then
  2426. 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)
  2427. 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)
  2428. 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)
  2429. 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)
  2430. elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
  2431. RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2432. 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)
  2433. 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)
  2434. 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)
  2435. end
  2436. if Humanoid.Sit == false then
  2437. SIT.Value = false
  2438. if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
  2439. ANIM = "Jump"
  2440. if PLAYANIMS == true then
  2441. Grasp.C1 = Clerp(Grasp.C1,CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2442. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2443. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2444. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(20)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  2445. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(-40), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  2446. 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)
  2447. 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)
  2448. end
  2449. elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
  2450. ANIM = "Fall"
  2451. if PLAYANIMS == true then
  2452. Grasp.C1 = Clerp(Grasp.C1,CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2453. RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2454. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
  2455. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(60)) * RIGHTSHOULDERC0, 0.2 / Animation_Speed)
  2456. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-60)) * LEFTSHOULDERC0, 0.2 / Animation_Speed)
  2457. 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)
  2458. 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)
  2459. end
  2460. elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
  2461. ANIM = "Idle"
  2462. if PLAYANIMS == true then
  2463. Grasp.C1 = Clerp(Grasp.C1,CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2464. 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)
  2465. 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)
  2466. 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)
  2467. 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)
  2468. 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)
  2469. 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)
  2470. end
  2471. elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
  2472. ANIM = "Walk"
  2473. if PLAYANIMS == true then
  2474. 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)
  2475. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2476. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2477. 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)
  2478. 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)
  2479. 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)
  2480. 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)
  2481. end
  2482. end
  2483. else
  2484. SIT.Value = true
  2485. if PLAYANIMS == true then
  2486. Grasp.C1 = Clerp(Grasp.C1,CF(0, 0.85, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
  2487. 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)
  2488. 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)
  2489. 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)
  2490. 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)
  2491. 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)
  2492. 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)
  2493. end
  2494. end
  2495. unanchor()
  2496. Humanoid.MaxHealth = "inf"
  2497. Humanoid.Health = "inf"
  2498. if Rooted == false then
  2499. Disable_Jump = false
  2500. Humanoid.WalkSpeed = Speed
  2501. elseif Rooted == true then
  2502. Disable_Jump = true
  2503. Humanoid.WalkSpeed = 0
  2504. end
  2505. for _, c in pairs(Character:GetChildren()) do
  2506. if c.ClassName == "Part" and c.Name ~= "Eye" then
  2507. c.Material = "Neon"
  2508. if c:FindFirstChildOfClass("ParticleEmitter") then
  2509. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  2510. end
  2511. c.Color = C3(0,0,0)
  2512. if c == Head then
  2513. if c:FindFirstChild("face") then
  2514. c.face:remove()
  2515. end
  2516. end
  2517. elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.Name == "Body Colors" then
  2518. c:remove()
  2519. elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then
  2520. c:remove()
  2521. end
  2522. end
  2523. sick.SoundId = "rbxassetid://1551788627"
  2524. sick.Looped = true
  2525. sick.Pitch = 1
  2526. sick.Volume = 3
  2527. sick.Parent = Torso
  2528. sick:Resume()
  2529. Humanoid.Name = "Pharaoh"
  2530. end
  2531.  
  2532. --//=================================\\
  2533. --\\=================================//
  2534.  
  2535.  
  2536.  
  2537.  
  2538.  
  2539. --//====================================================\\--
  2540. --|| END OF SCRIPT
  2541. --\\====================================================//--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement