Advertisement
JacksoMykalJunior

THE GHOST1

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