Advertisement
gecksad

Untitled

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