meninodapacocaII

Untitled

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