Advertisement
SlySlixty

Untitled

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