copra50

dscript

Aug 31st, 2019
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 38.62 KB | None | 0 0
  1. --https://github.com/Mokiros/roblox-FE-compatibility
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  4. local RealPlayer = Player
  5. do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
  6.  
  7. wait(1)
  8.  
  9. -- Created by Nebula_Zorua. Credit to Shack for the idea --
  10. -- Dominus Corona Australis --
  11. -- Nos viles. --
  12. -- Nos mos probabiliter ut oblivioni tradatur C annis. --
  13. -- So cur nos efficere conatur mutare mundi? --
  14. -- Et sic ducunt ad nihil. --
  15. -- Discord: Nebula the Zorua#6969
  16. -- Youtube: https://www.youtube.com/channel/UCo9oU9dCw8jnuVLuy4_SATA
  17.  
  18. local S = setmetatable({},{__index = function(s,i) return game:service(i) end})
  19.  
  20. local plr = S.Players.LocalPlayer
  21. local char = plr.Character
  22. local PlayerGUI = plr:FindFirstChildOfClass'PlayerGui'
  23. local hum = char:FindFirstChildOfClass'Humanoid'
  24. local rarm = char["Right Arm"]
  25. local larm= char["Left Arm"]
  26. local rleg= char["Right Leg"]
  27. local lleg = char["Left Leg"]
  28. local root = char:FindFirstChild'HumanoidRootPart'
  29. local torso = char.Torso
  30. local head = char.Head
  31. local runService = S.RunService
  32. local blackholeActive = false
  33. local mouse = plr:GetMouse()
  34. local PaintBody = BrickColor.new'Navy blue'
  35. hum.DisplayDistanceType = "None"
  36. hum.Name = "CoronaAustralis"
  37. local Taunts = {
  38. 907329893,
  39. 907330103,
  40. 907332856,
  41. 907329532,
  42. 907333294
  43. }
  44. local I = Instance.new;
  45. local CN = CFrame.new;
  46. local V3 = Vector3.new;
  47. local CA = CFrame.Angles;
  48. local UD2 = UDim2.new;
  49. local C3 = Color3.new;
  50. local COS = math.cos;
  51. local SIN = math.sin;
  52. local RAD = math.rad;
  53. local FLOOR = math.floor;
  54. local RANDOM = math.random;
  55. local R3 = Region3.new;
  56.  
  57. local WEAPONGUI = I("ScreenGui", PlayerGUI)
  58. WEAPONGUI.Name = "Weapon GUI"
  59. local SKILLTEXTCOLOR = C3(0.05,0.05,0.15)
  60.  
  61. -- // FUNCTIONS \\ --
  62. function SOUND(id,parent,pitch,volume,looped)
  63. local SOUND = I("Sound")
  64. SOUND.SoundId = id;
  65. SOUND.Parent = parent or torso
  66. SOUND.Pitch = pitch or 1
  67. SOUND.Looped = looped or false
  68. SOUND.Volume = volume or 1
  69. return SOUND;
  70. end
  71.  
  72.  
  73. function FRAME(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
  74. local frame = I("Frame")
  75. frame.BackgroundTransparency = TRANSPARENCY
  76. frame.BorderSizePixel = BORDERSIZEPIXEL
  77. frame.Position = POSITION
  78. frame.Size = SIZE
  79. frame.BackgroundColor3 = COLOR
  80. frame.BorderColor3 = BORDERCOLOR
  81. frame.Name = NAME
  82. frame.Parent = PARENT
  83. return frame
  84. end
  85.  
  86. function LABEL(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
  87. local label = I("TextLabel")
  88. label.BackgroundTransparency = 1
  89. label.Size = UD2(1, 0, 1, 0)
  90. label.Position = UD2(0, 0, 0, 0)
  91. label.TextColor3 = TEXTCOLOR
  92. label.TextStrokeTransparency = STROKETRANSPARENCY
  93. label.TextTransparency = TRANSPARENCY
  94. label.FontSize = TEXTFONTSIZE
  95. label.Font = TEXTFONT
  96. label.BorderSizePixel = BORDERSIZEPIXEL
  97. label.TextScaled = false
  98. label.Text = TEXT
  99. label.Name = NAME
  100. label.Parent = PARENT
  101. return label
  102. end
  103.  
  104. function FX(id,parent,pitch,volume)
  105. return coroutine.wrap(function()
  106. local FX = SOUND(id,parent,pitch,volume)
  107. FX:Play()
  108. repeat wait() until FX.IsLoaded
  109. S.Debris:AddItem(FX,FX.TimeLength+1)
  110. end)()
  111.  
  112. end
  113.  
  114. function WELDBETWEEN(a, b)
  115. local weldd = Instance.new("ManualWeld")
  116. weldd.Part0 = a
  117. weldd.Part1 = b
  118. weldd.C0 = CFrame.new()
  119. weldd.C1 = b.CFrame:inverse() * a.CFrame
  120. weldd.Parent = a
  121. return weldd
  122. end
  123.  
  124. function POINTATCELESTIALBODY(body)
  125. assert(body == 'Sun' or body == 'Moon',"Celestial body has to be Sun or Moon!")
  126. if(body == 'Sun')then
  127. return CFrame.new(Vector3.new(),game:service'Lighting':GetSunDirection())
  128. elseif(body == 'Moon')then
  129. return CFrame.new(Vector3.new(),game:service'Lighting':GetMoonDirection())
  130. end
  131. end
  132. function IT(instance,parent,properties)
  133. local inst = I(instance)
  134. for i,v in next, properties do
  135. pcall(function() inst[v[1]] = v[2] end)
  136. end
  137. inst.Parent = parent
  138. return inst
  139. end
  140. function WELD(type,parent,part0,part1,c0,c1)
  141. local WELD = Instance.new(type,parent)
  142. WELD.Part0 = part0
  143. WELD.Part1 = part1
  144. WELD.C0 = c0 or CN()
  145. WELD.C1 = c1 or CN()
  146. return WELD
  147. end
  148.  
  149. function PART(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  150. local NEWPART = IT("Part",PARENT,{})
  151. NEWPART.formFactor = FORMFACTOR
  152. NEWPART.Reflectance = REFLECTANCE
  153. NEWPART.Transparency = TRANSPARENCY
  154. NEWPART.CanCollide = false
  155. NEWPART.Locked = true
  156. NEWPART.Anchored = true
  157. if ANCHOR == false then
  158. NEWPART.Anchored = false
  159. end
  160. NEWPART.BrickColor = BrickColor.new(tostring(BRICKCOLOR))
  161. NEWPART.Name = NAME
  162. NEWPART.Size = SIZE
  163. NEWPART.Position = torso.CFrame.p
  164. NEWPART.Material = MATERIAL
  165. NEWPART:BreakJoints()
  166. return NEWPART
  167. end
  168.  
  169. function CLEARCHILDRENWITHCLASS(where,class,recursive)
  170. local children = (recursive and where:GetDescendants() or where:GetChildren())
  171. for _,v in next, children do
  172. if(v:IsA(class))then
  173. v:destroy()
  174. end
  175. end
  176. end
  177.  
  178. function ISANIMPLAYING(humanoid,animation)
  179. for _,v in next, humanoid:GetPlayingAnimationTracks() do
  180. if(v.Animation == animation)then
  181. return true
  182. end
  183. end
  184. return false
  185. end
  186.  
  187. function GETREGION(point,range,ignore)
  188. return workspace:FindPartsInRegion3WithIgnoreList(R3(point-V3(1,1,1)*range/2,point+V3(1,1,1)*range/2),ignore,250)
  189. end
  190.  
  191.  
  192. function Fragment(part,fragSize,startPos,endPos)
  193. if part then
  194. local dir = (startPos - endPos).unit
  195. -- gatekeeper fragmentation
  196. if not part:IsA("Terrain") then
  197. pcall(part.BreakJoints, part)
  198. local is_block = part:IsA("Part") and part.Shape == Enum.PartType.Block
  199. local mass = part:GetMass()
  200. local size = part.Size
  201. if (is_block and ((size.X < fragSize and size.Y < fragSize and size.Z < fragSize))) then
  202. local part_transparency = math.max(part.Transparency + 0.007 * fragSize, 0.5)
  203. if part_transparency >= 0.5 then
  204. pcall(game.Destroy, part)
  205. else
  206. local cframe = part.CFrame
  207. part.Anchored = false
  208. part.BrickColor = BrickColor.new("Medium stone grey")
  209. part.CanCollide = true
  210. part.Size = size - Vector3.new(0.135, 0.135, 0.135) * fragSize
  211. part.Transparency = part_transparency
  212. part.CFrame = cframe + dir * 5
  213. part.Velocity = part.Velocity + dir * 40
  214. end
  215. elseif is_block then
  216. local parts = {part}
  217. local model = Instance.new("Model", part.Parent)
  218. model.Name = "Fragments"
  219. if size.X >= fragSize then
  220. size = Vector3.new(0.5, 1, 1) * size
  221. local archivable = part.Archivable
  222. local cframe = part.CFrame
  223. part.FormFactor = "Custom"
  224. part.Size = size
  225. part.Archivable = true
  226. local part_clone = part:Clone()
  227. part.Archivable = archivable
  228. part_clone.Archivable = archivable
  229. part.CFrame = cframe * CFrame.new(-0.5 * size.X, 0, 0)
  230. part_clone.CFrame = cframe * CFrame.new(0.5 * size.X, 0, 0)
  231. part_clone.Parent = model
  232. parts[2] = part_clone
  233. end
  234. if size.Y >= fragSize then
  235. size = Vector3.new(1, 0.5, 1) * size
  236. for part_index = 1, #parts do
  237. local part = parts[part_index]
  238. local archivable = part.Archivable
  239. local cframe = part.CFrame
  240. part.FormFactor = "Custom"
  241. part.Size = size
  242. part.Archivable = true
  243. local part_clone = part:Clone()
  244. part.Archivable = archivable
  245. part_clone.Archivable = archivable
  246. part.CFrame = cframe * CFrame.new(0, -0.5 * size.Y, 0)
  247. part_clone.CFrame = cframe * CFrame.new(0, 0.5 * size.Y, 0)
  248. part_clone.Parent = model
  249. table.insert(parts, part_clone)
  250. end
  251. end
  252. if size.Z >= fragSize then
  253. size = Vector3.new(1, 1, 0.5) * size
  254. for part_index = 1, #parts do
  255. local part = parts[part_index]
  256. local archivable = part.Archivable
  257. local cframe = part.CFrame
  258. part.FormFactor = "Custom"
  259. part.Size = size
  260. part.Archivable = true
  261. local part_clone = part:Clone()
  262. part.Archivable = archivable
  263. part_clone.Archivable = archivable
  264. part.CFrame = cframe * CFrame.new(0, 0, -0.5 * size.Z)
  265. part_clone.CFrame = cframe * CFrame.new(0, 0, 0.5 * size.Z)
  266. part_clone.Parent = model
  267. table.insert(parts, part_clone)
  268. end
  269. end
  270. for _, part in ipairs(parts) do
  271. part:MakeJoints()
  272. end
  273. else
  274. return false
  275. end
  276. end
  277. end
  278. return true
  279. end
  280.  
  281. local music = SOUND("rbxassetid://168448384",torso,1,1,true)
  282. music.MaxDistance = 150
  283. music:Play()
  284.  
  285. -- // CUSTOMIZATION \\ --
  286.  
  287. local Player_Size = 1
  288. local Animation_Speed = 3
  289. local Frame_Speed = 1 / 60
  290.  
  291. local Speed = 35
  292.  
  293. -- // WELDS \\ --
  294.  
  295. local LS = WELD('Motor',torso,torso,larm,CN(-1.5 * Player_Size,0.5 * Player_Size,0),CN(0,.5 * Player_Size,0))
  296. local RS = WELD('Motor',torso,torso,rarm,CN(1.5 * Player_Size,0.5 * Player_Size,0),CN(0,.5 * Player_Size,0))
  297. local NK = WELD('Motor',torso,torso,head,CN(0,1.5,0))
  298. local LH = WELD('Motor',torso,torso,lleg,CN(-.5 * Player_Size,-1 * Player_Size,0),CN(0,1 * Player_Size,0))
  299. local RH = WELD('Motor',torso,torso,rleg,CN(.5 * Player_Size,-1 * Player_Size,0),CN(0,1 * Player_Size,0))
  300. local RJ = WELD('Motor',root,root,torso)
  301.  
  302. -- // MISC \\ --
  303. pcall(game.Destroy,char:FindFirstChild'Animate')
  304. pcall(game.Destroy,hum:FindFirstChild'Animator')
  305. local EFFECTS = IT("Folder",char,{{"Name","Effects"}})
  306. local ANIM = "Idle"
  307. local TPOSE = false
  308. local NEUTRAL_ANIMS = true
  309. local ROOTED = false
  310. local ATTACK = false
  311. local SINE = 0
  312. local CHANGE = 2 / Animation_Speed
  313. local LSC0 = LS.C0
  314. local RSC0 = RS.C0
  315. local NKC0 = NK.C0
  316. local LHC0 = LH.C0
  317. local RHC0 = RH.C0
  318. local RJC0 = RJ.C0
  319. local FLOATING = {}
  320. -- // ARTIFICIAL HB \\ --
  321. local ArtificialHB = IT("BindableEvent", script,{{"Name","ArtificialHB"}})
  322.  
  323. script:WaitForChild("ArtificialHB")
  324.  
  325. local frame = Frame_Speed
  326. local tf = 0
  327. local allowframeloss = false
  328. local tossremainder = false
  329. local lastframe = tick()
  330. script.ArtificialHB:Fire()
  331.  
  332. game:GetService("RunService").Heartbeat:connect(function(s, p)
  333. tf = tf + s
  334. if tf >= frame then
  335. if allowframeloss then
  336. script.ArtificialHB:Fire()
  337. lastframe = tick()
  338. else
  339. for i = 1, math.floor(tf / frame) do
  340. script.ArtificialHB:Fire()
  341. end
  342. lastframe = tick()
  343. end
  344. if tossremainder then
  345. tf = 0
  346. else
  347. tf = tf - frame * math.floor(tf / frame)
  348. end
  349. end
  350. end)
  351.  
  352. -- // MORE FUNCTIONS \\ --
  353. function swait(NUMBER)
  354. if NUMBER == 0 or NUMBER == nil then
  355. ArtificialHB.Event:wait()
  356. else
  357. for i = 1, NUMBER do
  358. ArtificialHB.Event:wait()
  359. end
  360. end
  361. end
  362.  
  363.  
  364. function HigherCelestialBody()
  365. return (game:service'Lighting':GetMoonDirection().y >= game:service'Lighting':GetSunDirection().y and 'Moon' or 'Sun')
  366. end
  367.  
  368. function Shatter(v)
  369. --PART(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  370. local STORE = IT("Folder",v.Parent,{{"Name","ShardStore"}})
  371. local size = v.Size.x + v.Size.y + v.Size.z
  372. local sizeset = size/4
  373. local Offset = V3(v.Size.x*1.5/sizeset,v.Size.y*1.5/sizeset,v.Size.z*1.5/sizeset)
  374. for x = 1, math.ceil(Offset.x) do
  375. for y = 1, math.ceil(Offset.y) do
  376. for z = 1, math.ceil(Offset.z) do
  377. local shard = PART(3,STORE,v.Material,v.Reflectance,v.Transparency,v.BrickColor,v.Name.." Shard",V3(size,size,size)/10,v.Anchored)
  378. shard.CanCollide = true
  379. shard.CFrame = v.CFrame*CN((v.Size.x/2-v.Size.x/4),(v.Size.y/2-v.Size.y/4),(v.Size.z/2-v.Size.z/4))
  380. shard.Velocity = V3(RANDOM(-15,15),RANDOM(-15,15),RANDOM(-15,15))*2
  381. for _,c in next, v:children() do
  382. if(c:IsA'ParticleEmitter' or v:IsA'Sparkles' or v:IsA'Smoke' or v:IsA'PointLight' or v:IsA'Fire' or v:IsA'SpotLight' or v:IsA'SurfaceLight')then
  383. local oArc = c.Archivable
  384. c.Archivable = true
  385. local clone = c:Clone()
  386. clone.Parent = shard
  387. clone.Archivable = oArc
  388. end
  389. end
  390. end
  391. end
  392. end
  393. v:Destroy()
  394. end
  395.  
  396. function StatLabel(LABELTYPE, CFRAME, TEXT, COLOR) -- thanks shack BB
  397. local STATPART = PART(3, EFFECTS, "SmoothPlastic", 0, 1, "Really black", "Effect", V3())
  398. STATPART.CFrame = CN(CFRAME.p + V3(0, 1.5, 0))
  399. local BODYGYRO = IT("BodyGyro", STATPART,{})
  400. local BODYPOSITION = IT("BodyPosition", STATPART,{})
  401. BODYPOSITION.P = 2000
  402. BODYPOSITION.D = 100
  403. BODYPOSITION.maxForce = V3(math.huge, math.huge, math.huge)
  404. if LABELTYPE == "Normal" then
  405. BODYPOSITION.position = STATPART.Position + V3(RANDOM(-2, 2), 6, RANDOM(-2, 2))
  406. elseif LABELTYPE == "Debuff" then
  407. BODYPOSITION.position = STATPART.Position + V3(RANDOM(-2, 2), 8, RANDOM(-2, 2))
  408. elseif LABELTYPE == "Interruption" then
  409. BODYPOSITION.position = STATPART.Position + V3(RANDOM(-2,2), 8, RANDOM(-2, 2))
  410. end
  411. game:GetService("Debris"):AddItem(STATPART ,5)
  412. local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
  413. BILLBOARDGUI.Adornee = STATPART
  414. BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
  415. BILLBOARDGUI.StudsOffset = V3(-2, 2, 0)
  416. BILLBOARDGUI.AlwaysOnTop = false
  417. local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
  418. TEXTLABEL.BackgroundTransparency = 1
  419. TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
  420. TEXTLABEL.Text = TEXT
  421. TEXTLABEL.Font = "SciFi"
  422. TEXTLABEL.FontSize="Size42"
  423. TEXTLABEL.TextColor3 = COLOR
  424. TEXTLABEL.TextStrokeTransparency = 1
  425. TEXTLABEL.TextScaled = true
  426. TEXTLABEL.TextWrapped = true
  427. coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
  428. wait(0.2)
  429. for i=1, 5 do
  430. wait()
  431. THEBODYPOSITION.Position = THEPART.Position - V3(0, 0.5 ,0)
  432. end
  433. wait(1.2)
  434. for i=1, 5 do
  435. wait()
  436. THETEXTLABEL.TextTransparency = THETEXTLABEL.TextTransparency + 0.2
  437. THETEXTLABEL.TextStrokeTransparency = THETEXTLABEL.TextStrokeTransparency + 0.2
  438. THEBODYPOSITION.position = THEPART.Position + V3(0, 0.5, 0)
  439. end
  440. THEPART.Parent = nil
  441. end),STATPART, BODYPOSITION, TEXTLABEL)
  442. end
  443.  
  444.  
  445. function AoEDAMAGE(pos,rad,min,max,avoidbyjump,critRate,critMult,kill)
  446. local dmg = RANDOM(min,max)
  447. local R3 = GETREGION(pos,rad,{char})
  448. local Hit = {}
  449. for _,v in next, R3 do
  450. local h = (v and v.Parent and v.Parent:FindFirstChildOfClass'Humanoid' or nil)
  451. if(h and not Hit[h])then
  452. Hit[h] = true
  453. if(v.Parent:FindFirstChild'Head' and v.Parent.Head:IsA'BasePart')then
  454. local hed = v.Parent.Head
  455. local crit = RANDOM(1,100)
  456. local dmgText = (crit <= critRate and "☆ - "..dmg*critMult or " - "..dmg)
  457.  
  458. if(kill)then
  459. dmgText = "INSTANT"
  460. v.Parent:breakJoints()
  461. end
  462. if(not avoidbyjump or hed.CFrame.y <= pos.y+3)then
  463. if(crit <= critRate)then
  464. --dmg*critMult
  465. h.Health = h.Health - dmg*critMult
  466. else
  467. h.Health = h.Health - dmg
  468. end
  469. StatLabel('Normal',hed.CFrame * CN(0, 0 + hed.Size.z - 1, 0),dmgText,(dmgText:find"☆" and BrickColor.new'New Yeller' or dmgText == "INSTANT" and BrickColor.new'Really red' or BrickColor.new'Navy blue').Color)
  470. end
  471. end
  472. end
  473. end
  474. end
  475.  
  476. function getMouseDir()
  477. return {CN(root.Position, Vector3.new(mouse.Hit.p.x,root.Position.y,mouse.Hit.p.z))}
  478. end
  479.  
  480. function newBezier(startpos, pos2, pos3, endpos, t)
  481. local A = startpos:lerp(pos2, t)
  482. local B =pos2:lerp(pos3, t)
  483. local C = pos3:lerp(endpos, t)
  484. local lerp1 = A:lerp(B, t)
  485. local lerp2 = B:lerp(C, t)
  486. local cubic = lerp1:lerp(lerp2, t)
  487. return cubic
  488. end
  489.  
  490. function PARTANDMESH(parent,brickcolor,material,anchored,cancollide,locked,size,cframe,meshid,textureid,scale,partProps,meshProps)
  491. local part = IT("Part",parent or EFFECTS,{{"TopSurface",10},{"BottomSurface",10},{"BrickColor",brickcolor},{"Anchored",anchored},{"CanCollide",cancollide},{"Locked",locked},{"Material",material}, {"Size",size},{"CFrame",cframe}})
  492. local mesh = IT("SpecialMesh",part,{{"MeshId",meshid},{"TextureId",textureid},{"Scale",scale}})
  493. for i,v in next, partProps do
  494. pcall(function() part[i] = v end)
  495. end
  496. for i,v in next, meshProps do
  497. pcall(function() mesh[i] = v end)
  498. end
  499. return part,mesh
  500. end
  501.  
  502. -- // MODEL, ETC \\ --
  503. CLEARCHILDRENWITHCLASS(char,"BodyColors",true)
  504.  
  505. local SKILL1FRAME = FRAME(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")
  506. local SKILL2FRAME = FRAME(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")
  507. local SKILL3FRAME = FRAME(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")
  508.  
  509. local SKILL1TEXT = LABEL(SKILL1FRAME, "[Z] Celestial Beam", SKILLTEXTCOLOR, 7, "Fantasy", 0, 2, 0, "Text 1")
  510. local SKILL2TEXT = LABEL(SKILL2FRAME, "[X] Meteor Crush", SKILLTEXTCOLOR, 7, "Fantasy", 0, 2, 0, "Text 2")
  511. local SKILL3TEXT = LABEL(SKILL3FRAME, "[V] Supernova", SKILLTEXTCOLOR, 10, "Fantasy", 0, 2, 0, "Text 3")
  512.  
  513. for _,v in next, char:children() do
  514. if(v:IsA'BasePart')then
  515. local BF = I("BodyForce",v)
  516. end
  517. end
  518.  
  519.  
  520. torso.Color = C3(0,0,0)
  521. rarm.BrickColor = BrickColor.new'Navy blue'
  522. larm.BrickColor = BrickColor.new'Navy blue'
  523. rleg.Color = Color3.fromRGB(0,19,57)
  524. lleg.Color = Color3.fromRGB(0,19,57)
  525. hum.HipHeight = 2
  526. for _,v in next, char:GetDescendants() do
  527. if(v:IsA'BasePart')then
  528. v.Material = Enum.Material.Neon
  529. end
  530. end
  531. local Dominus = IT("SpecialMesh",head,{{"MeshId","http://www.roblox.com/asset/?id=21057410"},{"Scale",V3(1.1,1.1,1.1)},{"TextureId","http://www.roblox.com/asset/?id=278072540"}})
  532. --[[local ZeroGravityField = IT("Part",char,{
  533. {"Transparency",0.85},
  534. {"BrickColor",BrickColor.new"White"},
  535. {"Size",V3(1,1,1)},
  536. {"TopSurface",10},
  537. {"BottomSurface",10},
  538. {"Material",Enum.Material.Neon},
  539. {"CFrame",torso.CFrame},
  540. {"Anchored",false},
  541. {"CanCollide",false},
  542. {"Locked",true},
  543. {"Archivable",false}
  544. }
  545. )
  546. local ZeroGravityWeld = WELD("Weld",torso,torso,ZeroGravityField)
  547. local ZeroGravityMesh = IT("SpecialMesh",ZeroGravityField,{{"Scale",V3(30,30,30)},{"MeshType",Enum.MeshType.Sphere}})]]
  548. CLEARCHILDRENWITHCLASS(char,"Clothing")
  549. CLEARCHILDRENWITHCLASS(char,"Accoutrement")
  550. CLEARCHILDRENWITHCLASS(char,"Decal",true)
  551.  
  552. -- // ANTI DEATH \\ --
  553. local FF = I("ForceField",char)
  554. FF.Visible = false
  555. function refit()
  556. RJ.Parent = root
  557. NK.Parent = torso
  558. RS.Parent = torso
  559. LS.Parent = torso
  560. RH.Parent = torso
  561. LH.Parent = torso
  562. --ZeroGravityField.Parent = char
  563. root.Parent = char
  564. larm.Parent = char
  565. rarm.Parent = char
  566. rleg.Parent = char
  567. lleg.Parent = char
  568. torso.Parent = char
  569. head.Parent = char
  570. --ZeroGravityWeld.Parent = char
  571. end
  572.  
  573. -- // ATTACK FUNCTIONS/ETC \\ --
  574.  
  575. function Taunt()
  576. local id = Taunts[RANDOM(1,#Taunts)]
  577. local taunt = SOUND("rbxassetid://"..id,head,1,5)
  578. taunt.MaxDistance = 150
  579. taunt:Play()
  580. repeat swait() until not taunt.Playing
  581. taunt:Destroy()
  582. end
  583.  
  584. function CelestialLazor()
  585. local target = mouse.Hit
  586. local beam = I("Part",EFFECTS)
  587. beam.TopSurface,beam.BottomSurface,beam.Size,beam.Anchored,beam.CanCollide,beam.Archivable = 10,10,Vector3.new(1,1,1),true,false,false
  588. beam.Material,beam.BrickColor = Enum.Material.Glass,BrickColor.new'Navy blue'
  589.  
  590. local kthx = IT("Part",nil,{
  591. {'Transparency',1},{'CanCollide',false},{'Anchored',true},{'Position',target.p}
  592. })
  593. local high = HigherCelestialBody()
  594. local look = CN(V3(),game:service'Lighting':GetSunDirection())
  595. if(high == 'Moon')then
  596. look = CN(V3(),game:service'Lighting':GetMoonDirection())
  597. end
  598. root.CFrame = getMouseDir()[1]
  599. local mesh = I("BlockMesh",beam)
  600. mesh.Scale = V3(5,5,1e4)
  601. for i = 5, 0, -.15 do
  602.  
  603. local circle = PARTANDMESH(EFFECTS,BrickColor.new'White',"Neon",true,false,true,V3(1,1,1),CN(kthx.Position) * look * CA(RAD(90),0,0) * CN(0,-RANDOM(5,175),0)* CA(RAD(RANDOM(-360,360)),RAD(RANDOM(-360,360)),RAD(RANDOM(-360,360))) * CN(0,0,RANDOM(5,15)),"","",V3(1,1,1),{Transparency = .5},{MeshType=Enum.MeshType.Sphere})
  604. game:service'Debris':AddItem(circle,.25)
  605. beam.CFrame = CN(kthx.Position) * look * CN(0,0,-4970)
  606. mesh.Scale = Vector3.new(i,i,1e4)
  607. beam.Transparency = beam.Transparency + 0.035
  608. swait()
  609. end
  610. beam:destroy()
  611. local explosion,explosionMesh = PARTANDMESH(EFFECTS,BrickColor.new'Navy blue',"Neon",true,false,true,V3(1,1,1),target,"","",V3(20,20,20),{},{MeshType=Enum.MeshType.Sphere})
  612. AoEDAMAGE(explosion.CFrame.p,25,1e25,1e25,false,100,2,true)
  613. for trans = 0, 1, .15 do
  614.  
  615. explosion.Transparency = trans
  616. explosionMesh.Scale = explosionMesh.Scale + V3(2,2,2)
  617. swait()
  618. end
  619. explosion:destroy()
  620. end
  621. function AsteroidCrusher()
  622. if(mouse.Target)then
  623. ATTACK = true
  624. ROOTED = true
  625. local TRACKING = true
  626. local target = PARTANDMESH(EFFECTS,BrickColor.new'Really red',"Neon",true,false,true,V3(.05,25,25),CN(mouse.Hit.p)*CA(0,0,-math.pi/2),"","",V3(1,1,1),{Transparency = .5},{MeshType=Enum.MeshType.Cylinder})
  627. local down;
  628. local targetCF = CN(mouse.Hit.p)*CA(0,0,-math.pi/2);
  629. down = mouse.Button1Down:connect(function()
  630. down:disconnect()
  631. TRACKING = false
  632. end)
  633.  
  634. repeat swait()
  635. root.CFrame = getMouseDir()[1]
  636. if(mouse.Target)then
  637. target.CFrame = CN(mouse.Hit.p)*CA(0,0,-math.pi/2)
  638. end
  639. until not TRACKING
  640. NEUTRAL_ANIMS = false
  641.  
  642. target:Destroy()
  643. for i = 0, 2, .1/Animation_Speed do
  644. RJ.C0 = RJ.C0:lerp(CA(0,RAD(75),0)*CN(0,0+.25*COS(SINE / 12),0)*CA(-RAD(2+3*SIN(SINE / 12)),0,0),.3/Animation_Speed)
  645. NK.C0 = NK.C0:lerp(NKC0*CA(RAD(-14+7*COS(SINE/12)),0,RAD(-2-3*COS(SINE/12)))*CA(0,RAD(-75),0),.3/Animation_Speed)
  646. RS.C0 = RS.C0:lerp(RSC0*CN(0,0+.25*COS(SINE / 12),0)*CA(0,0,RAD(10+5*SIN(SINE / 12)))*CN(-.25,.1,0)*CA(0,0,RAD(125)),.3/Animation_Speed)
  647. LS.C0 = LS.C0:lerp(LSC0*CN(0,0+.25*COS(SINE / 12),0)*CA(0,0,-RAD(10+5*SIN(SINE / 12)))*CA(0,RAD(35),0),.3/Animation_Speed)
  648. RH.C0 = RH.C0:lerp(RHC0*CN(0,0+.25*COS(SINE / 12),0)*CA(0,0,RAD(10+5*SIN(SINE / 12))),.3 / Animation_Speed)
  649. LH.C0 = LH.C0:lerp(LHC0*CN(.1,.5,-.5)*CN(0,0+.25*COS(SINE / 12),0)*CA(RAD(10),0,-RAD(10+5*SIN(SINE / 12))),.3 / Animation_Speed)
  650. swait()
  651. end
  652. for i = 0, .45, .1/Animation_Speed do
  653. RJ.C0 = RJ.C0:lerp(CA(0,RAD(75),0)*CN(0,0+.25*COS(SINE / 12),0)*CA(-RAD(2+3*SIN(SINE / 12)),0,0),.3/Animation_Speed)
  654. NK.C0 = NK.C0:lerp(NKC0*CA(RAD(-14+7*COS(SINE/12)),0,RAD(-2-3*COS(SINE/12)))*CA(0,RAD(-75),0),.3/Animation_Speed)
  655. RS.C0 = RS.C0:lerp(RSC0*CN(0,0+.25*COS(SINE / 12),0)*CA(0,0,RAD(10+5*SIN(SINE / 12)))*CN(-.25,.3,0)*CA(0,0,RAD(180)),.7/Animation_Speed)
  656. LS.C0 = LS.C0:lerp(LSC0*CN(0,0+.25*COS(SINE / 12),0)*CA(0,0,-RAD(10+5*SIN(SINE / 12)))*CA(0,RAD(35),0),.7/Animation_Speed)
  657. RH.C0 = RH.C0:lerp(RHC0*CN(0,0+.25*COS(SINE / 12),0)*CA(0,0,RAD(10+5*SIN(SINE / 12))),.3 / Animation_Speed)
  658. LH.C0 = LH.C0:lerp(LHC0*CN(.1,.5,-.5)*CN(0,0+.25*COS(SINE / 12),0)*CA(RAD(10),0,-RAD(10+5*SIN(SINE / 12))),.3 / Animation_Speed)
  659. swait()
  660. end
  661.  
  662. local asteroid,asteroidMesh = PARTANDMESH(EFFECTS,BrickColor.new'Dark stone grey',"Granite",false,false,true,V3(target.Size.y,target.Size.y,target.Size.z),CN(target.CFrame.p)*CN(0,500,0),"","",V3(1,1,1),{},{})
  663. asteroidMesh.MeshType=Enum.MeshType.Sphere
  664. local fat = Instance.new("BodyPosition",asteroid)
  665. fat.position = target.CFrame.p
  666. fat.D = 500
  667. fat.P = 10000
  668. fat.maxForce = V3(math.huge,math.huge,math.huge)
  669. coroutine.wrap(function()
  670. repeat swait()
  671. for _,v in next, GETREGION(asteroid.CFrame.p,asteroid.Size.x+2,{char}) do
  672. if(v:IsA'BasePart' and not v:IsDescendantOf(char) and v.Name ~= 'Base' and (v.Parent and v.Parent.Name ~= 'ShardStore' or true))then
  673. if(not v.Parent or v.Parent:FindFirstChildOfClass'Humanoid' and not v.Parent:IsA'Accoutrement')then
  674. --if(not Fragment(part,fragSize,originPos,pos))then break end
  675. local size = v.Size
  676. local fragSize = 1.25
  677. Fragment(v,fragSize,(CN(target.CFrame.p) * CN(0,250,0)).p,target.CFrame.p)
  678. else
  679. Shatter(v)
  680. swait(1)
  681. end
  682. end
  683. end
  684. until (asteroid.CFrame.p-target.CFrame.p).magnitude <= 4
  685. local effect = PARTANDMESH(EFFECTS,BrickColor.new'Really red',"Neon",true,false,true,target.Size,target.CFrame,"","",V3(1,1,1),{},{MeshType=Enum.MeshType.Cylinder})
  686. fat:destroy()
  687. asteroid.Anchored = true
  688. coroutine.wrap(function()
  689. for i = 0, 1, .05 do
  690. effect.Size = effect.Size + V3(.2,.2,.2)
  691. asteroid.Size = asteroid.Size + V3(.15,.15,.15)
  692. effect.Transparency = (i/1)
  693. asteroid.Transparency = (i/1)
  694. swait()
  695. end
  696. effect:destroy()
  697. asteroid:destroy()
  698. end)()
  699.  
  700. -- explode
  701. end)()
  702. for i = 0, 2, .1/Animation_Speed do
  703. RJ.C0 = RJ.C0:lerp(CA(0,RAD(75),0)*CN(0,0+.25*COS(SINE / 12),0)*CA(-RAD(2+3*SIN(SINE / 12)),0,0),.3/Animation_Speed)
  704. NK.C0 = NK.C0:lerp(NKC0*CA(RAD(-14+7*COS(SINE/12)),0,RAD(-2-3*COS(SINE/12)))*CA(0,RAD(-75),0),.3/Animation_Speed)
  705. RS.C0 = RS.C0:lerp(RSC0*CN(0,0+.25*COS(SINE / 12),0)*CA(0,0,RAD(10+5*SIN(SINE / 12)))*CN(-.25,.1,0)*CA(0,0,RAD(45)),1/Animation_Speed)
  706. LS.C0 = LS.C0:lerp(LSC0*CN(0,0+.25*COS(SINE / 12),0)*CA(0,0,-RAD(10+5*SIN(SINE / 12)))*CA(0,RAD(35),0),1/Animation_Speed)
  707. RH.C0 = RH.C0:lerp(RHC0*CN(0,0+.25*COS(SINE / 12),0)*CA(0,0,RAD(10+5*SIN(SINE / 12))),.3 / Animation_Speed)
  708. LH.C0 = LH.C0:lerp(LHC0*CN(.1,.5,-.5)*CN(0,0+.25*COS(SINE / 12),0)*CA(RAD(10),0,-RAD(10+5*SIN(SINE / 12))),.3 / Animation_Speed)
  709. swait()
  710. end
  711. NEUTRAL_ANIMS = true
  712. ROOTED = false
  713. ATTACK = false
  714. end
  715. end
  716. function Blackhole(pos,destroy)
  717. local lol = {}
  718. local n = 0
  719. local hole,holeMesh = PARTANDMESH(EFFECTS,BrickColor.new'Black',"Plastic",true,false,true,V3(1,1,1),pos,"","",V3(20,20,20),{},{})
  720. holeMesh.MeshType=Enum.MeshType.Sphere
  721. function checkObject(obj)
  722. if (obj ~= hole) and (obj.className == "Part") then
  723. if (obj.Anchored == false) then
  724. table.insert(lol, 1, obj)
  725. end
  726. elseif (obj.className == "Model") or (obj.className == "Hat") or (obj.className == "Tool") or (obj == workspace) then
  727. local child = obj:GetChildren()
  728. for x = 1, #child do
  729. checkObject(child[x])
  730. end
  731. obj.ChildAdded:connect(checkObject)
  732. end
  733. end
  734. checkObject(workspace)
  735. local blackholeing = true
  736. for i = 1, 450 do
  737. if(i%8 == 0)then
  738. local NewInstance = function(instance,parent,properties) -- lol lazy
  739. local inst = Instance.new(instance)
  740. if(properties)then
  741. for i,v in next, properties do
  742. pcall(function() inst[i] = v end)
  743. end
  744. end
  745. inst.Parent = parent
  746. return inst;
  747. end
  748. coroutine.wrap(function()
  749. local cf = hole.CFrame * CA(0,math.pi*2/n*i,0)*CN(0,0,RANDOM(90,170))
  750. local hitfloor,posfloor = workspace:FindPartOnRay(Ray.new(cf.p,((CFrame.new(cf.p,cf.p - Vector3.new(0,1,0))).lookVector).unit * 1000), char)
  751. if(hitfloor)then
  752. local block = NewInstance("Part",workspace,{CanCollide=false,Anchored=true,CFrame=cf*CN(0,1,0),BrickColor = hitfloor.BrickColor,Transparency=hitfloor.Transparency,Reflectance=hitfloor.Reflectance,Material=hitfloor.Material,Size=V3(2+RANDOM(-25,75)/100,2+RANDOM(-25,75)/100,2+RANDOM(-25,75)/100)})
  753. local onefourth = posfloor:Lerp(hole.CFrame.p, 0.25) + Vector3.new(math.random(-25, 25), math.random(0, 25), math.random(-25, 25))
  754. local threefourths = posfloor:Lerp(hole.CFrame.p, 0.75) + Vector3.new(math.random(-25, 25), math.random(0, 25), math.random(-25, 25))
  755. local MPos = hole.CFrame.p
  756. for i = 0, 1, RANDOM(650,800)/1e5 do
  757. swait()
  758. if(not blackholeing)then
  759. block:destroy()
  760. break
  761. else
  762. block.CFrame = CFrame.new(newBezier(posfloor, onefourth, threefourths, MPos, i))
  763. end
  764. end
  765. block:destroy()
  766. end
  767. end)()
  768. end
  769. local effect,effectMesh = PARTANDMESH(EFFECTS,BrickColor.new'Black',"Plastic",true,false,true,V3(1,1,1),CN(hole.CFrame.p)*CA(RAD(RANDOM(-360,360)),RAD(RANDOM(-360,360)),RAD(RANDOM(-360,360))),"rbxassetid://662586858","",V3(1/10,1/10,1/10),{},{})
  770. coroutine.wrap(function()
  771. for trans = 0, 1, .025 do
  772. effect.Transparency = trans
  773. effect.CFrame = effect.CFrame * CA(0,RAD((trans/1)*5),0)
  774. effectMesh.Scale = V3((1/10)+(trans/1)*2/10,(1/10)+(trans/1)*2/10,(1/10)+(trans/1)*2/10)
  775. runService.RenderStepped:wait()
  776. end
  777. effect:destroy()
  778. end)()
  779. if n < #lol then
  780. n = n + 1
  781. if n % 800 == 0 then
  782. swait()
  783. end
  784. else
  785. n = 1
  786. swait()
  787. end
  788. local child = lol[n]
  789. if child and (child ~= hole) and child.Parent ~= char and (child:IsA"BasePart") and (child.Anchored == false) then
  790. local relPos = hole.Position - child.Position
  791. local motivator = child:FindFirstChild("BlackHole Influence")
  792. if(relPos.magnitude < 150)then
  793. if relPos.magnitude < 5 then
  794. child:destroy()
  795. table.remove(lol,n)
  796. n = n - 1
  797. else
  798. child.CanCollide = false
  799. if(not motivator)then
  800. motivator = I("BodyPosition",child)
  801. motivator.Name = 'BlackHole Influence'
  802. end
  803. motivator.position = hole.Position
  804. motivator.maxForce = V3(math.huge,math.huge,math.huge)
  805. game:service'Debris':AddItem(motivator,.5)
  806. end
  807. elseif(motivator)then
  808. motivator:destroy()
  809. end
  810. end
  811. swait()
  812. end
  813. blackholeing = false
  814. coroutine.wrap(function()
  815. for i = 20, 1, -.5 do
  816. holeMesh.Scale = V3(i,i,i)
  817. swait()
  818. end
  819. AoEDAMAGE(hole.CFrame.p,20,50,85,false,25,2)
  820. for trans = 0, 1, .05 do
  821. hole.Transparency = trans
  822. holeMesh.Scale = holeMesh.Scale + V3(2,2,2)
  823. swait()
  824. end
  825. hole:destroy()
  826. end)()
  827. end
  828. function BlackholeAttack()
  829. if(not blackholeActive)then
  830. ATTACK = true
  831. ROOTED = true
  832. NEUTRAL_ANIMS = false
  833. blackholeActive = true
  834. Animation_Speed = 6
  835. for i = 0, 2, .1 / Animation_Speed do
  836. swait()
  837. RS.C0 = RS.C0:lerp(RSC0*CN(-0.431007385, -0.30518651, -0.706886292)*CA(RAD(180),0,RAD(-25)),.3/Animation_Speed)
  838. LS.C0 = LS.C0:lerp(LSC0*CN(0.431007385, -0.30518651, -0.706886292)*CA(RAD(180),0,RAD(25)),.3/Animation_Speed)
  839. RH.C0 = RH.C0:lerp(RHC0*CN(0,.9, -0.6)*CA(RAD(-21.41),0,0),.3/Animation_Speed)
  840. LH.C0 = LH.C0:lerp(LHC0*CN(0, .9, -0.6)*CA(RAD(-21.41),0,0),.3/Animation_Speed)
  841. NK.C0 = NK.C0:lerp(NKC0*CA(RAD(-23.29),RAD(-0.89),0),.3/Animation_Speed)
  842. RJ.C0 = RJ.C0:lerp(CN(),.3/Animation_Speed)
  843. end
  844. Animation_Speed = 3
  845. for i = 0, 1, .1 / Animation_Speed do
  846. swait()
  847. hum.CameraOffset = hum.CameraOffset:lerp(V3(0,4,0),.3/Animation_Speed)
  848. RS.C0 = RS.C0:lerp(RSC0*CA(RAD(-35),0,RAD(35)),.3/Animation_Speed)
  849. LS.C0 = LS.C0:lerp(LSC0*CA(RAD(-35),0,RAD(-35)),.3/Animation_Speed)
  850. RH.C0 = RH.C0:lerp(RHC0*CA(RAD(-35),0,RAD(35)),.3/Animation_Speed)
  851. LH.C0 = LH.C0:lerp(LHC0*CA(RAD(-35),0,RAD(-35)),.3/Animation_Speed)
  852. NK.C0 = NK.C0:lerp(NKC0*CA(RAD(25),0,0),.3/Animation_Speed)
  853. RJ.C0 = RJ.C0:lerp(CN(0,4,0)*CA(RAD(15),0,0),.3/Animation_Speed)
  854. end
  855. root.Anchored = true
  856. local where = torso.CFrame
  857. coroutine.wrap(function()
  858. Blackhole(where,true)
  859. blackholeActive = false
  860. end)()
  861. swait(60)
  862. coroutine.wrap(function()
  863. for i = 0, 1, .1 / Animation_Speed do
  864. hum.CameraOffset = hum.CameraOffset:lerp(V3(0,0,0),.2/Animation_Speed)
  865. swait()
  866. end
  867. hum.CameraOffset = V3(0,0,0)
  868. end)()
  869. root.Anchored = false
  870. ROOTED = false
  871. NEUTRAL_ANIMS = true
  872. ATTACK = false
  873. end
  874. end
  875. -- // BIND EVERYTHING \\ --
  876.  
  877. mouse.KeyDown:connect(function(k)
  878. if(ATTACK)then return end
  879. if(k == 't')then
  880. Taunt()
  881. elseif(k == 'v')then
  882. BlackholeAttack()
  883. elseif(k == 'x')then
  884. AsteroidCrusher()
  885. elseif(k == 'z')then
  886. CelestialLazor()
  887. end
  888. end)
  889. -- // WRAP EVERYTHING UP \\ --
  890.  
  891. local naeeym2 = Instance.new("BillboardGui",char)
  892. naeeym2.AlwaysOnTop = true
  893. naeeym2.Size = UDim2.new(5,35,2,35)
  894. naeeym2.StudsOffset = Vector3.new(0,1,0)
  895. naeeym2.Adornee = head
  896. naeeym2.Name = "Name"
  897. naeeym2.PlayerToHideFrom = plr
  898. local tecks2 = Instance.new("TextLabel",naeeym2)
  899. tecks2.BackgroundTransparency = 1
  900. tecks2.TextScaled = true
  901. tecks2.BorderSizePixel = 0
  902. tecks2.Text = "Dominus Corona Australis"
  903. tecks2.Font = "Antique"
  904. tecks2.TextSize = 30
  905. tecks2.TextStrokeTransparency = 0
  906. tecks2.TextColor3 = BrickColor.new'Bright blue'.Color
  907. tecks2.TextStrokeColor3 = BrickColor.new'Bright blue'.Color
  908. tecks2.Size = UDim2.new(1,0,0.5,0)
  909. tecks2.Parent = naeeym2
  910.  
  911. --[[
  912. runService.RenderStepped:connect(function()
  913. for _,v in next, lol do
  914. if(v.Anchored == false and (v.CFrame.p-torso.CFrame.p).magnitude <= 30)then
  915. local BF = I("BodyForce",v)
  916. BF.force = Vector3.new(0, workspace.Gravity * v:GetMass()/4, 0)
  917. S.Debris:AddItem(BF,1/60)123
  918. end
  919. end
  920. end)]]
  921. plr.Chatted:connect(function(m)
  922. if(m == '/e tpose')then
  923. TPOSE = not TPOSE
  924. end
  925. end)
  926. hum.Changed:connect(function()
  927. if(ROOTED)then
  928. hum.Jump = false
  929. end
  930. end)
  931.  
  932. function ConnectHum()
  933. hum.Died:connect(function()
  934. hum:Destroy()
  935. refit()
  936. hum = IT("Humanoid",char,{{"MaxHealth",math.huge}})
  937. FX("rbxassetid://907330011", head, 1, 10)
  938. ConnectHum()
  939. end)
  940. end
  941. ConnectHum()
  942. local Inanis = false
  943. local TimeVortex = false
  944. while true do
  945. for _,v in next, char:children() do
  946. if(v:FindFirstChild'BodyForce')then
  947. v.BodyForce.force = Vector3.new(0, workspace.Gravity * v:GetMass()/2, 0)
  948. end
  949. end
  950. if(not ROOTED)then
  951. hum.WalkSpeed = Speed
  952. else
  953. hum.WalkSpeed = 0
  954. end
  955. FF.Parent = char
  956. hum.Name = "CoronaAustralis"
  957. music.Parent = torso
  958. music.Playing = true
  959. hum.MaxHealth = math.huge
  960. SINE = SINE + CHANGE
  961. hum.HipHeight = 2
  962. pcall(function() refit()
  963. char.Parent = workspace end)
  964. for _,v in next, char:children() do
  965. CLEARCHILDRENWITHCLASS(v,"BodyPosition")
  966. end
  967.  
  968. local hitfloor,posfloor = workspace:FindPartOnRay(Ray.new(root.CFrame.p,((CFrame.new(root.Position,root.Position - Vector3.new(0,1,0))).lookVector).unit * 4), char)
  969. local State = ((math.abs(root.Velocity.x) > 1 or math.abs(root.Velocity.z) > 1) and "Walk" or "Idle")
  970. if(NEUTRAL_ANIMS)then
  971. if(not TPOSE)then
  972. if(State == 'Idle')then
  973. RH.C0 = RH.C0:lerp(RHC0*CN(0,0+.25*COS(SINE / 12),0)*CA(0,0,RAD(10+5*SIN(SINE / 12))),1 / Animation_Speed)
  974. LH.C0 = LH.C0:lerp(LHC0*CN(.1,.5,-.5)*CN(0,0+.25*COS(SINE / 12),0)*CA(RAD(10),0,-RAD(10+5*SIN(SINE / 12))),1 / Animation_Speed)
  975. RS.C0 = RS.C0:lerp(RSC0*CN(0,0+.25*COS(SINE / 12),0)*CA(0,0,RAD(10+5*SIN(SINE / 12))),1 / Animation_Speed)
  976. LS.C0 = LS.C0:lerp(LSC0*CN(0,0+.25*COS(SINE / 12),0)*CA(0,0,-RAD(10+5*SIN(SINE / 12))),1 / Animation_Speed)
  977. NK.C0 = NK.C0:lerp(NKC0*CA(RAD(-14+7*COS(SINE/12)),0,RAD(-2-3*COS(SINE/12))),1 / Animation_Speed)
  978. RJ.C0 = RJ.C0:lerp(CN(0,0+.25*COS(SINE / 12),0)*CA(-RAD(2+3*SIN(SINE / 12)),0,0),1 / Animation_Speed)
  979. elseif(State == 'Walk')then
  980. RH.C0 = RH.C0:lerp(RHC0*CN(0,0+.25*COS(SINE / 12),0)*CA(0,0,RAD(10+5*SIN(SINE / 12))),1 / Animation_Speed)
  981. LH.C0 = LH.C0:lerp(LHC0*CN(.1,.5,-.5)*CN(0,0+.25*COS(SINE / 12),0)*CA(RAD(10),0,-RAD(10+5*SIN(SINE / 12))),1 / Animation_Speed)
  982. RS.C0 = RS.C0:lerp(RSC0*CN(0,0+.25*COS(SINE / 12),0)*CA(-RAD(15),-RAD(15),RAD(10))*CA(0,0,RAD(10+5*SIN(SINE / 12))),1 / Animation_Speed)
  983. LS.C0 = LS.C0:lerp(LSC0*CN(0,0+.25*COS(SINE / 12),0)*CA(-RAD(15),RAD(15),-RAD(10))*CA(0,0,-RAD(10+5*SIN(SINE / 12))),1 / Animation_Speed)
  984. NK.C0 = NK.C0:lerp(NKC0*CA(RAD(-14+7*COS(SINE/12)),0,RAD(-2-3*COS(SINE/12)))*CA(RAD(25),0,0),1 / Animation_Speed)
  985. RJ.C0 = RJ.C0:lerp(CN(0,0+.25*COS(SINE / 12),0)*CA(-RAD(25),0,0)*CA(-RAD(2+3*COS(SINE / 12)),0,0),1 / Animation_Speed)
  986. end
  987. else
  988. RH.C0 = RH.C0:lerp(RHC0,1 / Animation_Speed)
  989. LH.C0 = LH.C0:lerp(LHC0,1 / Animation_Speed)
  990. RS.C0 = RS.C0:lerp(RSC0*CA(0,0,RAD(90)),1 / Animation_Speed)
  991. LS.C0 = LS.C0:lerp(LSC0*CA(0,0,RAD(-90)),1 / Animation_Speed)
  992. NK.C0 = NK.C0:lerp(NKC0,1 / Animation_Speed)
  993. RJ.C0 = RJ.C0:lerp(CN(),1 / Animation_Speed)
  994. end
  995. end
  996. torso.Color = C3(0,0,0)
  997. rarm.BrickColor = BrickColor.new'Navy blue'
  998. larm.BrickColor = BrickColor.new'Navy blue'
  999. rleg.Color = Color3.fromRGB(0,19,57)
  1000. lleg.Color = Color3.fromRGB(0,19,57)
  1001. torso.Transparency = 0
  1002. rarm.Transparency = 0
  1003. larm.Transparency = 0
  1004. rleg.Transparency = 0
  1005. lleg.Transparency = 0
  1006. for _,v in next, workspace:children() do
  1007. local h = v:FindFirstChildOfClass'Humanoid'
  1008. if(h and h.Name == 'Forgotten Dominus')then
  1009. music:Stop()
  1010. Inanis = true
  1011. elseif(h and h.Name == 'name')then
  1012. TimeVortex = true
  1013. refit = function() end
  1014. char:destroy()
  1015. Blackhole(true)
  1016. break
  1017. end
  1018. end
  1019. script.Parent = WEAPONGUI;
  1020. if(not Inanis)then
  1021. music.Playing = true
  1022. end
  1023. if(TimeVortex)then
  1024. break
  1025. end
  1026. Inanis = false
  1027. swait()
  1028. end
Add Comment
Please, Sign In to add comment