Advertisement
Guest User

Untitled

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