Advertisement
GojiGaming1337

Untitled

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