SHARE
TWEET

Pharaoh

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