Advertisement
Axelpuff

Pharaoh FE

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