Advertisement
gecksad

Untitled

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