Advertisement
Super_Nagga

Untitled

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