Advertisement
lolpeoples34

gui 2

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