Advertisement
zza

Pharaoh

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