Fullgamer309

Untitled

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