Advertisement
Guest User

ROBLOX Pharaoh Script NOW FE!

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