Advertisement
rafael1449

Pharaoh

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