ericdesouza

The ghost

Apr 23rd, 2018
252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --//====================================================\\--
  2. --|| CREATED BY SHACKLUSTER
  3. --\\====================================================//--
  4.  
  5.  
  6.  
  7. wait(0.2)
  8.  
  9.  
  10.  
  11. Player = game:GetService("Players").LocalPlayer
  12. PlayerGui = Player.PlayerGui
  13. Cam = workspace.CurrentCamera
  14. Backpack = Player.Backpack
  15. Character = Player.Character
  16. Humanoid = Character.Humanoid
  17. Mouse = Player:GetMouse()
  18. RootPart = Character["HumanoidRootPart"]
  19. Torso = Character["Torso"]
  20. Head = Character["Head"]
  21. RightArm = Character["Right Arm"]
  22. LeftArm = Character["Left Arm"]
  23. RightLeg = Character["Right Leg"]
  24. LeftLeg = Character["Left Leg"]
  25. RootJoint = RootPart["RootJoint"]
  26. Neck = Torso["Neck"]
  27. RightShoulder = Torso["Right Shoulder"]
  28. LeftShoulder = Torso["Left Shoulder"]
  29. RightHip = Torso["Right Hip"]
  30. LeftHip = Torso["Left Hip"]
  31. local sick = Instance.new("Sound",Character)
  32. sick.SoundId = "rbxassetid://971457500"
  33. sick.Looped = true
  34. sick.Pitch = 1
  35. sick.Volume = 1.5
  36. sick:Play()
  37.  
  38. IT = Instance.new
  39. CF = CFrame.new
  40. VT = Vector3.new
  41. RAD = math.rad
  42. C3 = Color3.new
  43. UD2 = UDim2.new
  44. BRICKC = BrickColor.new
  45. ANGLES = CFrame.Angles
  46. EULER = CFrame.fromEulerAnglesXYZ
  47. COS = math.cos
  48. ACOS = math.acos
  49. SIN = math.sin
  50. ASIN = math.asin
  51. ABS = math.abs
  52. MRANDOM = math.random
  53. FLOOR = math.floor
  54.  
  55.  
  56.  
  57.  
  58. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  59. local NEWMESH = IT(MESH)
  60. if MESH == "SpecialMesh" then
  61. NEWMESH.MeshType = MESHTYPE
  62. if MESHID ~= "nil" and MESHID ~= "" then
  63. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  64. end
  65. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  66. end
  67. end
  68. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  69. NEWMESH.Scale = SCALE
  70. NEWMESH.Parent = PARENT
  71. return NEWMESH
  72. end
  73.  
  74. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  75. local NEWPART = IT("Part")
  76. NEWPART.formFactor = FORMFACTOR
  77. NEWPART.Reflectance = REFLECTANCE
  78. NEWPART.Transparency = TRANSPARENCY
  79. NEWPART.CanCollide = false
  80. NEWPART.Locked = true
  81. NEWPART.Anchored = true
  82. if ANCHOR == false then
  83. NEWPART.Anchored = false
  84. end
  85. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  86. NEWPART.Name = NAME
  87. NEWPART.Size = SIZE
  88. NEWPART.Position = Torso.Position
  89. NEWPART.Material = MATERIAL
  90. NEWPART:BreakJoints()
  91. NEWPART.Parent = PARENT
  92. return NEWPART
  93. end
  94.  
  95. --//=================================\\
  96. --|| CUSTOMIZATION
  97. --\\=================================//
  98.  
  99. Player_Size = 1 --Size of the player.
  100. Animation_Speed = 3
  101. Frame_Speed = 1 / 30 -- (1 / 10) OR (1 / 30)
  102.  
  103. local Speed = 16
  104. local Effects2 = {}
  105.  
  106. --//=================================\\
  107. --|| END OF CUSTOMIZATION
  108. --\\=================================//
  109.  
  110. local function weldBetween(a, b)
  111. local weldd = Instance.new("ManualWeld")
  112. weldd.Part0 = a
  113. weldd.Part1 = b
  114. weldd.C0 = CFrame.new()
  115. weldd.C1 = b.CFrame:inverse() * a.CFrame
  116. weldd.Parent = a
  117. return weldd
  118. end
  119.  
  120. --//=================================\\
  121. --|| USEFUL VALUES
  122. --\\=================================//
  123.  
  124. local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  125. local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
  126. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  127. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  128. local CHANGEDEFENSE = 0
  129. local CHANGEDAMAGE = 0
  130. local CHANGEMOVEMENT = 0
  131. local ANIM = "Idle"
  132. local ATTACK = false
  133. local EQUIPPED = false
  134. local HOLD = false
  135. local COMBO = 1
  136. local Rooted = false
  137. local SINE = 0
  138. local KEYHOLD = false
  139. local CHANGE = 2 / Animation_Speed
  140. local WALKINGANIM = false
  141. local WALK = 0
  142. local VALUE1 = false
  143. local VALUE2 = false
  144. local ROBLOXIDLEANIMATION = IT("Animation")
  145. ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
  146. ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
  147. --ROBLOXIDLEANIMATION.Parent = Humanoid
  148. local WEAPONGUI = IT("ScreenGui", PlayerGui)
  149. WEAPONGUI.Name = "Weapon GUI"
  150. local Effects = IT("Folder", Character)
  151. Effects.Name = "Effects"
  152. local ANIMATOR = Humanoid.Animator
  153. local ANIMATE = Character.Animate
  154. local HITPLAYERSOUNDS = {--[["199149137", "199149186", "199149221", "199149235", "199149269", "199149297"--]]"263032172", "263032182", "263032200", "263032221", "263032252", "263033191"}
  155. local HITARMORSOUNDS = {"199149321", "199149338", "199149367", "199149409", "199149452"}
  156. local HITWEAPONSOUNDS = {"199148971", "199149025", "199149072", "199149109", "199149119"}
  157. local HITBLOCKSOUNDS = {"199148933", "199148947"}
  158. local UNANCHOR = true
  159.  
  160. local SKILLTEXTCOLOR = C3(0,0,0)
  161.  
  162. --//=================================\\
  163. --\\=================================//
  164.  
  165. function WACKYEFFECT(Table)
  166. local TYPE = (Table.EffectType or "Sphere")
  167. local SIZE = (Table.Size or VT(1,1,1))
  168. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  169. local TRANSPARENCY = (Table.Transparency or 0)
  170. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  171. local CFRAME = (Table.CFrame or Torso.CFrame)
  172. local MOVEDIRECTION = (Table.MoveToPos or nil)
  173. local ROTATION1 = (Table.RotationX or 0)
  174. local ROTATION2 = (Table.RotationY or 0)
  175. local ROTATION3 = (Table.RotationZ or 0)
  176. local MATERIAL = (Table.Material or "Glass")
  177. local COLOR = (Table.Color or C3(1,1,1))
  178. local TIME = (Table.Time or 45)
  179. local SOUNDID = (Table.SoundID or nil)
  180. local SOUNDPITCH = (Table.SoundPitch or nil)
  181. local SOUNDVOLUME = (Table.SoundVolume or nil)
  182. end
  183. --//=================================\\
  184. --|| SAZERENOS' ARTIFICIAL HEARTBEAT
  185. --\\=================================//
  186.  
  187. ArtificialHB = Instance.new("BindableEvent", script)
  188. ArtificialHB.Name = "ArtificialHB"
  189.  
  190. script:WaitForChild("ArtificialHB")
  191.  
  192. frame = Frame_Speed
  193. tf = 0
  194. allowframeloss = false
  195. tossremainder = false
  196. lastframe = tick()
  197. script.ArtificialHB:Fire()
  198.  
  199. game:GetService("RunService").Heartbeat:connect(function(s, p)
  200. tf = tf + s
  201. if tf >= frame then
  202. if allowframeloss then
  203. script.ArtificialHB:Fire()
  204. lastframe = tick()
  205. else
  206. for i = 1, math.floor(tf / frame) do
  207. script.ArtificialHB:Fire()
  208. end
  209. lastframe = tick()
  210. end
  211. if tossremainder then
  212. tf = 0
  213. else
  214. tf = tf - frame * math.floor(tf / frame)
  215. end
  216. end
  217. end)
  218.  
  219. --//=================================\\
  220. --\\=================================//
  221.  
  222.  
  223. Character["Left Leg"].Transparency = 0.5
  224. Character["Head"].Transparency = 0.5
  225. Character["Right Leg"].Transparency = 0.5
  226. Character["Torso"].Transparency = 0.5
  227. Character["Left Arm"].Transparency = 0.5
  228. Character["Right Arm"].Transparency = 0.5
  229.  
  230.  
  231. --//=================================\\
  232. --|| SOME FUNCTIONS
  233. --\\=================================//
  234.  
  235. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  236. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  237. end
  238.  
  239. function PositiveAngle(NUMBER)
  240. if NUMBER >= 0 then
  241. NUMBER = 0
  242. end
  243. return NUMBER
  244. end
  245.  
  246. function NegativeAngle(NUMBER)
  247. if NUMBER <= 0 then
  248. NUMBER = 0
  249. end
  250. return NUMBER
  251. end
  252.  
  253. function Swait(NUMBER)
  254. if NUMBER == 0 or NUMBER == nil then
  255. ArtificialHB.Event:wait()
  256. else
  257. for i = 1, NUMBER do
  258. ArtificialHB.Event:wait()
  259. end
  260. end
  261. end
  262.  
  263. function QuaternionFromCFrame(cf)
  264. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  265. local trace = m00 + m11 + m22
  266. if trace > 0 then
  267. local s = math.sqrt(1 + trace)
  268. local recip = 0.5 / s
  269. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  270. else
  271. local i = 0
  272. if m11 > m00 then
  273. i = 1
  274. end
  275. if m22 > (i == 0 and m00 or m11) then
  276. i = 2
  277. end
  278. if i == 0 then
  279. local s = math.sqrt(m00 - m11 - m22 + 1)
  280. local recip = 0.5 / s
  281. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  282. elseif i == 1 then
  283. local s = math.sqrt(m11 - m22 - m00 + 1)
  284. local recip = 0.5 / s
  285. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  286. elseif i == 2 then
  287. local s = math.sqrt(m22 - m00 - m11 + 1)
  288. local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  289. end
  290. end
  291. end
  292.  
  293. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  294. local xs, ys, zs = x + x, y + y, z + z
  295. local wx, wy, wz = w * xs, w * ys, w * zs
  296. local xx = x * xs
  297. local xy = x * ys
  298. local xz = x * zs
  299. local yy = y * ys
  300. local yz = y * zs
  301. local zz = z * zs
  302. 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))
  303. end
  304.  
  305. function QuaternionSlerp(a, b, t)
  306. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  307. local startInterp, finishInterp;
  308. if cosTheta >= 0.0001 then
  309. if (1 - cosTheta) > 0.0001 then
  310. local theta = ACOS(cosTheta)
  311. local invSinTheta = 1 / SIN(theta)
  312. startInterp = SIN((1 - t) * theta) * invSinTheta
  313. finishInterp = SIN(t * theta) * invSinTheta
  314. else
  315. startInterp = 1 - t
  316. finishInterp = t
  317. end
  318. else
  319. if (1 + cosTheta) > 0.0001 then
  320. local theta = ACOS(-cosTheta)
  321. local invSinTheta = 1 / SIN(theta)
  322. startInterp = SIN((t - 1) * theta) * invSinTheta
  323. finishInterp = SIN(t * theta) * invSinTheta
  324. else
  325. startInterp = t - 1
  326. finishInterp = t
  327. end
  328. end
  329. 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
  330. end
  331.  
  332. function Clerp(a, b, t)
  333. local qa = {QuaternionFromCFrame(a)}
  334. local qb = {QuaternionFromCFrame(b)}
  335. local ax, ay, az = a.x, a.y, a.z
  336. local bx, by, bz = b.x, b.y, b.z
  337. local _t = 1 - t
  338. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  339. end
  340.  
  341. function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  342. local frame = IT("Frame")
  343. frame.BackgroundTransparency = TRANSPARENCY
  344. frame.BorderSizePixel = BORDERSIZEPIXEL
  345. frame.Position = POSITION
  346. frame.Size = SIZE
  347. frame.BackgroundColor3 = COLOR
  348. frame.BorderColor3 = BORDERCOLOR
  349. frame.Name = NAME
  350. frame.Parent = PARENT
  351. return frame
  352. end
  353.  
  354. function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  355. local label = IT("TextLabel")
  356. label.BackgroundTransparency = 1
  357. label.Size = UD2(1, 0, 1, 0)
  358. label.Position = UD2(0, 0, 0, 0)
  359. label.TextColor3 = TEXTCOLOR
  360. label.TextStrokeTransparency = STROKETRANSPARENCY
  361. label.TextTransparency = TRANSPARENCY
  362. label.FontSize = TEXTFONTSIZE
  363. label.Font = TEXTFONT
  364. label.BorderSizePixel = BORDERSIZEPIXEL
  365. label.TextScaled = false
  366. label.Text = TEXT
  367. label.Name = NAME
  368. label.Parent = PARENT
  369. return label
  370. end
  371.  
  372. function NoOutlines(PART)
  373. PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
  374. end
  375.  
  376.  
  377. function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
  378. local NEWWELD = IT(TYPE)
  379. NEWWELD.Part0 = PART0
  380. NEWWELD.Part1 = PART1
  381. NEWWELD.C0 = C0
  382. NEWWELD.C1 = C1
  383. NEWWELD.Parent = PARENT
  384. return NEWWELD
  385. end
  386.  
  387. function CreateSound(ID, PARENT, VOLUME, PITCH)
  388. local NEWSOUND = nil
  389. coroutine.resume(coroutine.create(function()
  390. NEWSOUND = IT("Sound", PARENT)
  391. NEWSOUND.Volume = VOLUME
  392. NEWSOUND.Pitch = PITCH
  393. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  394. Swait()
  395. NEWSOUND:play()
  396. game:GetService("Debris"):AddItem(NEWSOUND, 10)
  397. end))
  398. return NEWSOUND
  399. end
  400.  
  401. function CFrameFromTopBack(at, top, back)
  402. local right = top:Cross(back)
  403. 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)
  404. end
  405.  
  406. function CreateSwirl(SIZE,WAIT,CFRAME,DOESROT,ROT,COLOR,GROW)
  407. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(0,0,0))
  408. wave.Color = COLOR
  409. local mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
  410. wave.CFrame = CFRAME
  411. coroutine.resume(coroutine.create(function(PART)
  412. for i = 1, WAIT do
  413. Swait()
  414. mesh.Scale = mesh.Scale + GROW
  415. mesh.Offset = VT(0,0,-(mesh.Scale.X/8))
  416. if DOESROT == true then
  417. wave.CFrame = wave.CFrame * CFrame.fromEulerAnglesXYZ(0,ROT,0)
  418. end
  419. wave.Transparency = wave.Transparency + (0.5/WAIT)
  420. if wave.Transparency > 0.99 then
  421. wave:remove()
  422. end
  423. end
  424. end))
  425. end
  426.  
  427. function MagicSphere(SIZE,WAIT,CFRAME,COLOR,GROW)
  428. local wave = CreatePart(3, Effects, "Neon", 0, 0, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  429. wave.Color = COLOR
  430. local mesh = CreateMesh("SpecialMesh", wave, "Sphere", "", "", SIZE, VT(0,0,0))
  431. wave.CFrame = CFRAME
  432. coroutine.resume(coroutine.create(function(PART)
  433. for i = 1, WAIT do
  434. Swait()
  435. mesh.Scale = mesh.Scale + GROW
  436. wave.Transparency = wave.Transparency + (1/WAIT)
  437. if wave.Transparency > 0.99 then
  438. wave:remove()
  439. end
  440. end
  441. end))
  442. end
  443.  
  444. function Slice(KIND,SIZE,WAIT,CFRAME,COLOR,GROW)
  445. local wave = CreatePart(3, Effects, "Neon", 0, 0.5, BRICKC(COLOR), "Effect", VT(1,1,1), true)
  446. local mesh = nil
  447. if KIND == "Base" then
  448. mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "448386996", "", VT(0,SIZE/10,SIZE/10), VT(0,0,0))
  449. elseif KIND == "Thin" then
  450. mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662586858", "", VT(SIZE/10,0,SIZE/10), VT(0,0,0))
  451. elseif KIND == "Round" then
  452. mesh = CreateMesh("SpecialMesh", wave, "FileMesh", "662585058", "", VT(SIZE/10,0,SIZE/10), VT(0,0,0))
  453. end
  454. wave.CFrame = CFRAME
  455. coroutine.resume(coroutine.create(function(PART)
  456. for i = 1, WAIT do
  457. Swait()
  458. mesh.Scale = mesh.Scale + GROW/10
  459. wave.Transparency = wave.Transparency + (0.5/WAIT)
  460. if wave.Transparency > 0.99 then
  461. wave:remove()
  462. end
  463. end
  464. end))
  465. end
  466.  
  467. function MakeForm(PART,TYPE)
  468. if TYPE == "Cyl" then
  469. local MSH = IT("CylinderMesh",PART)
  470. elseif TYPE == "Ball" then
  471. local MSH = IT("SpecialMesh",PART)
  472. MSH.MeshType = "Sphere"
  473. elseif TYPE == "Wedge" then
  474. local MSH = IT("SpecialMesh",PART)
  475. MSH.MeshType = "Wedge"
  476. end
  477. end
  478.  
  479. function CheckTableForString(Table, String)
  480. for i, v in pairs(Table) do
  481. if string.find(string.lower(String), string.lower(v)) then
  482. return true
  483. end
  484. end
  485. return false
  486. end
  487.  
  488. function CheckIntangible(Hit)
  489. local ProjectileNames = {"Water", "Arrow", "Projectile", "Effect", "Rail", "Lightning", "Bullet"}
  490. if Hit and Hit.Parent then
  491. if ((not Hit.CanCollide or CheckTableForString(ProjectileNames, Hit.Name)) and not Hit.Parent:FindFirstChild("Humanoid")) then
  492. return true
  493. end
  494. end
  495. return false
  496. end
  497.  
  498. Debris = game:GetService("Debris")
  499.  
  500. function CastZapRay(StartPos, Vec, Length, Ignore, DelayIfHit)
  501. local Direction = CFrame.new(StartPos, Vec).lookVector
  502. local Ignore = ((type(Ignore) == "table" and Ignore) or {Ignore})
  503. local RayHit, RayPos, RayNormal = game:GetService("Workspace"):FindPartOnRayWithIgnoreList(Ray.new(StartPos, Direction * Length), Ignore)
  504. if RayHit and CheckIntangible(RayHit) then
  505. if DelayIfHit then
  506. wait()
  507. end
  508. RayHit, RayPos, RayNormal = CastZapRay((RayPos + (Vec * 0.01)), Vec, (Length - ((StartPos - RayPos).magnitude)), Ignore, DelayIfHit)
  509. end
  510. return RayHit, RayPos, RayNormal
  511. end
  512.  
  513. function FireArc(Part,ToLocation,AmountOfTime,Height,DoesCourontine)
  514. if DoesCourontine == false then
  515. local Direction = CF(Part.Position,ToLocation)
  516. local Distance = (Part.Position - ToLocation).magnitude
  517. for i = 1, AmountOfTime do
  518. Swait()
  519. Part.CFrame = Direction*CF(0,(AmountOfTime/200)+((AmountOfTime/Height)-((i*2)/Height)),-Distance/AmountOfTime)
  520. Direction = Part.CFrame
  521. end
  522. Part:remove()
  523. elseif DoesCourontine == true then
  524. coroutine.resume(coroutine.create(function()
  525. local Direction = CF(Part.Position,ToLocation)
  526. local Distance = (Part.Position - ToLocation).magnitude
  527. for i = 1, AmountOfTime do
  528. Swait()
  529. Part.CFrame = Direction*CF(0,(AmountOfTime/200)+((AmountOfTime/Height)-((i*2)/Height)),-Distance/AmountOfTime)
  530. Direction = Part.CFrame
  531. end
  532. Part:remove()
  533. end))
  534. end
  535. end
  536.  
  537. function turnto(position)
  538. RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
  539. end
  540.  
  541. --//=================================\\
  542. --|| WEAPON CREATION
  543. --\\=================================//
  544.  
  545.  
  546. local asd = Instance.new("ParticleEmitter")
  547. asd.Color = ColorSequence.new(Color3.new(0.05, 0, 0), Color3.new(0, 0, 0))
  548. asd.LightEmission = .1
  549. asd.Texture = "http://www.roblox.com/asset/?ID=291880914"
  550. aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.6),NumberSequenceKeypoint.new(1, 2)})
  551. bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
  552. asd.Transparency = bbb
  553. asd.Size = aaa
  554. asd.ZOffset = .9
  555. asd.Acceleration = Vector3.new(0, -15, 0)
  556. asd.LockedToPart = false
  557. asd.EmissionDirection = "Back"
  558. asd.Lifetime = NumberRange.new(1, 2)
  559. asd.Rotation = NumberRange.new(-100, 100)
  560. asd.RotSpeed = NumberRange.new(-100, 100)
  561. asd.Speed = NumberRange.new(10)
  562. asd.Enabled = false
  563. asd.VelocitySpread = 999
  564.  
  565. function getbloody(victim,amount)
  566. local PART = CreatePart(3, Effects, "Metal", 0, 1, "Mid gray", "Blood", victim.Size)
  567. PART.CFrame = victim.CFrame
  568. local HITPLAYERSOUNDS = {"356551938","264486467"}
  569. Debris:AddItem(PART,5)
  570. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  571. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  572. CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
  573. local prtcl = asd:Clone()
  574. prtcl.Parent = PART
  575. prtcl:Emit(amount*10)
  576. end
  577.  
  578. local Particle = IT("ParticleEmitter",nil)
  579. Particle.Enabled = false
  580. Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(0.3,0.95),NumberSequenceKeypoint.new(1,1)})
  581. Particle.LightEmission = 0.5
  582. Particle.Rate = 150
  583. Particle.ZOffset = 1
  584. Particle.Rotation = NumberRange.new(-180, 180)
  585. Particle.RotSpeed = NumberRange.new(-180, 180)
  586. Particle.Texture = "http://www.roblox.com/asset/?id=304437537"
  587. Particle.Color = ColorSequence.new(C3(1,0,0),C3(0.4,0,0))
  588.  
  589. --ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false})
  590. function ParticleEmitter(Table)
  591. local PRTCL = Particle:Clone()
  592. local Speed = Table.Speed or 5.01
  593. local Drag = Table.Drag or 0
  594. local Size1 = Table.Size1 or 1
  595. local Size2 = Table.Size2 or 5
  596. local Lifetime1 = Table.Lifetime1 or 1
  597. local Lifetime2 = Table.Lifetime2 or 1.55
  598. local Parent = Table.Parent or Torso
  599. local Emit = Table.Emit or 100
  600. local Offset = Table.Offset or 360
  601. local Acel = Table.Acel or VT(0,0,0)
  602. local Enabled = Table.Enabled or false
  603. PRTCL.Parent = Parent
  604. PRTCL.Size = NumberSequence.new(Size1,Size2)
  605. PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
  606. PRTCL.Speed = NumberRange.new(Speed)
  607. PRTCL.VelocitySpread = Offset
  608. PRTCL.Drag = Drag
  609. PRTCL.Acceleration = Acel
  610. if Enabled == false then
  611. PRTCL:Emit(Emit)
  612. Debris:AddItem(PRTCL,Lifetime2)
  613. else
  614. PRTCL.Enabled = true
  615. end
  616. return PRTCL
  617. end
  618.  
  619. for i = 1, 15 do
  620. local FACE = CreatePart(3, Character, "Fabric", 0, 0+(i-1)/15.2, "Dark stone grey", "FaceGradient", VT(1.01,0.58,1.01),false)
  621. FACE.Color = C3(0,0,0)
  622. Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE
  623. CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.35-(i-1)/35,0), CF(0, 0, 0))
  624. end
  625. for _, c in pairs(Character:GetChildren()) do
  626. if c.ClassName == "Part" and c.Name ~= "FaceGradient" and c.Name ~= "Hat" and c.Name ~= "Gem" then
  627. c.Material = "Glass"
  628. if c:FindFirstChildOfClass("ParticleEmitter") then
  629. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  630. end
  631. c.Color = C3(1,1,1)
  632. if c == Head then
  633. if c:FindFirstChild("face") then
  634. c.face:remove()
  635. end
  636. end
  637. elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.ClassName == "Hat" or c.Name == "Body Colors" then
  638. c:remove()
  639. elseif (c.ClassName == "Shirt" or c.ClassName == "Pants") and c.Name ~= "Cloth" then
  640. c:remove()
  641. end
  642. end
  643. local BODY = {}
  644. for _, c in pairs(Character:GetDescendants()) do
  645. if c:IsA("BasePart") and c.Name ~= "Handle" then
  646. if c ~= RootPart and c ~= Torso and c ~= Head and c ~= RightArm and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then
  647. c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
  648. end
  649. table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency})
  650. elseif c:IsA("JointInstance") then
  651. table.insert(BODY,{c,c.Parent,nil,nil,nil})
  652. end
  653. end
  654. for e = 1, #BODY do
  655. if BODY[e] ~= nil then
  656. local STUFF = BODY[e]
  657. local PART = STUFF[1]
  658. local PARENT = STUFF[2]
  659. local MATERIAL = STUFF[3]
  660. local COLOR = STUFF[4]
  661. local TRANSPARENCY = STUFF[5]
  662. if PART.ClassName == "Part" and PART ~= RootPart then
  663. PART.Material = MATERIAL
  664. PART.Color = COLOR
  665. PART.Transparency = TRANSPARENCY
  666. end
  667. PART.AncestryChanged:Connect(function()
  668. PART.Parent = PARENT
  669. end)
  670. end
  671. end
  672. function refit()
  673. for e = 1, #BODY do
  674. if BODY[e] ~= nil then
  675. local STUFF = BODY[e]
  676. local PART = STUFF[1]
  677. local PARENT = STUFF[2]
  678. local MATERIAL = STUFF[3]
  679. local COLOR = STUFF[4]
  680. local TRANSPARENCY = STUFF[5]
  681. if PART.ClassName == "Part" and PART ~= RootPart then
  682. PART.Material = MATERIAL
  683. PART.Color = COLOR
  684. PART.Transparency = TRANSPARENCY
  685. end
  686. end
  687. end
  688. end
  689.  
  690. --//=================================\\
  691. --|| WEAPON CREATION 2
  692. --\\=================================//
  693.  
  694. local naeeym2 = Instance.new("BillboardGui",Character)
  695. naeeym2.AlwaysOnTop = true
  696. naeeym2.Size = UDim2.new(5,35,2,15)
  697. naeeym2.StudsOffset = Vector3.new(0,3,0)
  698. naeeym2.Adornee = Character.Head
  699. naeeym2.Name = "Name"
  700. naeeym2.PlayerToHideFrom = Player
  701. local tecks2 = Instance.new("TextLabel",naeeym2)
  702. tecks2.BackgroundTransparency = 1
  703. tecks2.TextScaled = true
  704. tecks2.BorderSizePixel = 0
  705. tecks2.Text = "Ghost"
  706. tecks2.Font = "Fantasy"
  707. tecks2.TextSize = 30
  708. tecks2.TextStrokeTransparency = 0
  709. tecks2.TextColor3 = Color3.new(0,0,0)
  710. tecks2.TextStrokeColor3 = Color3.new(0.3,0,0)
  711. tecks2.Size = UDim2.new(1,0,0.5,0)
  712. tecks2.Parent = naeeym2
  713.  
  714. function Transparency(TRANS)
  715. tecks2.TextTransparency = TRANS
  716. tecks2.TextStrokeTransparency = TRANS
  717. for _, c in pairs(Character:GetChildren()) do
  718. if c.ClassName == "Part" and c ~= RootPart then
  719. c.Transparency = TRANS
  720. if c:FindFirstChildOfClass("Decal") then
  721. c:FindFirstChildOfClass("Decal").Transparency = TRANS
  722. end
  723. elseif c.ClassName == "Accessory" then
  724. c.Handle.Transparency = TRANS
  725. elseif c.ClassName == "Model" then
  726. for _, q in pairs(c:GetChildren()) do
  727. if q.ClassName == "Part" then
  728. q.Transparency = TRANS
  729. if q:FindFirstChildOfClass("Decal") then
  730. q:FindFirstChildOfClass("Decal").Transparency = TRANS
  731. end
  732. end
  733. end
  734. end
  735. end
  736. end
  737.  
  738. Humanoid.Died:connect(function()
  739. Humanoid.Parent = nil
  740. Humanoid.MaxHealth = "inf"
  741. Humanoid.Health = "inf"
  742. refit()
  743. Humanoid.Parent = Character
  744. CreateSound("215395388", Head, 10, 1)
  745. end)
  746.  
  747. local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.23, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
  748. local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.50, 0, 0.80, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
  749. local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.1, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
  750. local SKILLEFRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.9, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill Warp Frame")
  751. local SKILL5FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.365, 0, 0.5, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame")
  752.  
  753. local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Ghost Blast", SKILLTEXTCOLOR, 7, "Fantasy", 0, 2, 0, "Text 1")
  754. local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Ghost Cutter", SKILLTEXTCOLOR, 7, "Fantasy", 0, 2, 0, "Text 2")
  755. local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Ghost Destruction", SKILLTEXTCOLOR, 10, "Fantasy", 0, 2, 0, "Text 3")
  756. local SKILLETEXT = CreateLabel(SKILLEFRAME, "[Q] Ghost Warp", SKILLTEXTCOLOR, 7, "Fantasy", 0, 2, 0, "Text Warp")
  757. local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[E] Ghost Star Destruction", SKILLTEXTCOLOR, 10, "Fantasy", 0, 2, 0, "Text 5")
  758.  
  759. --//=================================\\
  760. --|| DAMAGING
  761. --\\=================================//
  762.  
  763. function killnearest(position,range,maxstrength)
  764. for i,v in ipairs(workspace:GetChildren()) do
  765. local body = v:GetChildren()
  766. for part = 1, #body do
  767. if((body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
  768. if(body[part].Position - position).Magnitude < range then
  769. if v.ClassName == "Model" then
  770. v:BreakJoints()
  771. end
  772. --table.insert(Effects2,{body[part],"Disappear",0.02,2,2,2,2})
  773. local bv = Instance.new("BodyVelocity")
  774. bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
  775. bv.velocity = CF(position,body[part].Position).lookVector*maxstrength
  776. bv.Parent = body[part]
  777. Debris:AddItem(bv,0.2)
  778. end
  779. end
  780. end
  781. if v.ClassName == "Part" then
  782. if v.Anchored == false and (v.Position - position).Magnitude < range then
  783. --table.insert(Effects2,{v,"Disappear",0.02,2,2,2,2})
  784. v.Velocity = CFrame.new(position,v.Position).lookVector*5*maxstrength
  785. end
  786. end
  787. end
  788. end
  789.  
  790. --//=================================\\
  791. --|| ATTACK FUNCTIONS AND STUFF
  792. --\\=================================//
  793.  
  794. function Lunar_Blast()
  795. local HITBODIES = {}
  796. local CENTER = CreatePart(3, Effects, "Glass", 0, 1, "Really black", "CenterPart", VT(0,0,0))
  797. local HITFLOOR,ECH,NORMAL = Raycast(Mouse.Hit.p+VT(0,2,0), (CF(Mouse.Hit.p, Mouse.Hit.p + VT(0, -1, 0))).lookVector, 10000000, Character)
  798. CENTER.CFrame = CF(ECH)
  799. local RAY = CreatePart(3, Effects, "Glass", 0, 1, "Really black", "Laser01", VT(25,99999,25))
  800. RAY.Color = C3(0,0,0)
  801. MakeForm(RAY,"Cyl")
  802. RAY.CFrame = CF(ECH)
  803. for i = 1, 75 do
  804. Swait()
  805. RAY.Transparency = RAY.Transparency - 1/75
  806. RAY.Size = RAY.Size - VT(35/85,0,35/85)
  807. MagicSphere(VT(1,1,1),15,CF(ECH)*CF(MRANDOM(-15,15),MRANDOM(0,100),MRANDOM(-15,15)),C3(1,1,1),VT(0,0,0))
  808. end
  809. killnearest(ECH,25,25)
  810. MagicSphere(VT(0,0,0),55,CF(ECH),C3(0,0,0),VT(3,3,3))
  811. for i = 1, 25 do
  812. MagicSphere(VT(1,1,1),i*3,CF(ECH)*CF(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45)),C3(1,1,1),VT(0,0,0))
  813. end
  814. CreateSound("463598785", CENTER, 10, 0.8)
  815. RAY:remove()
  816. Debris:AddItem(CENTER,5)
  817. end
  818.  
  819. function Star_Cutter()
  820. local HITFLOOR,HITPOS,NORMAL = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 7 * Player_Size, Character)
  821. if HITFLOOR ~= nil then
  822. ATTACK = true
  823. Rooted = true
  824. local GYRO = IT("BodyGyro",RootPart)
  825. GYRO.D = 100
  826. GYRO.P = 2000
  827. GYRO.MaxTorque = VT(0,4000000,0)
  828. GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  829. CreateSound("289315275", RightArm, 10, 0.8)
  830. for i=0, 3.5, 0.1 / Animation_Speed do
  831. Swait()
  832. GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  833. Slice("Thin",0.3,5,RightArm.CFrame * CF(0,-1.1,0) * ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Gold",VT(-0.01,0,-0.01))
  834. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(-15 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  835. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(15 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  836. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(-45), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(32 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  837. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(5), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  838. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  839. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  840. end
  841. GYRO:remove()
  842. for i=0, 0.15, 0.1 / Animation_Speed do
  843. Swait()
  844. GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
  845. Slice("Thin",0.3,5,RightArm.CFrame * CF(0,-1.1,0) * ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),"Gold",VT(-0.01,0,-0.01))
  846. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(85 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  847. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-85 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  848. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(90 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  849. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(5), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  850. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  851. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  852. end
  853. local BOMBSPOTS = {}
  854. for i = 1, 25 do
  855. local SPOT = CreatePart(3, Effects, "Glass", 0, 0, "Really black", "Blade", VT(8,1,8))
  856. SPOT.Color = SKILLTEXTCOLOR
  857. SPOT.CFrame = RootPart.CFrame*CF((MRANDOM(-15,15)/40)*i,-5,-i*5)
  858. table.insert(BOMBSPOTS,SPOT)
  859. MakeForm(SPOT,"Cyl")
  860. end
  861. for i=0, 0.2, 0.1 / Animation_Speed do
  862. Swait()
  863. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(85 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  864. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-85 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  865. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(145), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(-15 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  866. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(-25), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  867. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  868. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  869. end
  870. ATTACK = false
  871. Rooted = false
  872. coroutine.resume(coroutine.create(function()
  873. Swait(3)
  874. for i = 1, #BOMBSPOTS do
  875. if BOMBSPOTS[i] ~= nil then
  876. local E = BOMBSPOTS[i]
  877. coroutine.resume(coroutine.create(function()
  878. local BLADE = CreatePart(3, Effects, "Glass", 0, 1, "Really black", "Blade", VT(0,0,0))
  879. BLADE.Color = SKILLTEXTCOLOR
  880. CreateMesh("SpecialMesh", BLADE, "FileMesh", "93108071", "", VT(0.6,1,0.4)*3, VT(0,0,0))
  881. CreateSound(HITWEAPONSOUNDS[MRANDOM(1,#HITWEAPONSOUNDS)], BLADE, 4, 0.6)
  882. BLADE.CFrame = E.CFrame*CF(0,-3,0)*ANGLES(RAD(MRANDOM(-15,15)),RAD(90),RAD(MRANDOM(-15,15)))
  883. for i = 1, 10 do
  884. Swait()
  885. MagicSphere(VT(1,1,1)/5,65,CF(E.Position)*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)))*CF(0,MRANDOM(3,6),0),C3(1,1,1),VT(0,0,0))
  886. killnearest(BLADE.Position,6,80)
  887. BLADE.CFrame = BLADE.CFrame*CF(0,0.3,0)
  888. BLADE.Transparency = BLADE.Transparency - 0.1
  889. end
  890. Swait(45)
  891. for i = 1, 100 do
  892. Swait()
  893. BLADE.Transparency = BLADE.Transparency + 0.01
  894. E.Transparency = E.Transparency + 0.01
  895. end
  896. BLADE:remove()
  897. E:remove()
  898. end))
  899. end
  900. end
  901. end))
  902. end
  903. end
  904.  
  905.  
  906. function Star_failed()
  907. CreateSound("907330103", Head, 10, 1.2)
  908. ATTACK = true
  909. Rooted = true
  910. for i=0, 1, 0.1 / Animation_Speed do
  911. Swait()
  912. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
  913. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  914. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-85)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  915. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.15, -0.5) * ANGLES(RAD(-15), RAD(0), RAD(85)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  916. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  917. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  918. end
  919. coroutine.resume(coroutine.create(function()
  920. local POS = Mouse.Hit.p
  921. local RAY = CreatePart(3, Effects, "Glass", 0, 0, "Really black", "Strike", VT(0,2000,0))
  922. MakeForm(RAY,"Cyl")
  923. local SPHERE = CreatePart(3, Effects, "Glass", 0, 0, "Really black", "Strike", VT(0,0,0))
  924. MakeForm(SPHERE,"Ball")
  925. local SHIELD = CreatePart(3, Effects, "Glass", 0, 0.5, "Really black", "Strike", VT(0,0,0))
  926. MakeForm(SHIELD,"Ball")
  927. SHIELD.CFrame = CF(POS)
  928. RAY.CFrame = CF(POS)
  929. SPHERE.CFrame = CF(POS)
  930. CreateSound(440145570, SPHERE, 10, 0.8, false)
  931. CreateSound(415700134, SPHERE, 10, 0.8, false)
  932. for i = 1, 200 do
  933. Swait()
  934. WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(SPHERE.Size.X*1.2,5+(i),SPHERE.Size.X*1.2), Transparency = 0, Transparency2 = 1, CFrame = SPHERE.CFrame*ANGLES(RAD(0), RAD(i), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = i, RotationZ = 0, Material = "Glass", Color = C3(0,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  935. RAY.Size = RAY.Size + VT(0.15,0,0.15)
  936. SPHERE.Size = SPHERE.Size + VT(4,4,4)
  937. SHIELD.Size = SPHERE.Size + VT(5,5,5)
  938. ApplyAoE(SPHERE.Position,SPHERE.Size.X/2,true)
  939. end
  940. for i = 1, 95 do
  941. Swait()
  942. RAY.Transparency = RAY.Transparency + 1/45
  943. SPHERE.Transparency = RAY.Transparency
  944. SHIELD.Transparency = SPHERE.Transparency + 1/45
  945. end
  946. RAY:remove()
  947. SHIELD:remove()
  948. SPHERE:remove()
  949. end))
  950. for i=0, 1, 0.1 / Animation_Speed do
  951. Swait()
  952. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed)
  953. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  954. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.15) * ANGLES(RAD(65), RAD(-45), RAD(85)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  955. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.15) * ANGLES(RAD(65), RAD(45), RAD(-85)) * LEFTSHOULDERC0, 1 / Animation_Speed)
  956. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  957. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  958. end
  959. ATTACK = false
  960. Rooted = false
  961. end
  962.  
  963. function Supernova()
  964. local HITFLOOR,HITPOS,NORMAL = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 7 * Player_Size, Character)
  965. if HITFLOOR ~= nil then
  966. local HITBODIES = {}
  967. ATTACK = true
  968. Rooted = true
  969. local ABSOLUTE = CreatePart(3, Effects, "Glass", 0, 1, "Really black", "Star", VT(0,0,0))
  970. MakeForm(ABSOLUTE,"Ball")
  971. CreateSound("289315275", ABSOLUTE, 10, 1)
  972. for i=0, 10, 0.1 / Animation_Speed do
  973. Swait()
  974. ABSOLUTE.Size = ABSOLUTE.Size + VT(0.2,0.2,0.2)
  975. ABSOLUTE.CFrame = RootPart.CFrame*CF(0,5+(ABSOLUTE.Size.Y/2),0)
  976. ABSOLUTE.Transparency = ABSOLUTE.Transparency - 0.01
  977. local CHARGE = CreatePart(3, Effects, "Glass", 0, 0, "Really black", "Star", VT(1,1,1))
  978. MakeForm(CHARGE,"Ball")
  979. CHARGE.Color = C3(0,0,0)
  980. CHARGE.CFrame = CF(RootPart.Position) * CF(MRANDOM(-15,15),-6,MRANDOM(-15,15))
  981. FireArc(CHARGE,ABSOLUTE.Position,45,45,true)
  982. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(15 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  983. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25 + 4.5 * SIN(SINE / 12)), RAD(25), RAD(-15 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  984. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 1.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(170), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(-12 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  985. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  986. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  987. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  988. end
  989. CreateSound("907330103", Head, 10, 1.2)
  990. for i = 1, 75 do
  991. Swait()
  992. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(15 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  993. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25 + 4.5 * SIN(SINE / 12)), RAD(25), RAD(-15 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  994. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 1.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(170), RAD(0 - 7.5 * SIN(SINE / 12)), RAD(-12 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  995. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 + 7.5 * SIN(SINE / 12)), RAD(-12 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  996. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  997. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-7.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  998. end
  999. coroutine.resume(coroutine.create(function()
  1000. for i = 1, 13 do
  1001. for e = 1, 8 do
  1002. Swait()
  1003. MagicSphere(VT(1,1,1),15,CF(ABSOLUTE.Position)*CF(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45)),C3(1,1,1),VT(0,0,0))
  1004. CreateSwirl(ABSOLUTE.Size/2,15,CF(HITPOS),true,15,BRICKC"Really black".Color,VT(i,0.3,i)*2)
  1005. end
  1006. for i = 1, 5 do
  1007. Slice("Round",0,35,CF(ABSOLUTE.Position)*ANGLES(RAD(MRANDOM(-18,18)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-18,18))),C3(1,1,1),VT(i,0,i)/3)
  1008. Slice("Thin",i,55,ABSOLUTE.CFrame * CF(0,-1.1,0) * ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180))),C3(1,0,0),VT(0,0,0))
  1009. end
  1010. CreateSwirl(ABSOLUTE.Size/2,25,CF(ABSOLUTE.Position),true,-25,BRICKC"Really black".Color,VT(i,i*2,i))
  1011. CreateSwirl(ABSOLUTE.Size/2,55,CF(ABSOLUTE.Position),true,25,C3(0.05,0.05,0.15),VT(i,i*2,i))
  1012. CreateSound("168586621", ABSOLUTE, 4, 0.8)
  1013. CreateSound("201858144", ABSOLUTE, 10, 0.8)
  1014. CreateSound("907330103", Head, 10, 1.2)
  1015. killnearest(ABSOLUTE.Position,i*18,i)
  1016. ABSOLUTE.Size = ABSOLUTE.Size*0.9
  1017. MagicSphere(ABSOLUTE.Size,25,CF(ABSOLUTE.Position),BRICKC"Gold".Color,VT(i,i,i)/1.1)
  1018. MagicSphere(ABSOLUTE.Size,45,CF(ABSOLUTE.Position),C3(0.05,0.05,0.15),VT(i,i,i))
  1019. end
  1020. ABSOLUTE.Transparency = 1
  1021. Debris:AddItem(ABSOLUTE,10)
  1022. end))
  1023. ATTACK = false
  1024. Rooted = false
  1025. end
  1026. end
  1027.  
  1028. local Decal = IT("Decal")
  1029.  
  1030. function Astral_Hop()
  1031. ATTACK = true
  1032. Rooted = false
  1033. local O1 = CreatePart(3, Effects, "Glass", 0, 1, "Really black", "Warphole", VT(0,0,0))
  1034. O1.CFrame = RootPart.CFrame*CF(0,0,-3)*ANGLES(RAD(90),RAD(0),RAD(0))
  1035. local decal = Decal:Clone()
  1036. decal.Parent = O1
  1037. decal.Face = "Top"
  1038. decal.Texture = "http://www.roblox.com/asset/?id=1578810081"
  1039. local decal2 = Decal:Clone()
  1040. decal2.Parent = O1
  1041. decal2.Face = "Bottom"
  1042. decal2.Texture = "http://www.roblox.com/asset/?id=1578810081"
  1043. local O2 = CreatePart(3, Effects, "Glass", 0, 1, "Really black", "Warphole", VT(0,0,0))
  1044. local POS = VT(RootPart.Position.X,Mouse.Hit.p.Y+6,RootPart.Position.Z)
  1045. O2.CFrame = CF(Mouse.Hit.p+VT(0,6,0),POS)*ANGLES(RAD(90),RAD(0),RAD(0))
  1046. local ROOT = CreatePart(3, Effects, "Glass", 0, 1, "Really black", "Warphole", VT(0,0,0))
  1047. ROOT.CFrame = CF(O2.Position,RootPart.Position)
  1048. local decal = Decal:Clone()
  1049. decal.Parent = O2
  1050. decal.Face = "Top"
  1051. decal.Texture = "http://www.roblox.com/asset/?id=1578810081"
  1052. local decal2 = Decal:Clone()
  1053. decal2.Parent = O2
  1054. decal2.Face = "Bottom"
  1055. decal2.Texture = "http://www.roblox.com/asset/?id=1578810081"
  1056. CreateSound("84005018", O1, 10, 0.7)
  1057. CreateSound("84005018", O2, 10, 0.7)
  1058. for i = 1, 75 do
  1059. Swait()
  1060. O1.Size = O1.Size + VT(0.1,0,0.1)
  1061. O1.CFrame = RootPart.CFrame*CF(0,0,-3)*ANGLES(RAD(90),RAD(i),RAD(0))
  1062. O2.Size = O2.Size + VT(0.1,0,0.1)
  1063. O2.CFrame = O2.CFrame*ANGLES(RAD(0),RAD(i),RAD(0))
  1064. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(5 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  1065. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-5 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  1066. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(90), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(5 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1067. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(90), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(-5 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1068. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1069. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1070. end
  1071. Rooted = true
  1072. UNANCHOR = false
  1073. RootPart.Anchored = true
  1074. VALUE1 = true
  1075. for i = 1, 15 do
  1076. Transparency(i/15)
  1077. Swait()
  1078. RootPart.CFrame = RootPart.CFrame*CF(0,0,-0.13)
  1079. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(16 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(5 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  1080. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-5 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  1081. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(-15), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(5 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1082. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(-15), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(-5 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1083. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1084. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1085. end
  1086. RootPart.CFrame = ROOT.CFrame
  1087. ROOT:remove()
  1088. for i = 1, 15 do
  1089. Transparency(1-(i/15))
  1090. Swait()
  1091. RootPart.CFrame = RootPart.CFrame*CF(0,0,-0.5)
  1092. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(16 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(5 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  1093. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-5 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  1094. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(-15), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(5 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1095. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(-15), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(-5 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1096. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1097. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1098. end
  1099. VALUE1 = false
  1100. coroutine.resume(coroutine.create(function()
  1101. for i = 1, 75 do
  1102. Swait()
  1103. O1.Size = O1.Size - VT(0.1,0,0.1)
  1104. O1.CFrame = O1.CFrame*ANGLES(RAD(0),RAD(i),RAD(0))
  1105. O2.Size = O2.Size - VT(0.1,0,0.1)
  1106. O2.CFrame = O2.CFrame*ANGLES(RAD(0),RAD(i),RAD(0))
  1107. end
  1108. O1:remove()
  1109. O2:remove()
  1110. end))
  1111. UNANCHOR = true
  1112. RootPart.Anchored = false
  1113. ATTACK = false
  1114. Rooted = false
  1115. end
  1116.  
  1117. --//=================================\\
  1118. --|| ASSIGN THINGS TO KEYS
  1119. --\\=================================//
  1120.  
  1121. function MouseDown(Mouse)
  1122. if ATTACK == false then
  1123. end
  1124. end
  1125.  
  1126. function MouseUp(Mouse)
  1127. HOLD = false
  1128. end
  1129.  
  1130. function KeyDown(Key)
  1131. KEYHOLD = true
  1132. if Key == "z" and ATTACK == false then
  1133. Lunar_Blast()
  1134. end
  1135.  
  1136. if Key == "b" and ATTACK == false then
  1137. Star_Cutter()
  1138. end
  1139.  
  1140. if Key == "c" and ATTACK == false then
  1141. Supernova()
  1142. end
  1143.  
  1144. if Key == "q" and ATTACK == false then
  1145. Astral_Hop()
  1146. end
  1147.  
  1148. if Key == "e" and ATTACK == false then
  1149. Star_failed()
  1150. end
  1151. end
  1152.  
  1153. function KeyUp(Key)
  1154. KEYHOLD = false
  1155. end
  1156.  
  1157. Mouse.Button1Down:connect(function(NEWKEY)
  1158. MouseDown(NEWKEY)
  1159. end)
  1160. Mouse.Button1Up:connect(function(NEWKEY)
  1161. MouseUp(NEWKEY)
  1162. end)
  1163. Mouse.KeyDown:connect(function(NEWKEY)
  1164. KeyDown(NEWKEY)
  1165. end)
  1166. Mouse.KeyUp:connect(function(NEWKEY)
  1167. KeyUp(NEWKEY)
  1168. end)
  1169.  
  1170. --//=================================\\
  1171. --\\=================================//
  1172.  
  1173.  
  1174. function unanchor()
  1175. if UNANCHOR == true then
  1176. g = Character:GetChildren()
  1177. for i = 1, #g do
  1178. if g[i].ClassName == "Part" then
  1179. g[i].Anchored = false
  1180. end
  1181. end
  1182. end
  1183. end
  1184.  
  1185.  
  1186. --//=================================\\
  1187. --|| WRAP THE WHOLE SCRIPT UP
  1188. --\\=================================//
  1189.  
  1190. Humanoid.Changed:connect(function(Jump)
  1191. if Jump == "Jump" and (Disable_Jump == true) then
  1192. Humanoid.Jump = false
  1193. end
  1194. end)
  1195.  
  1196. Humanoid.HipHeight = 2
  1197. Head:ClearAllChildren()
  1198. local FF = IT("ForceField",Character)
  1199. FF.Visible = false
  1200. Speed = 35
  1201.  
  1202. function refit()
  1203. RootJoint.Parent = RootPart
  1204. Neck.Parent = Torso
  1205. RightShoulder.Parent = Torso
  1206. LeftShoulder.Parent = Torso
  1207. RightHip.Parent = Torso
  1208. LeftHip.Parent = Torso
  1209. RootPart.Parent = Character
  1210. LeftArm.Parent = Character
  1211. RightArm.Parent = Character
  1212. RightLeg.Parent = Character
  1213. LeftLeg.Parent = Character
  1214. Torso.Parent = Character
  1215. Head.Parent = Character
  1216. end
  1217.  
  1218. local FOUNDFORGOTTEN = false
  1219.  
  1220. while true do
  1221. Swait()
  1222. ANIMATE.Parent = nil
  1223. local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
  1224. IDLEANIMATION:Play()
  1225. SINE = SINE + CHANGE
  1226. local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
  1227. local TORSOVERTICALVELOCITY = RootPart.Velocity.y
  1228. local LV = Torso.CFrame:pointToObjectSpace(Torso.Velocity - Torso.Position)
  1229. local HITFLOOR,HITPOS,NORMAL = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 7 * Player_Size, Character)
  1230. if ATTACK == false then
  1231. if TORSOVELOCITY < 1 then
  1232. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(4 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(5 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  1233. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-5 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  1234. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(5 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1235. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(-5 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1236. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1237. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1238. elseif TORSOVELOCITY > 1 then
  1239. RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(25 + 2.5 * SIN(SINE / 12)), RAD(0), RAD(5 + 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  1240. Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-25 + 4.5 * SIN(SINE / 12)), RAD(0), RAD(-5 - 2.5 * SIN(SINE / 12))), 1 / Animation_Speed)
  1241. RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(-25), RAD(0 - 2.5 * SIN(SINE / 12)), RAD(15 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
  1242. LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(-25), RAD(0 + 2.5 * SIN(SINE / 12)), RAD(-15 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
  1243. RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-25-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 5.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1244. LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
  1245. end
  1246. end
  1247. unanchor()
  1248. Humanoid.MaxHealth = "inf"
  1249. Humanoid.Health = "inf"
  1250. if Rooted == false then
  1251. Disable_Jump = false
  1252. Humanoid.WalkSpeed = Speed
  1253. elseif Rooted == true then
  1254. Disable_Jump = true
  1255. Humanoid.WalkSpeed = 0
  1256. end
  1257. for _, c in pairs(Character:GetChildren()) do
  1258. if c.ClassName == "Part" then
  1259. c.Material = "Glass"
  1260. if c:FindFirstChildOfClass("ParticleEmitter") then
  1261. c:FindFirstChildOfClass("ParticleEmitter"):remove()
  1262. end
  1263. if c == Torso then
  1264. c.Color = C3(0,0,0)
  1265. elseif c == RightArm then
  1266. c.Color = C3(0,0,0)
  1267. elseif c == LeftArm then
  1268. c.Color = C3(0,0,0)
  1269. elseif c == RightLeg then
  1270. c.Color = C3(0,0,0)
  1271. elseif c == LeftLeg then
  1272. c.Color = C3(0,0,0)
  1273. elseif c == Head then
  1274. if c:FindFirstChild("Dominus") == nil then
  1275. end
  1276. if c:FindFirstChild("face") then
  1277. c.face:remove()
  1278. end
  1279. end
  1280. elseif c.ClassName == "Shirt" or c.ClassName == "Pants" or c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.Name == "Body Colors" then
  1281. c:remove()
  1282. end
  1283. end
  1284. FF.Parent = Character
  1285. sick.Parent = Character
  1286. refit()
  1287. script.Parent = WEAPONGUI
  1288. Character.Parent = workspace
  1289. Humanoid.PlatformStand = false
  1290. Humanoid.Name = "Astra"
  1291. for _, c in pairs(game.Players:GetChildren()) do
  1292. if c.Character ~= nil then
  1293. if c.Character.Parent ~= workspace and c.Character.Parent ~= nil then
  1294. c.Character:BreakJoints()
  1295. end
  1296. end
  1297. end
  1298. FOUNDFORGOTTEN = false
  1299. Humanoid.DisplayDistanceType = "None"
  1300. for _, c in pairs(workspace:GetChildren()) do
  1301. if c.ClassName == "Model" then
  1302. for _, q in pairs(c:GetChildren()) do
  1303. if q.Name == ("Forgotten Dominus") then
  1304. FOUNDFORGOTTEN = true
  1305. end
  1306. end
  1307. end
  1308. end
  1309. if FOUNDFORGOTTEN == true then
  1310. sick:Stop()
  1311. else
  1312. sick.Playing = true
  1313. end
  1314. if VALUE1 == false then
  1315. MagicSphere(VT(1,1,1)/5,35,CF(Torso.Position)*ANGLES(RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-180,180)))*CF(0,MRANDOM(3,6),0),C3(1,1,1),VT(0,0,0))
  1316. end
  1317. end
  1318.  
  1319. --//=================================\\
  1320. --\\=================================//
  1321.  
  1322.  
  1323.  
  1324.  
  1325.  
  1326. --//====================================================\\--
  1327. --|| END OF SCRIPT
  1328. --\\====================================================//--
Add Comment
Please, Sign In to add comment