Advertisement
WaverlyCoal

FE The Pharaoh

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