Advertisement
StarzoZero

Roblox FE Pharaoh

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