Advertisement
Jaden11

Tablets[RobloxV2] --ZeroGravity [NOW LEAKED]

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