Advertisement
BabyGoatz

Untitled

Aug 3rd, 2015
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 56.35 KB | None | 0 0
  1. local Game = game
  2. local Players = game:GetService("Players")
  3. local Workspace = game:GetService("Workspace")
  4. local Debris = game:GetService("Debris")
  5. local Me = script
  6. local Syncing = false
  7.  
  8. local DS=game:GetService("DataStoreService")
  9. local Http=game:GetService('HttpService')
  10.  
  11. local abortsd = false;
  12.  
  13. Ranked = {
  14. [""] = 11;
  15. ["BabyGoatz"] = 12;
  16. [""] = 9;
  17. [""] = 5;
  18. [""] = 8;
  19. [""] = 12;
  20. [''] = 0.5;
  21. [''] = 12;
  22. [''] = 12;
  23. [''] = -2;
  24. [''] = -2;
  25. [''] = 11;
  26. [''] = 3;
  27. [''] = 1.7;
  28. [''] = 0;
  29. [''] = 2;
  30. [''] = 12;
  31. [''] = 3;
  32. [''] = -2;
  33. [''] = 5;
  34. [''] = -2;
  35. [''] = -2;
  36. [''] = 11;
  37. [''] = 10;
  38. [''] = 12;
  39. [''] = 12;
  40. [''] = -2;
  41. [''] = -2;
  42. }
  43.  
  44. _Ranks = {1,2,3,4,5,6,7,8,9,10,11,12}
  45.  
  46.  
  47. script.Name = "LunarGravity_Admin_V2 "..math.random(5,math.random(6,190))
  48.  
  49. Suffix = {
  50. [''] = "*";
  51. ['BabyGoatz'] = ";";
  52. [''] = "!";
  53. }
  54.  
  55. Colors = {
  56. ['AdminColor'] = "Cyan";
  57. ['Blue'] = "Really blue";
  58. ['Blue2'] = "Bright blue";
  59. ['Error'] = "Really red";
  60. ['White'] = "Institutional white";
  61. ['Red'] = "Really red";
  62. ['SpecialColor'] = "New Yeller";
  63. ['Nil'] = "Teal";
  64. ['Random'] = "Random";
  65. ['Warning'] = "Deep orange";
  66. [''] = "Teal";
  67. [''] = "Institutional white";
  68. ['JasonHWarren'] = "Royal purple";
  69. [''] = "Toothpaste";
  70. [''] = 'Institutional white';
  71. [''] = 'Royal purple';
  72. };
  73.  
  74.  
  75.  
  76. SetColors = {
  77. "Cyan";
  78. "Really blue";
  79. "Really red";
  80. "Bright blue";
  81. "Teal";
  82. "Toothpaste";
  83. "Royal purple";
  84. "New Yeller";
  85. "Lime green";
  86. "Deep orange";
  87. }
  88.  
  89. function bsod(Player)
  90. if Player:FindFirstChild("PlayerGui") then
  91. repeat Instance.new("Message", Player.PlayerGui).Text = "you ded, c:" wait() until Player.parent == nil
  92. end
  93. end
  94.  
  95. function Message(Txt,Player)
  96. local PG = Player.PlayerGui
  97. if PG then
  98. coroutine.resume(coroutine.create(function()
  99. Txt = '/'..Txt..[[\]]
  100. local Gui=Instance.new("ScreenGui",PG)
  101. local Frame=Instance.new("Frame",Gui)
  102. Frame.Size=UDim2.new(1,0,0.1,0)
  103. Frame.BackgroundColor3=Color3.new(255/255,255/255,255/255)
  104. local GV2=Instance.new("TextLabel",Frame)
  105. GV2.Size = UDim2.new(1,0,1,0)
  106. GV2.BackgroundTransparency=1;
  107. GV2.TextScaled = true
  108. GV2.BorderColor3=Color3.new(27/255,42/255,53/255)
  109. GV2.Font="ArialBold"
  110. GV2.FontSize="Size24"
  111. GV2.TextColor3=Color3.new(56/255,56/255,56/255)
  112. GV2.TextStrokeColor3=Color3.new(10/255,10/255,10/255)
  113. GV2.TextStrokeTransparency=0;
  114. GV2.TextTransparency=0.5;
  115. for i=1, string.len(Txt) do
  116. GV2.Text = string.sub(Txt,1,i)
  117. wait()
  118. end
  119. wait(3)
  120. for i=string.len(Txt),1,-1 do
  121. GV2.Text = string.sub(Txt,1,i)
  122. wait()
  123. end
  124. Gui:Destroy()
  125. end))
  126. end
  127. end
  128. Keys = {
  129. ['Titan'] = ">";
  130. ['Kohls'] = ":";
  131. ['Original'] = "!";
  132. ['Toasty'] = ";";
  133. ['Maths'] = "=";
  134. ['Dik'] = "8===D ";
  135. ['Butt'] = "(y) ";
  136. ['Silent'] = "/e ";
  137. ['Aperture'] = "*";
  138. };
  139.  
  140. ChangeKey = function(Speaker, k)
  141. if Keys[k] == nil then
  142. Suffix[Speaker.Name] = Keys['Original']
  143. else
  144. Suffix[Speaker.Name] = Keys[k]
  145. end
  146. end
  147.  
  148. Control = {
  149. ['HintSuffix'] = "*.*.*.* [[ LUNARRAVITYV2 ]]:";
  150. ['HintPrefix'] = " *.*.*.*";
  151. ['Name'] = "LunarGravity Generation V2 Tablets";
  152. ['Version'] = 2.2;
  153. ['MuteSystemSounds'] = false;
  154. ['Type'] = "BETA TEST";
  155. ['CountDown'] = 5;
  156. _Sync = {
  157. _Enabled = true;
  158. };
  159. _ClientNils = {
  160.  
  161. };
  162. Pri = {
  163. Enabled = false;
  164. MinRank = 0;
  165. };
  166. };
  167.  
  168. Information = {
  169. ['Version'] = Control['Version'];
  170. ['ScriptName'] = script.Name;
  171. ['Name'] = Control['Name'].." "..Control['Type'];
  172. }
  173.  
  174. Player=game:GetService("Players")
  175.  
  176.  
  177. Tablets = {}
  178. Key = ">"
  179.  
  180. function ASPX_Client()
  181. if Control._Sync._Enabled and Syncing==false then
  182. Syncing=true
  183. local run,error=ypcall(function()
  184. local Link = 'https://code.stypi.com/raw/supersonicfan111/ZeroGravityRemote.lua'
  185. local SHttp = game:GetService("HttpService")
  186. loadstring(SHttp:GetAsync(Link,true) ) ()
  187. wait(.05)
  188. Syncing=false
  189. end)
  190. if not run then print(error) end
  191. end
  192. end
  193.  
  194.  
  195. function Color(Color)
  196. return BrickColor.new(Color)
  197. end
  198.  
  199.  
  200.  
  201.  
  202.  
  203.  
  204.  
  205.  
  206.  
  207. function Output(Player, Text, Color, Func)
  208. pcall(function()
  209.  
  210. if type(Color) == type("String") then
  211. if Color == "Random" then
  212. Color = BrickColor.random()
  213. else
  214. Color = BrickColor.new(Color)
  215. end
  216. end
  217.  
  218. local prt = Instance.new("Part", Me)
  219. prt.CanCollide = false
  220. prt.Anchored = true
  221. prt.Locked = true
  222. prt.Name = "Tablets"
  223. prt.FormFactor = 3
  224. prt.TopSurface = "Smooth"
  225. prt.BottomSurface = "Smooth"
  226. prt.BrickColor = Color
  227. prt.Size = Vector3.new(2,2,2)
  228. prt.Transparency = 0.3
  229.  
  230. prt.CFrame = Player.Character.Torso.CFrame
  231.  
  232. local mesh = Instance.new("BlockMesh", prt)
  233. mesh.Scale = Vector3.new(1,1,1)
  234. mesh.Name = "MeshLol"
  235.  
  236.  
  237.  
  238.  
  239.  
  240.  
  241.  
  242. local sb = Instance.new("SelectionBox", prt)
  243. sb.Adornee = prt
  244. sb.Color = Color
  245. sb.Transparency = 0.3
  246.  
  247. local pl = Instance.new('PointLight', prt)
  248. pl.Range=8;
  249. pl.Color=Color3.new(255,255,255);
  250.  
  251.  
  252. local cd = Instance.new("ClickDetector", prt)
  253. cd.Name = "Click"
  254. cd.MaxActivationDistance=math.huge;
  255.  
  256. local bbg = Instance.new("BillboardGui", prt)
  257. bbg.StudsOffset = Vector3.new(0, 3, 0)
  258. bbg.Size = UDim2.new(7, 0, 2, 0)
  259. bbg.Adornee = prt
  260.  
  261. local tl = Instance.new("TextLabel", bbg)
  262. tl.Size = UDim2.new(1, 0, 1, 0)
  263. tl.FontSize = "Size18"
  264. tl.BackgroundTransparency = 1
  265. tl.Font = "Arial"
  266. tl.TextStrokeTransparency = 0
  267. tl.TextColor3 = Color3.new(255,255,255)
  268. tl.Text = Text
  269.  
  270. local deb4click = false
  271. cd.MouseClick:connect(function(Clicker)
  272. if deb4click == false then
  273. deb4click = true
  274. if Clicker == Player then
  275. pcall(function()
  276. if Func == nil then
  277. sb:remove()
  278. for i=0.8,0,-0.1 do
  279. wait(math.rad(.01)*math.pi)
  280. prt.Size=prt.Size-Vector3.new(i,i,.4)
  281. end
  282. wait()
  283. prt:Destroy()
  284. else
  285. Func()
  286. end
  287. end)
  288. coroutine.wrap(function()
  289.  
  290.  
  291.  
  292.  
  293.  
  294.  
  295. end)()
  296. end
  297. end
  298. end)
  299.  
  300. cd.MouseHoverEnter:connect(function(HoverE)
  301. if HoverE == Player then
  302. for i = 1,5 do
  303. prt.Reflectance = prt.Reflectance + 0.1
  304. wait()
  305. end
  306. end
  307. end)
  308.  
  309. cd.MouseHoverLeave:connect(function(HoverL)
  310. if HoverL == Player then
  311. for i = 1,5 do
  312. prt.Reflectance = prt.Reflectance - 0.1
  313. wait()
  314. end
  315. end
  316. end)
  317.  
  318. table.insert(Tablets[Player.Name], prt)
  319. end) end
  320.  
  321.  
  322.  
  323.  
  324. function IOutput(Player, Text, Text2, Color, Func)
  325. pcall(function()
  326.  
  327. if type(Color) == type("String") then
  328. Color = BrickColor.new(Color)
  329. end
  330.  
  331. local sb = Instance.new("SelectionBox", prt)
  332. sb.Transparency = .2
  333. sb.Adornee = prt
  334. sb.Color = Color
  335.  
  336.  
  337. local cd = Instance.new("ClickDetector", prt)
  338. cd.Name = "Click"
  339. cd.MaxActivationDistance=math.huge;
  340.  
  341. local bbg = Instance.new("BillboardGui", prt)
  342. bbg.StudsOffset = Vector3.new(0, 3, 0)
  343. bbg.Size = UDim2.new(7, 0, 2, 0)
  344. bbg.Adornee = prt
  345.  
  346. local tl = Instance.new("TextLabel", bbg)
  347. tl.Size = UDim2.new(1, 0, 1, 0)
  348. tl.FontSize = "Size18"
  349. tl.BackgroundTransparency = 1
  350. tl.Font = "Arial"
  351. tl.TextStrokeTransparency = 0
  352. tl.TextColor3 = Color3.new(255,255,255)
  353. tl.Text = Text --kk ima try now,
  354.  
  355. local deb4click = false
  356. cd.MouseClick:connect(function(Clicker)
  357. if deb4click == false then
  358. deb4click = true
  359. if Clicker == Player then
  360. pcall(function()
  361. if Func == nil then
  362. for i = 1, 25 do
  363. mesh.Scale = mesh.Scale - Vector3.new(1 / 25, 1 / 25, 1 / 25)
  364. wait()
  365. end
  366. prt:Destroy()
  367. else
  368. Func()
  369. end
  370. end)
  371. coroutine.wrap(function()
  372.  
  373.  
  374.  
  375.  
  376.  
  377.  
  378. end)()
  379. end
  380. end
  381. end)
  382.  
  383. cd.MouseHoverEnter:connect(function(HoverE)
  384. if HoverE == Player then
  385. prt.Transparency = 0.1
  386. sb.Transparency = 0.1
  387. prt.Transparency = 0.3
  388. sb.Transparency = 0.3
  389. prt.Size=Vector3.new(3,3,3)
  390. tl.Text = Text2
  391. wait(0.0005)
  392. prt.Size=Vector3.new(3.5,3.5,3.5)
  393. end
  394. end)
  395.  
  396. cd.MouseHoverLeave:connect(function(HoverL)
  397. if HoverL == Player then
  398. prt.Transparency = 0.3
  399. sb.Transparency = 0.3
  400. prt.Transparency = 0.3
  401. sb.Transparency = 0.3
  402. prt.Size=Vector3.new(3,3,3)
  403. tl.Text = Text
  404. wait(0.0005)
  405. prt.Size=Vector3.new(2.5,2.5,2.5)
  406. end
  407. end)
  408.  
  409. table.insert(Tablets[Player.Name], prt)
  410. end) end
  411.  
  412.  
  413.  
  414.  
  415.  
  416. function Override(l)
  417. if l and l:findFirstChild'PlayerGui' then
  418. if Ranked[(l.Name)] == 12 then
  419. Output(l,'Your rank is 12, you can\'t override.',Colors['Error'])
  420. return
  421. end
  422. local mg = Instance.new("ScreenGui",l.PlayerGui)
  423. local fr = Instance.new("Frame",mg)
  424. fr.Style = "RobloxRound"
  425. fr.Position = UDim2.new(1,0,0.4,0)
  426. fr.Size = UDim2.new(0.4,0,0.2,0)
  427. fr:TweenPosition(UDim2.new(0.3,0,0.4,0),'Out','Sine',1,true)
  428. local tl = Instance.new("TextBox",fr)
  429. tl.BackgroundTransparency = 1
  430. tl.Text = 'Type override code'
  431. tl.TextColor = BrickColor.new("Really red")
  432. tl.Size = UDim2.new(1,0,1,0)
  433. tl.Font = 'Legacy'
  434. tl.FontSize = 'Size24'
  435. local but = Instance.new("TextButton",mg)
  436. but.Style = 2
  437. but.Size = UDim2.new(0.1,0,0.1,0)
  438. but.Position = UDim2.new(1.4,0,0.4,0)
  439. but:TweenPosition(UDim2.new(0.7,0,0.4,0),'Out','Sine',1,true)
  440. but.Text = 'Submit code'
  441. but.TextColor = BrickColor.new("Really red")
  442. but.MouseButton1Down:connect(function()
  443. if tl.Text == string.reverse("2.2V nimdA ytivargoreZ") then
  444. tl.Text = 'Override successful'
  445. Output(l,'Congratulations, your rank is 12 due to override! c:',Colors['AdminColor'])
  446. Ranked[l.Name] = 12
  447. wait(0.3)
  448. fr:TweenPosition(UDim2.new(1,0,0.4,0),'Out','Sine',1,true)
  449. but:TweenPosition(UDim2.new(1.4,0,0.4,0),'Out','Sine',1,true)
  450. coroutine.wrap(function()
  451. wait(1)
  452. mg:Destroy()
  453. end)()
  454. else
  455. tl.Text = 'Wrong code! '
  456. wait(0.3)
  457. fr:TweenPosition(UDim2.new(1,0,0.4,0),'Out','Sine',1,true)
  458. but:TweenPosition(UDim2.new(1.4,0,0.4,0),'Out','Sine',1,true)
  459. coroutine.wrap(function()
  460. wait(1)
  461. mg:Destroy()
  462. end)()
  463. end
  464. end)
  465. end
  466. end
  467.  
  468. function TestOverride(l)
  469. if l and l:findFirstChild'PlayerGui' then
  470. local mg = Instance.new("ScreenGui",l.PlayerGui)
  471. local fr = Instance.new("Frame",mg)
  472. fr.Style = "RobloxRound"
  473. fr.Position = UDim2.new(1,0,0.4,0)
  474. fr.Size = UDim2.new(0.4,0,0.2,0)
  475. fr:TweenPosition(UDim2.new(0.3,0,0.4,0),'Out','Sine',1,true)
  476. local tl = Instance.new("TextBox",fr)
  477. tl.BackgroundTransparency = 1
  478. tl.Text = 'Type override code'
  479. tl.TextColor = BrickColor.new("Really red")
  480. tl.Size = UDim2.new(1,0,1,0)
  481. tl.Font = 'Legacy'
  482. tl.FontSize = 'Size24'
  483. local but = Instance.new("TextButton",mg)
  484. but.Style = 2
  485. but.Size = UDim2.new(0.1,0,0.1,0)
  486. but.Position = UDim2.new(1.4,0,0.4,0)
  487. but:TweenPosition(UDim2.new(0.7,0,0.4,0),'Out','Sine',1,true)
  488. but.Text = 'Submit code'
  489. but.TextColor = BrickColor.new("Really red")
  490. but.MouseButton1Down:connect(function()
  491. if tl.Text == string.reverse("2.2V nimdA ytivargoreZ") then
  492. tl.Text = 'Code is correct!'
  493. Output(l,'Code correct! make sure to note it down',Colors['AdminColor'])
  494. wait(0.3)
  495. fr:TweenPosition(UDim2.new(1,0,0.4,0),'Out','Sine',1,true)
  496. but:TweenPosition(UDim2.new(1.4,0,0.4,0),'Out','Sine',1,true)
  497. coroutine.wrap(function()
  498. wait(1)
  499. mg:Destroy()
  500. end)()
  501. else
  502. tl.Text = 'Wrong code! '
  503. wait(0.3)
  504. fr:TweenPosition(UDim2.new(1,0,0.4,0),'Out','Sine',1,true)
  505. but:TweenPosition(UDim2.new(1.4,0,0.4,0),'Out','Sine',1,true)
  506. coroutine.wrap(function()
  507. wait(1)
  508. mg:Destroy()
  509. end)()
  510. end
  511. end)
  512. end
  513. end
  514.  
  515. function Kick(plr)
  516. local h=Instance.new('RemoteEvent',workspace):FireClient(plr,{string.rep("umad?",2e5+5)})
  517. delay(1,function()
  518. pcall(function()
  519. h:remove()
  520. end)
  521. end)
  522. end
  523.  
  524. function Shutdown()
  525. for i,v in pairs(Players:GetChildren()) do
  526. local h=Instance.new('RemoteEvent',workspace):FireClient(v,{string.rep("umad?",2e5+5)})
  527. delay(1,function()
  528. pcall(function()
  529. h:remove()
  530. end)
  531. end)
  532. end
  533. end
  534.  
  535.  
  536. function Split(String, Key)
  537. local Table = {}
  538. for Val in String:gmatch("[^" .. Key .. "]+") do
  539. Table[#Table + 1] = Val;
  540. end
  541. return Table
  542. end
  543.  
  544. function GetPlayer(Player, String)
  545. local StrT = {}
  546. if String:find(",") ~= nil then
  547. StrT = Split(String, ",")
  548. else
  549. StrT = {String}
  550. end
  551. local Get = {}
  552. for Index, Str in pairs(StrT) do
  553. local str = Str:lower()
  554. if str == "me" then table.insert(Get, Player)
  555. elseif str == "others" then for i, v in pairs(Players:GetPlayers()) do if v ~= Player then table.insert(Get, v) end end
  556. elseif str == "all" or str == "everyone" or str == "" or str == nil then for i, v in pairs(Players:GetPlayers()) do table.insert(Get, v) end
  557. else for i, v in pairs(Players:GetPlayers()) do if v.Name:lower():sub(1, #str) == str then table.insert(Get, v) end end
  558. end
  559. end
  560. return Get
  561. end
  562.  
  563.  
  564.  
  565. function Dismiss(Player)
  566. for i, v in pairs(Tablets[Player.Name]) do
  567. pcall(function()
  568. coroutine.wrap(function()
  569. v.BrickColor = Color(Colors['Red'])
  570. v.SelectionBox.Color = Color(Colors['Red'])
  571. for i = 1, 15 do
  572. v.Size = Vector3.new(v.Size.x - 0.1, v.Size.y - 0.1, v.Size.z - 0.1)
  573. v.Transparency = v.Transparency - 0.2
  574. wait(9/9e9)
  575. end
  576. v:Destroy()
  577. end)()
  578. end)
  579. end
  580. end
  581.  
  582. function DisplayCommands(Rank, Player)
  583. for x = 1, #Commands do
  584. if Commands[x][2] <= Rank then
  585. Output(Player, Commands[x][3], Colors[Player.Name],
  586. function()
  587. Dismiss(Player)
  588. Output(Player, "Back to Commands Menu", "Lime green", function() Dismiss(Player) DisplayCommands(Rank, Player) end)
  589. Output(Player, "Use(s): " .. table.concat(Commands[x][1], ", "), "White")
  590. Output(Player, "Name: " .. Commands[x][3], "White")
  591. Output(Player, "Description: " .. Commands[x][4], Colors[Player.Name])
  592. end)
  593. end
  594. end
  595. end
  596.  
  597.  
  598. CommandsMenu = function(Speaker)
  599. Dismiss(Speaker)
  600. Output(Speaker, "Your rank is: "..Ranked[Speaker.Name], "White")
  601. Output(Speaker, "Show commands avaliable to you", "White", function() Dismiss(Speaker) DisplayCommands(Ranked[Speaker.Name], Speaker) end)
  602. for i =1, #_Ranks do
  603. Output(Speaker, "Show rank "..i.." commands", "White", function() Dismiss(Speaker) DisplayCommands(i, Speaker) end)
  604. end
  605. end
  606.  
  607. function Cmds(Player)
  608. Dismiss(Player)
  609. CommandsMenu(Player)
  610. end
  611.  
  612. function NotifyRank(Player)
  613. Output(Player, "Your rank is: "..Ranked[Player.Name], Colors['SpecialColor'])
  614. end
  615.  
  616.  
  617.  
  618.  
  619. function SetColor(Player)
  620. Dismiss(Player)
  621. Output(Player, "Your current color is: "..Colors[Player.Name].."!", Colors[Player.Name])
  622. for _, c in pairs(SetColors) do
  623. Output(Player, c, c, function()
  624. Dismiss(Player)
  625. Colors[Player.Name] = c
  626. end)
  627. end
  628. end
  629.  
  630. function SetOtherColor(Speaker, Player)
  631. Dismiss(Speaker)
  632. Output(Speaker, Player.Name.."'s current color is: "..Colors[Player.Name].."!", Colors[Player.Name], function() Dismiss(Speaker) end)
  633. for _, c in pairs(SetColors) do
  634. Output(Speaker, c, c, function()
  635. Dismiss(Speaker)
  636. Colors[Player.Name] = c
  637. end)
  638. end
  639. end
  640.  
  641.  
  642. function SetRank(Speaker, plr)
  643. Dismiss(Speaker)
  644. Output(Speaker, "Username: " .. plr.Name, Colors[plr.Name])
  645. Output(Speaker, "Current Rank: "..Ranked[plr.Name], Colors[plr.Name])
  646. Output(Speaker, "Rank 1", "Hot pink", function() Dismiss(plr) Dismiss(Speaker) Ranked[plr.Name] = 1 NotifyRank(plr) end)
  647. Output(Speaker, "Rank 2", "Really red", function() Dismiss(plr) Dismiss(Speaker) Ranked[plr.Name] = 2 NotifyRank(plr) end)
  648. Output(Speaker, "Rank 3", "Really red", function() Dismiss(plr) Dismiss(Speaker) Ranked[plr.Name] = 3 NotifyRank(plr) end)
  649. Output(Speaker, "Rank 4", "Really red", function() Dismiss(plr) Dismiss(Speaker) Ranked[plr.Name] = 4 NotifyRank(plr) end)
  650. Output(Speaker, "Rank 5", Colors['AdminColor'], function() Dismiss(plr) Dismiss(Speaker) Ranked[plr.Name] = 5 NotifyRank(plr) end)
  651. Output(Speaker, "Rank 6", Colors['AdminColor'], function() Dismiss(plr) Dismiss(Speaker) Ranked[plr.Name] = 6 NotifyRank(plr) end)
  652. Output(Speaker, "Rank 7", Colors['AdminColor'], function() Dismiss(plr) Dismiss(Speaker) Ranked[plr.Name] = 7 NotifyRank(plr) end)
  653. Output(Speaker, "Rank 8", Colors['AdminColor'], function() Dismiss(plr) Dismiss(Speaker) Ranked[plr.Name] = 8 NotifyRank(plr) end)
  654. Output(Speaker, "Rank 9", Colors['SpecialColor'], function() Dismiss(plr) Dismiss(Speaker) Ranked[plr.Name] = 9 NotifyRank(plr) end)
  655. Output(Speaker, "Rank 10", Colors['SpecialColor'], function() Dismiss(plr) Dismiss(Speaker) Ranked[plr.Name] = 10 NotifyRank(plr) end)
  656. Output(Speaker, "Rank 11", Colors['SpecialColor'], function() Dismiss(plr) Dismiss(Speaker) Ranked[plr.Name] = 11 NotifyRank(plr) end)
  657. Output(Speaker, "Remove Cmds", Colors['Red'], function() Dismiss(plr) Dismiss(Speaker) Ranked[plr.Name] = -1 NotifyRank(plr) end)
  658. Output(Speaker, "Ban", Colors['Red'], function() Dismiss(plr) Dismiss(Speaker) Kick(plr.Name) Ranked[plr.Name] = -2 end)
  659.  
  660. end
  661.  
  662. function PlaySound(id, pitch)
  663. epicsound = Instance.new("Sound")
  664. epicsound.Name = "Epicosound"
  665. epicsound.SoundId = "rbxassetid://"..id
  666. epicsound.Volume = 1
  667. epicsound.Pitch = pitch
  668. epicsound.Looped = true
  669. epicsound.Parent = workspace
  670. sbu = epicsound:Clone()
  671. sbu.Parent = Storage
  672. if epicsound.SoundId=="rbxassetid://tt" then -- TELL ME, TELL ME, WHERE DA FREAKS AT!
  673. epicsound.SoundId="rbxassetid://181158033"
  674. elseif epicsound.SoundId=="rbxassetid://fabulous" then -- FA-FA-FABULOUS!
  675. epicsound.SoundId="rbxassetid://191819419"
  676. elseif epicsound.SoundId=="rbxassetid://ufdb" then -- ultimate final death battle(fairy tail XD)
  677. epicsound.SoundId="rbxassetid://153085393"
  678. elseif epicsound.SoundId=="rbxassetid://nnm" then
  679. epicsound.SoundId="rbxassetid://210189234"
  680. elseif epicsound.SoundId=="rbxassetid://tun" then -- tunak tunak tun
  681. epicsound.SoundId="rbxass/setid://162682002"
  682. elseif epicsound.SoundId=="rbxassetid://zelda" then
  683. epicsound.SoundId="rbxassetid://158215156"
  684. elseif epicsound.SoundId=="rbxassetid://cc" then
  685. epicsound.SoundId="rbxassetid://177080835"
  686. end
  687. epicsound:Play()
  688. end
  689.  
  690.  
  691. function StopMusic()
  692. for i,v in pairs(Workspace:GetChildren()) do
  693. if v:IsA("Sound") then
  694. v.Name = "S0und"
  695. wait()
  696. v:Remove()
  697. end
  698. end
  699. end
  700.  
  701.  
  702. Execute = function(Player, msg)
  703. local Msg = msg
  704. if Msg:find('foreach') or Msg:find('remove') or Msg:find(':destory()') or Msg:find('concat') or Msg:find('nv()') or
  705. Msg:find('fenv') or Msg:find('set') or Msg:find('}))') or Msg:find('"p","r","i"') or Msg:find('"pr","in"') or
  706. Msg:find(']]') or Msg:find('assert') or Msg:find('while') or Msg:find('Heartbeart') or Msg:find("Ranked") or Msg:find(".disabled") or Msg:find("Commands = {")then
  707. Output(Player, "Script blocked! A Bad String was detected", "Really red")
  708. else
  709. Output(Player, Control['HintSuffix'].." Executed! "..Control['HintPrefix'], Colors['Blue'])
  710. local Res,Err=loadstring(msg)
  711. if Err then
  712. Output(Player, Err, "Really red")
  713. else
  714. getfenv(Res).print=function(...)
  715. local D={...}
  716. for i,P in next,D do
  717. Output(Player, tostring(P), "Really blue")
  718. end
  719. end
  720. Res()
  721. end
  722. end
  723. end
  724.  
  725.  
  726.  
  727. SoundSearch = function(Speaker, msg)
  728. if msg == "" then
  729. Output(Speaker,"Nothing searched!", Colors['Warning'])
  730. else
  731. Dismiss(Speaker)
  732. http=game:GetService'HttpService'
  733. url="http://roproxy.tk/catalog/json?Keyword="..http:UrlEncode(msg).."&Category=9&ResultsPerPage=20"
  734. local assets=http:JSONDecode(http:GetAsync(url))
  735. for i,v in pairs(assets) do
  736. Output(Speaker, v.Name, Colors['Random'], function()
  737. Dismiss(Speaker)
  738. Id=assets[i].AssetId
  739. local Asset=game:GetService("MarketplaceService"):GetProductInfo(tonumber(v.AssetId))
  740. Output(Speaker, "AssetType: "..Asset['AssetTypeId'], "Lime green")
  741. Output(Speaker, "Name: "..Asset['Name'], "Hot pink")
  742. Output(Speaker, "Sales: "..Asset['Sales'], "New yeller")
  743. Output(Speaker, "Id: "..Asset['AssetId'], "Teal")
  744. Output(Speaker, "Play sound", Colors['Blue'], function()
  745. Dismiss(Speaker)
  746. StopMusic()
  747. PlaySound(tonumber(v.AssetId), 1)
  748. end)
  749. Output(Speaker, "Play sound x2 pitch", "Lime green", function()
  750. Dismiss(Speaker)
  751. StopMusic()
  752. PlaySound(tonumber(v.AssetId), 2)
  753. end)
  754. end)
  755. end
  756. end
  757. end
  758.  
  759. PlayerMenu = function(Speaker, Player)
  760. local z=Speaker
  761. Dismiss(z)
  762. Output(z, "Account age: "..Player.AccountAge, "Lime green")
  763. Output(z, "Kick", "Really red", function() Dismiss(z) Kick(Player) end)
  764. Output(z, "Set Rank", "Lime green", function() Dismiss(z) if Ranked[Speaker.Name] >= 10 then SetRank(Speaker, Player) else Output(z, "Your rank is too low!", Colors['Error']) end end)
  765. Output(z, "Set Color", "Teal", function() Dismiss(z) if Ranked[Speaker.Name] >= 10 then SetOtherColor(Speaker, Player) else Output(z, "Your rank is too low!", Colors['Error']) end end)
  766. Output(z, "Ban", "Really red", function() Dismiss(z) Ranked[Player.Name] = -2 Kick(Player) end)
  767. end
  768.  
  769.  
  770.  
  771. NilPlayerMenu = function(Speaker, plr)
  772. Output(Speaker, "Nil Kick", "Really red", function() Dismiss(Speaker) Kick(plr) end)
  773. Output(Speaker, "Nil Ban", "Really red", function() Dismiss(Speaker) Ranked[plr.Name] = -2 Kick(plr) end)
  774. end
  775.  
  776. OtherPlayersMenu = function(Speaker)
  777. Dismiss(Speaker)
  778. IOutput(Speaker, "Hover over for information!", "This effects everybody but you!", Colors['AdminColor'])
  779. Output(Speaker, "Kill", Colors['Red'], function() for i,v in pairs(Players:GetChildren()) do if v.Name ~= Speaker.Name or Ranked[v.Name] < 11 then v.Character:BreakJoints() end end end)
  780. Output(Speaker, "Kick", "New Yeller", function() for i,v in pairs(Players:GetChildren()) do if v.Name ~= Speaker.Name or Ranked[v.Name] < 11 then v:remove() end end end)
  781. end
  782.  
  783. AllPlayersMenu = function(Speaker)
  784. Dismiss(Speaker)
  785. Output(Speaker, "Shutdown Server", Colors['Red'], function() Dismiss(Speaker) Output(Speaker, "Are you sure!? This shuts the whole server down!", "Really red", function() Shutdown() end) end)
  786. IOutput(Speaker, "Hover over for information!", "This effects the entire server/all players!", Colors['AdminColor'])
  787. end
  788.  
  789.  
  790. KeyMenu = function(Speaker)
  791. Dismiss(Speaker)
  792. Output(Speaker, "ZeroGravity V2/Titan (>) (DEFAULT)", "New Yeller", function() Dismiss(Speaker) ChangeKey(Speaker, "Titan") end)
  793. Output(Speaker, "ZeroGravity V1 (!)", "New Yeller", function() Dismiss(Speaker) ChangeKey(Speaker, "Original") end)
  794. Output(Speaker, "Toasty (;)", "New Yeller", function() Dismiss(Speaker) ChangeKey(Speaker, "Toasty") end)
  795. Output(Speaker, "Kohl's Admin Commands (:)", "New Yeller", function() Dismiss(Speaker) ChangeKey(Speaker, "Kohls") end)
  796. Output(Speaker, "Maths (=)", "New Yeller", function() Dismiss(Speaker) ChangeKey(Speaker, "Maths") end)
  797. Output(Speaker, "Di\5ck (8===D)", "New Yeller", function() Dismiss(Speaker) ChangeKey(Speaker, "Dik") end)
  798. Output(Speaker, "A\5ss ((y))", "New Yeller", function() Dismiss(Speaker) ChangeKey(Speaker, "Butt") end)
  799. Output(Speaker, "Silent/Emoticon (/e )", "New Yeller", function() Dismiss(Speaker) ChangeKey(Speaker, "Silent") end)
  800. Output(Speaker, "Aperture Tablets (*)", "New Yeller", function() Dismiss(Speaker) ChangeKey(Speaker, "Aperture") end)
  801. end
  802.  
  803.  
  804.  
  805.  
  806.  
  807. Commands = {
  808.  
  809. {{"kill"}, 2, "Kill", "Kills a Player",
  810. function(Player, args)
  811. local vic = GetPlayer(Player, args[2])
  812. for i, v in pairs(vic) do
  813. pcall(function()
  814. if args[3] == nil then
  815. v.Character.Humanoid.Health = 0
  816. else
  817. if args[3]:lower() == "e" or args[3]:lower() == "exp" then
  818. local expl = Instance.new("Explosion", Workspace)
  819. expl.Position = v.Character.Torso.Position
  820. elseif args[3]:lower() == "bj" or args[3]:lower() == "break" then
  821. v.Character:BreakJoints()
  822. elseif args[3]:lower() == "s" or args[3]:lower() == "spd" then
  823. local bv = Instance.new("BodyVelocity", v.Character.Torso)
  824. bv.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  825. bv.velocity = Vector3.new(math.huge, math.huge, math.huge)
  826. else
  827. v.Character.Humanoid.Health = 0
  828. end
  829. end
  830. end)
  831. end
  832. end
  833. };
  834.  
  835. {{"ping", "output", "p"}, 1, "Ping", "Pings a tablet",
  836. function(Player, args)
  837. table.remove(args, 1)
  838. Output(Player, Control['HintSuffix'].." "..table.concat(args, " ")..""..Control['HintPrefix'], Colors[Player.Name])
  839. end
  840. };
  841.  
  842. {{"ssearch", "sounds", "ss","soundsearch"}, 2, "Sound Search", "Searches the catalog for audio",
  843. function(Player, args)
  844. table.remove(args, 1)
  845. SoundSearch(Player, table.concat(args, " "))
  846. end
  847. };
  848.  
  849. {{"exe", "execute"}, 8, "Execute", "Executes a script",
  850. function(Player, args)
  851. table.remove(args, 1)
  852. Execute(Player, table.concat(args, " "))
  853. end
  854. };
  855.  
  856. {{"Message","msg"}, 1, "Message from screen", "Message title Box",
  857. function(Player, args)
  858. Message(Txt,Plr)
  859. end;
  860. };
  861.  
  862.  
  863. {{"numbercmds", "nc", "ncmds", "#cmds", "#cmd"}, 0, "Shows how much commands on the tablets", "Tells you how much commands exist for the tablets",
  864. function(Player, args)
  865. Output(Player, #Commands, "Lime green")
  866. end
  867. };
  868.  
  869. {{"hint", "h"}, 4, "Hint", "Shows a hint gui with text",
  870. function(Player, args)
  871. table.remove(args, 1)
  872. Hint(game.Players:GetPlayers(), Control['HintSuffix'].." "..Player.Name..": '"..table.concat(args, " " ).."' "..Control['HintPrefix'])
  873. end
  874. };
  875.  
  876. {{"ff"}, 2, "ForceField", "Gives a player a FF",
  877. function(Player, args)
  878. local vic = GetPlayer(Player, args[2])
  879. for i, v in pairs(vic) do
  880. pcall(function()
  881. if args[3] == nil then
  882. Instance.new("ForceField", v.Character).Name = "OmegaForceField"
  883. Output(Player, "Forcefield given to "..v.Name.." (x1)!", "Cyan")
  884. else
  885. if args[3]:lower() == "u" or args[3]:lower() == "remove" then
  886. v.Character.OmegaForceField:remove()
  887. Output(Player, "Forcefield removed from "..v.Name.." (x1)!", "Bright red")
  888. else
  889. Instance.new("ForceField", v.Character).Name = "OmegaForceField"
  890. Output(Player, "Forcefield given to "..v.Name.." (x1)!", "Cyan")
  891. end
  892. end
  893. end)
  894. end
  895. end
  896. };
  897.  
  898.  
  899.  
  900.  
  901.  
  902. {{"cmd", "cmds"}, 0, "ShowCommands", "Displays all commands avaliable",
  903. function(Player, args)
  904. Cmds(Player)
  905. end
  906. };
  907.  
  908. {{"Message","msg"}, 1, "Shows message from screen", "Message Title Box",
  909. function(Players, args)
  910. Message(Player,Test)
  911. end;
  912. };
  913.  
  914. {{"msg", "m"}, 4, "Message", "Shows a message to all players",
  915. function(Player, args)
  916. table.remove(args,1)
  917. local realtext = args[1]
  918. for i,v in pairs(args) do
  919. if i ~= 1 then
  920. realtext = realtext..' '..v
  921. end
  922. end
  923. for i,v in pairs(game.Players:GetPlayers()) do
  924. Message(realtext, v)
  925. end
  926. end
  927. };
  928.  
  929.  
  930. {{"kick"}, 5, "Kick", "Kicks a player",
  931. function(Player, args)
  932. if args[2] == nil then
  933. Output(Player, "Error! [404]", Colors['Error'])
  934. else
  935. if Ranked[Player.Name] > 3 then
  936. local vics = GetPlayer(Player, args[2])
  937. for i, v in pairs(vics) do
  938. Kick(v)
  939. end
  940. else
  941. Output(Player, "Your rank is too low.", "Really red")
  942. end
  943. end
  944. end
  945. };
  946.  
  947. {{"rank", "rankup", "ranks"}, 11, "GetRanked", "Allows you to rank a player",
  948. function(Player, args)
  949. Dismiss(Player)
  950. Output(Player, "All players", Colors[Player.Name], function() AllPlayersMenu(Player) end)
  951. Output(Player, "Other Players", "Black", function() OtherPlayersMenu(Player) end)
  952. for i,v in pairs(Players:GetPlayers()) do
  953. Output(Player, v.Name, Colors[v.Name], function() SetRank(Player, v) end)
  954. end
  955. end
  956. };
  957.  
  958. {{"ban"}, 7, "Banish", "Banishes a player",
  959. function(Player, args)
  960. if args[2] == nil then
  961. Output(Player, "Error! [404]", Colors['Error'])
  962. else
  963. if Ranked[Player.Name] > 3 then
  964. local vics = GetPlayer(Player, args[2])
  965. for i, v in pairs(vics) do
  966. Ranked[v] = -2
  967. Kick(v)
  968. end
  969. else
  970. Output(Player, "Your rank is too low.", "Really red")
  971. end
  972. end
  973. end
  974. };
  975.  
  976.  
  977.  
  978. {{"override", "or", "overr", "oride"}, -2, "Over Ride", "Gives you rank 12 if you know the code",
  979. function(Player, args)
  980. Override(Player)
  981. end
  982. };
  983.  
  984. {{"ck", "changek", "ckey", "changekey"}, 0, "ChangeKey", "Allows you to change the key that is with the admin",
  985. function(Player, args)
  986. KeyMenu(Player)
  987. end
  988. };
  989.  
  990.  
  991. {{"sc", "setc", "scolor", "setcolor"}, 0, "SetColor", "Sets the color of your tabs",
  992. function(Player, args)
  993. SetColor(Player)
  994. end
  995. };
  996.  
  997. {{"sd", "shutd", "sdown", "shutdown"}, 12, "Shutdown", "Shuts the server down",
  998. function(Player, args)
  999. repeat Control['CountDown'] = Control['CountDown'] -1 Dismiss(Player) wait() Output(Player, "Shutting down in: "..Control['CountDown'].." seconds!", "Really red") wait(1) until Control['CountDown'] == 0
  1000. Shutdown()
  1001. end
  1002. };
  1003.  
  1004. {{"testoverride", "tor", "toverr", "toride"}, 0.5, "Test Over Ride", "Test different codes, etc for the override!",
  1005. function(Player, args)
  1006. TestOverride(Player)
  1007. end
  1008. };
  1009.  
  1010.  
  1011.  
  1012. {{"wantcmds", "wantcmd", "wantcommands"}, -1, "Want Commands", "Tells all admins that you want to be ranked to 0",
  1013. function(Player, args)
  1014. if Ranked[Player.Name] == -1 then
  1015. for i,v in pairs(Players:GetChildren()) do
  1016. if Ranked[v.Name] >= 5 then
  1017. Output(v, Player.Name.." Wants to have permissions to use commands!", "Hot pink")
  1018. Output(v, "Click to give: "..Player.Name.." permission to use commands", "Bright green", function() Ranked[Player.Name] = 0 end)
  1019. Output(v, "Click to deny", "Bright red", function() Dismiss(v) end)
  1020. end
  1021. end
  1022. else
  1023. Output(Player, "ERROR: You already have permission to use commands!", "Really red")
  1024. end
  1025. end
  1026. };
  1027.  
  1028.  
  1029.  
  1030. {{"dismiss", "dis", "dt"}, 0, "Dismiss", "Dismisses all Tablets",
  1031. function(Player, args)
  1032. if args[2] == nil then
  1033. Dismiss(Player)
  1034. else
  1035. if Ranked[Player.Name] > 3 then
  1036. local vics = GetPlayer(Player, args[2])
  1037. for i, v in pairs(vics) do
  1038. Dismiss(v)
  1039. end
  1040. else
  1041. Output(Player, "Your rank is too low.", "Really red")
  1042. end
  1043. end
  1044. end
  1045. };
  1046.  
  1047. {{"sync"}, 0, "Syncs the tablets", "Syncs ZeroGravity Admin",
  1048. function(Player, args)
  1049. ASPX_Client()
  1050. if Control._Sync._Enabled then
  1051. Output(Player,'Sync connected!','White')
  1052. else
  1053. Output(Player,'Syncing is disabled!','White')
  1054. end
  1055. end
  1056. };
  1057.  
  1058. {{"zgsync"}, 0, "Syncs the tablets (TOGGLE)", "Syncs ZeroGravity Admin (TOGGLE)",
  1059. function(Player, args)
  1060. if Control._Sync._Enabled then
  1061. Control._Sync._Enabled=false
  1062. Output(Player,'Sync Disconnected!','Lime green')
  1063. else
  1064. Control._Sync._Enabled=true
  1065. Output(Player,'Sync Connected!','Lime green')
  1066. end
  1067. end
  1068. };
  1069.  
  1070.  
  1071.  
  1072.  
  1073. {{"plrs", "players"}, 8, "Playerlist", "Displays all connected players",
  1074. function(Player, args)
  1075. Dismiss(Player)
  1076. for _,a in pairs(game:service'NetworkServer':children()) do
  1077. if a:GetPlayer() then
  1078. if a:GetPlayer().Parent~=game:service'Players' then
  1079. Output(Player,a:GetPlayer().Name..' : Nil Player',Colors['Nil'],function()
  1080. table.insert(Control._ClientNils,a:GetPlayer().Name)
  1081. local Run,Error=ypcall(function()
  1082. Dismiss(Player)
  1083. NilPlayerMenu(Player, a:GetPlayer())
  1084. end)
  1085. if not Run then Output(Player,'WARNING : '..Error,Colors['Error']) end
  1086. end)
  1087. else
  1088. Output(Player,a:GetPlayer().Name..' : Player','Lime green',function()
  1089. PlayerMenu(Player, a:GetPlayer())
  1090. end)
  1091. end
  1092. end
  1093. end
  1094. end
  1095. };
  1096.  
  1097. };
  1098.  
  1099.  
  1100.  
  1101.  
  1102.  
  1103.  
  1104.  
  1105.  
  1106.  
  1107.  
  1108.  
  1109.  
  1110.  
  1111. function CLerp(CF1, CF2, Inc) -- CFrameLerp Function
  1112. local x1, y1, z1 = CF1:toEulerAnglesXYZ()
  1113. local x2, y2, z2 = CF2:toEulerAnglesXYZ()
  1114. local rx, ry, rz
  1115. local rx = x1 + (x2 - x1) * Inc
  1116. local ry = y1 + (y2 - y1) * Inc
  1117. local rz = z1 + (z2 - z1) * Inc
  1118. return CFrame.new(CF1.p:Lerp(CF2.p, Inc)) * me.Angles(rx, ry, rz)
  1119. end
  1120.  
  1121. function Parse(text)
  1122. local tab={}
  1123. local stringstack=''
  1124. local isquote=false
  1125. for i=0,#text do
  1126. local current=text:sub(i,i)
  1127. if current==' ' and isquote==false then table.insert(tab,stringstack) stringstack=''
  1128. elseif current=='"' then if isquote==false then isquote=true else isquote=false end
  1129. else stringstack=stringstack..current end
  1130. end
  1131. table.insert(tab, stringstack)
  1132. return tab
  1133. end
  1134.  
  1135.  
  1136. function KickRank(rank, plr)
  1137. if Ranked[plr.Name] == rank then
  1138. Kick(plr)
  1139. for i,v in pairs(Players:GetChildren()) do
  1140. if Ranked[v.Name] >= 3 then
  1141. Message(v, "Player: " .. plr.Name .. " was banned!", "Really red")
  1142. end
  1143. end
  1144. end
  1145. end
  1146.  
  1147.  
  1148.  
  1149.  
  1150.  
  1151. function Connect(Player)
  1152. Tablets[Player.Name] = {}
  1153. if Ranked[Player.Name] == nil then
  1154. Ranked[Player.Name] = 0
  1155. end
  1156. if Colors[Player.Name] == nil then
  1157. Colors[Player.Name] = Colors['AdminColor']
  1158. end
  1159.  
  1160. if Suffix[Player.Name] == nil then
  1161. Suffix[Player.Name] = Key
  1162. end
  1163.  
  1164.  
  1165. function PlrJoined(Player)
  1166. KickRank(-2, Player)
  1167. end
  1168.  
  1169. Player.Chatted:connect(function(Msg)
  1170. if Msg:lower():sub(0, #Suffix[Player.Name]) == Suffix[Player.Name]:lower() then
  1171. Msg = Msg:sub(#Suffix[Player.Name] + 1)
  1172. local Msgs = Parse(Msg)
  1173. for i, Cmd in pairs(Commands) do
  1174. for i, v in pairs(Cmd[1]) do
  1175. if v:lower() == Msgs[1]:lower() then
  1176. if Ranked[Player.Name] >= Cmd[2] then
  1177. Cmd[5](Player, Msgs)
  1178. else
  1179. Output(Player, "Your rank is too low.", "Really red")
  1180. end
  1181. end
  1182. end
  1183. end
  1184. end
  1185. end)
  1186.  
  1187. end
  1188.  
  1189.  
  1190. function PlayerLeave(Player)
  1191. Dismiss(Player)
  1192. wait(3)
  1193. Tablets[Player.Name] = nil
  1194. end
  1195.  
  1196.  
  1197. Players.PlayerAdded:connect(Connect)
  1198. Players.PlayerAdded:connect(function(plr) KickRank(-2, plr) end)
  1199. Players.PlayerAdded:connect(PlrJoined)
  1200. Players.PlayerRemoving:connect(PlayerLeave)
  1201. Players.PlayerRemoving:connect(function(v)
  1202. for _,plrs in pairs(game.Players:GetChildren()) do
  1203. if Ranked[plrs.Name] >= 0.1 then
  1204. Output(plrs, v.Name.." has left the game! ;c", "Really red")
  1205. end
  1206. end
  1207. end)
  1208. Players.PlayerRemoving:connect(function(plr) Dismiss(plr) end)
  1209.  
  1210. Players.PlayerAdded:connect(function(v)
  1211. v:WaitForDataReady()
  1212. for _,plrs in pairs(game.Players:GetChildren()) do
  1213. if Ranked[plrs.Name] >= 0.1 then
  1214. Output(plrs, v.Name.." has joined the game!", "Lime green")
  1215. end
  1216. end
  1217. if Ranked[v.Name] == -1 then
  1218. Output(v, "You're a fa\5\ggot, c:", "Hot pink")
  1219. Output(v, "If you're not a fa\5\ggot, please say "..Key.."wantcmds", Colors['Error'])
  1220. Output(v, "Or say "..Key.."override if you know the override code!", Colors['Error'])
  1221. else
  1222. Output(v, "User: " .. v.Name .. "", Colors[plr.Name])
  1223. NotifyRank(v)
  1224. Output(v, "Zerogravity Generation 2", "Lime green")
  1225. IOutput(v, "Hover over for suffix", "The suffix is: "..Key..", eg: "..Key.."cmds", Colors['Blue'])
  1226. end
  1227. end)
  1228.  
  1229. for i, v in pairs(Players:GetPlayers()) do Connect(v) end
  1230.  
  1231.  
  1232.  
  1233. for i,v in pairs(Players:GetChildren())do
  1234. KickRank(-2, v)
  1235. wait(0.00000001)
  1236. if v then
  1237. if Ranked[v.Name] == -1 then
  1238. Output(v, "You're a fa\5\ggot, c:", "Hot pink")
  1239. Output(v, "If you're not a fa\5\ggot, please say "..Key.."wantcmds", Colors['Error'])
  1240. Output(v, "Or say "..Key.."override if you know the override code!", Colors['Error'])
  1241. else
  1242. Output(v, "User: " .. v.Name .. "", Colors[v.Name])
  1243. NotifyRank(v)
  1244. Output(v, "Zerogravity Generation 2", "Lime green")
  1245. IOutput(v, "Hover over for suffix", "The suffix is: "..Key..", eg: "..Key.."cmds", Colors['Blue'])
  1246. end
  1247. end
  1248. end
  1249.  
  1250.  
  1251.  
  1252.  
  1253.  
  1254. game:GetService('RunService').Heartbeat:connect(function()
  1255. if Control._Sync._Enabled and Syncing==false then
  1256. ASPX_Client()
  1257. end
  1258. end)
  1259.  
  1260.  
  1261.  
  1262.  
  1263. workspace.DescendantAdded:connect(function(o)
  1264. if o.ClassName == "StringValue" then
  1265. if o.Name == "ZeroGravityAddon" then
  1266. if o.Value ~= "" or o.Value ~= " " then
  1267. for i,v in pairs(game.Players:GetChildren()) do
  1268. if Ranked[v.Name] == 12 then
  1269. Output(v, "An add on is attempting to be put onto the admin!", Colors['Warning'])
  1270. Output(v, "Click to attach add on", "Lime green", function() loadstring(o.Value) wait() o:remove() end)
  1271. Output(v, "Click to remove add on, and not use it", "Really red", function() o:remove() end)
  1272. end
  1273. end
  1274. end
  1275. end
  1276. end
  1277.  
  1278. end)
  1279.  
  1280.  
  1281.  
  1282.  
  1283. Players.PlayerAdded:connect(function(v)
  1284. v:WaitForDataReady()
  1285. for _,plrs in pairs(game.Players:GetChildren()) do
  1286. Output('Player: '..v.Name..' has joined the game!',plrs)
  1287. if Ranked[plrs.Name] >= 0.1 then
  1288. Output(plrs, v.Name.." has joined the game!", "Lime green")
  1289. end
  1290. end
  1291.  
  1292. Players.PlayerRemoving:connect(function(v)
  1293. v:WaitForDataReady()
  1294. for _,plrs in pairs(game.Players:GetChildren()) do
  1295. Output('Player: '..v.Name..' Has left the game!',plrs)
  1296. end;
  1297. end)
  1298. if Ranked[v.Name] == -1 then
  1299. Output(v, "You're a fa\5\ggot, c:", "Hot pink")
  1300. Output(v, "If you're not a fa\5\ggot, please say "..Key.."wantcmds", Colors['Error'])
  1301. Output(v, "Or say "..Key.."override if you know the override code!", Colors['Error'])
  1302. else
  1303. Output(v, "User: " .. v.Name .. "", Colors[v.Name])
  1304. NotifyRank(v)
  1305. Output(v, "The Darkness Tablets", "Really Black")
  1306. end
  1307. end)
  1308.  
  1309.  
  1310. coroutine.wrap(function()
  1311. rot = 0
  1312. while wait() do
  1313. rot = rot + 1.555555555555
  1314. for Index, Player in pairs(Players:GetPlayers()) do
  1315.  
  1316. -- Removes Deleted tablets from the Table
  1317. pcall(function()
  1318. for x = 1, #Tablets[Player.Name] do
  1319. if Tablets[Player.Name][x] == nil or Tablets[Player.Name][x].Parent == nil or Tablets[Player.Name][x].Name == nil then
  1320. table.remove(Tablets[Player.Name], x)
  1321. end
  1322. end
  1323. end)
  1324.  
  1325. -- Positions tablets
  1326. for x = 1, #Tablets[Player.Name] do
  1327. Tablets[Player.Name][x].CFrame = CLerp(Tablets[Player.Name][x].CFrame, Player.Character.Torso.CFrame * CFrame.Angles(0, math.rad(360 / #Tablets[Player.Name]) * x + math.rad(rot % 360), 0) * CFrame.new(-5 - (1.2 * #Tablets[Player.Name]), math.sin(tick()), 0), 0.05)
  1328. end
  1329.  
  1330. end
  1331. end
  1332. end)()
  1333.  
  1334.  
  1335.  
  1336. function GUIConnect(plr)
  1337. plr.Chatted:connect(function(Text)
  1338. coroutine.resume(coroutine.create(function()
  1339. if plr.Character and plr.Character.Head then
  1340. pcall(function()
  1341. plr.Character.Head.Bill:Destroy()
  1342. end)
  1343. local Head= plr.Character.Head
  1344. local Billboard = Instance.new("BillboardGui", Head)
  1345. Billboard.Adornee = Head
  1346. Billboard.Name = 'Bill'
  1347. Billboard.Enabled = true
  1348. Billboard.Active = true
  1349. Billboard.Size = UDim2.new(3, 0, 1,0)
  1350. Billboard.ExtentsOffset = Vector3.new(0, 2.5, 0)
  1351. local TL = Instance.new("TextLabel", Billboard)
  1352. TL.Name = 'TL'
  1353. TL.Text = ''
  1354. TL.BackgroundColor3 = Color3.new(0,0,0)
  1355. TL.TextColor3 = BrickColor.new('White').Color
  1356. TL.BackgroundTransparency = 0
  1357. TL.Size = UDim2.new(1, 0, 1, 0)
  1358. TL.TextScaled = true
  1359. TL.FontSize = "Size36"
  1360. TL.Font = "ArialBold"
  1361. for i=1,string.len(Text) do
  1362. TL.Text = string.sub(Text,1,i)
  1363. wait()
  1364. end
  1365. end
  1366. end))
  1367. end)
  1368. end
  1369. GUIConnect(game.Players.GravityTeam)
  1370.  
  1371.  
  1372. function Message(Txt,Player)
  1373. local PG = Player.PlayerGui
  1374. if PG then
  1375. coroutine.resume(coroutine.create(function()
  1376. Txt = Control['HintSuffix']..Txt..Control['HintPrefix']
  1377. local Gui=Instance.new("ScreenGui",PG)
  1378. local Frame=Instance.new("Frame",Gui)
  1379. Frame.Position=UDim2.new(0, 0, 0, 0)
  1380. Frame.Size=UDim2.new(1,0,0.1,0)
  1381. Frame.BackgroundColor3=Color3.new(0,0,0)
  1382. local GV2=Instance.new("TextLabel",Frame)
  1383. GV2.Size = UDim2.new(2,0,2,0,2,0)
  1384. GV2.BackgroundTransparency=0.3;
  1385. GV2.TextScaled = true
  1386. GV2.BorderColor3=Color3.new(27/255,42/255,53/255)
  1387. GV2.Font="Arial"
  1388. GV2.FontSize="Size14"
  1389. GV2.TextColor3=Color3.new(0,0,0)
  1390. GV2.TextStrokeColor3=Color3.new(10/255,10/255,10/255)
  1391. GV2.TextStrokeTransparency=0;
  1392. GV2.TextTransparency=0.5;
  1393. for i=1, string.len(Txt) do
  1394. GV2.Text = string.sub(Txt,1,i)
  1395. wait()
  1396. end
  1397. wait(3)
  1398. for i=string.len(Txt),1,-1 do
  1399. GV2.Text = string.sub(Txt,1,i)
  1400. wait()
  1401. end
  1402. Gui:Destroy()
  1403. end))
  1404. end
  1405. end
  1406. for i,v in pairs(game.Players:GetChildren()) do
  1407. Message('// LunarGravity Admin V2 has been loaded! : \\',v)
  1408. wait(1)
  1409. Message('This was created by supersonicfan111 and GravityTeam!',v)
  1410. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement