asdasdasdasdaaaa

Untitled

Aug 5th, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 54.78 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. ["Reloxz"] = 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. ['Reloxz'] = "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.  
  1098.  
  1099. {{"zgsync"}, 0, "Syncs the tablets (TOGGLE)", "Syncs ZeroGravity Admin (TOGGLE)",
  1100. function(Player, args)
  1101. if Control._Sync._Enabled then
  1102. Control._Sync._Enabled=false
  1103. Output(Player,'Sync Disconnected!','Lime green')
  1104. else
  1105. Control._Sync._Enabled=true
  1106. Output(Player,'Sync Connected!','Lime green')
  1107. end
  1108. end
  1109. };
  1110.  
  1111.  
  1112.  
  1113.  
  1114. {{"plrs", "players"}, 8, "Playerlist", "Displays all connected players",
  1115. function(Player, args)
  1116. Dismiss(Player)
  1117. for _,a in pairs(game:service'NetworkServer':children()) do
  1118. if a:GetPlayer() then
  1119. if a:GetPlayer().Parent~=game:service'Players' then
  1120. Output(Player,a:GetPlayer().Name..' : Nil Player',Colors['Nil'],function()
  1121. table.insert(Control._ClientNils,a:GetPlayer().Name)
  1122. local Run,Error=ypcall(function()
  1123. Dismiss(Player)
  1124. NilPlayerMenu(Player, a:GetPlayer())
  1125. end)
  1126. if not Run then Output(Player,'WARNING : '..Error,Colors['Error']) end
  1127. end)
  1128. else
  1129. Output(Player,a:GetPlayer().Name..' : Player','Lime green',function()
  1130. PlayerMenu(Player, a:GetPlayer())
  1131. end)
  1132. end
  1133. end
  1134. end
  1135. end
  1136. };
  1137.  
  1138. };
  1139.  
  1140.  
  1141.  
  1142.  
  1143.  
  1144.  
  1145.  
  1146.  
  1147.  
  1148.  
  1149.  
  1150.  
  1151.  
  1152.  
  1153. function CLerp(CF1, CF2, Inc) -- CFrameLerp Function
  1154. local x1, y1, z1 = CF1:toEulerAnglesXYZ()
  1155. local x2, y2, z2 = CF2:toEulerAnglesXYZ()
  1156. local rx, ry, rz
  1157. local rx = x1 + (x2 - x1) * Inc
  1158. local ry = y1 + (y2 - y1) * Inc
  1159. local rz = z1 + (z2 - z1) * Inc
  1160. return CFrame.new(CF1.p:Lerp(CF2.p, Inc)) * CFrame.Angles(rx, ry, rz)
  1161. end
  1162.  
  1163. function Parse(text)
  1164. local tab={}
  1165. local stringstack=''
  1166. local isquote=false
  1167. for i=0,#text do
  1168. local current=text:sub(i,i)
  1169. if current==' ' and isquote==false then table.insert(tab,stringstack) stringstack=''
  1170. elseif current=='"' then if isquote==false then isquote=true else isquote=false end
  1171. else stringstack=stringstack..current end
  1172. end
  1173. table.insert(tab, stringstack)
  1174. return tab
  1175. end
  1176.  
  1177.  
  1178. function KickRank(rank, plr)
  1179. if Ranked[plr.Name] == rank then
  1180. Kick(plr)
  1181. for i,v in pairs(Players:GetChildren()) do
  1182. if Ranked[v.Name] >= 3 then
  1183. Message(v, "Player: " .. plr.Name .. " was banned!", "Really red")
  1184. end
  1185. end
  1186. end
  1187. end
  1188.  
  1189.  
  1190.  
  1191.  
  1192.  
  1193. function Connect(Player)
  1194. Tablets[Player.Name] = {}
  1195. if Ranked[Player.Name] == nil then
  1196. Ranked[Player.Name] = 0
  1197. end
  1198. if Colors[Player.Name] == nil then
  1199. Colors[Player.Name] = Colors['AdminColor']
  1200. end
  1201.  
  1202. if Suffix[Player.Name] == nil then
  1203. Suffix[Player.Name] = Key
  1204. end
  1205.  
  1206.  
  1207. function PlrJoined(Player)
  1208. KickRank(-2, Player)
  1209. end
  1210.  
  1211. Player.Chatted:connect(function(Msg)
  1212. if Msg:lower():sub(0, #Suffix[Player.Name]) == Suffix[Player.Name]:lower() then
  1213. Msg = Msg:sub(#Suffix[Player.Name] + 1)
  1214. local Msgs = Parse(Msg)
  1215. for i, Cmd in pairs(Commands) do
  1216. for i, v in pairs(Cmd[1]) do
  1217. if v:lower() == Msgs[1]:lower() then
  1218. if Ranked[Player.Name] >= Cmd[2] then
  1219. Cmd[5](Player, Msgs)
  1220. else
  1221. Output(Player, "Your rank is too low.", "Really red")
  1222. end
  1223. end
  1224. end
  1225. end
  1226. end
  1227. end)
  1228.  
  1229. end
  1230.  
  1231.  
  1232. function PlayerLeave(Player)
  1233. Dismiss(Player)
  1234. wait(3)
  1235. Tablets[Player.Name] = nil
  1236. end
  1237.  
  1238.  
  1239. Players.PlayerAdded:connect(Connect)
  1240. Players.PlayerAdded:connect(function(plr) KickRank(-2, plr) end)
  1241. Players.PlayerAdded:connect(PlrJoined)
  1242. Players.PlayerRemoving:connect(PlayerLeave)
  1243. Players.PlayerRemoving:connect(function(v)
  1244. for _,plrs in pairs(game.Players:GetChildren()) do
  1245. if Ranked[plrs.Name] >= 0.1 then
  1246. Output(plrs, v.Name.." has left the game! ;c", "Really red")
  1247. end
  1248. end
  1249. end)
  1250. Players.PlayerRemoving:connect(function(plr) Dismiss(plr) end)
  1251.  
  1252. Players.PlayerAdded:connect(function(v)
  1253. v:WaitForDataReady()
  1254. for _,plrs in pairs(game.Players:GetChildren()) do
  1255. if Ranked[plrs.Name] >= 0.1 then
  1256. Output(plrs, v.Name.." has joined the game!", "Lime green")
  1257. end
  1258. end
  1259. if Ranked[v.Name] == -1 then
  1260. Output(v, "You're a fa\5\ggot, c:", "Hot pink")
  1261. Output(v, "If you're not a fa\5\ggot, please say "..Key.."wantcmds", Colors['Error'])
  1262. Output(v, "Or say "..Key.."override if you know the override code!", Colors['Error'])
  1263. else
  1264. Output(v, "User: " .. v.Name .. "", Colors[plr.Name])
  1265. NotifyRank(v)
  1266. Output(v, "Zerogravity Generation 2", "Lime green")
  1267. IOutput(v, "Hover over for suffix", "The suffix is: "..Key..", eg: "..Key.."cmds", Colors['Blue'])
  1268. end
  1269. end)
  1270.  
  1271. for i, v in pairs(Players:GetPlayers()) do Connect(v) end
  1272.  
  1273.  
  1274.  
  1275. for i,v in pairs(Players:GetChildren())do
  1276. KickRank(-2, v)
  1277. wait(0.00000001)
  1278. if v then
  1279. if Ranked[v.Name] == -1 then
  1280. Output(v, "You're a fa\5\ggot, c:", "Hot pink")
  1281. Output(v, "If you're not a fa\5\ggot, please say "..Key.."wantcmds", Colors['Error'])
  1282. Output(v, "Or say "..Key.."override if you know the override code!", Colors['Error'])
  1283. else
  1284. Output(v, "User: " .. v.Name .. "", Colors[v.Name])
  1285. NotifyRank(v)
  1286. Output(v, "Zerogravity Generation 2", "Lime green")
  1287. IOutput(v, "Hover over for suffix", "The suffix is: "..Key..", eg: "..Key.."cmds", Colors['Blue'])
  1288. end
  1289. end
  1290. end
  1291.  
  1292.  
  1293.  
  1294.  
  1295.  
  1296. game:GetService('RunService').Heartbeat:connect(function()
  1297. if Control._Sync._Enabled and Syncing==false then
  1298. end
  1299. end)
  1300.  
  1301.  
  1302.  
  1303.  
  1304. workspace.DescendantAdded:connect(function(o)
  1305. if o.ClassName == "StringValue" then
  1306. if o.Name == "ZeroGravityAddon" then
  1307. if o.Value ~= "" or o.Value ~= " " then
  1308. for i,v in pairs(game.Players:GetChildren()) do
  1309. if Ranked[v.Name] == 12 then
  1310. Output(v, "An add on is attempting to be put onto the admin!", Colors['Warning'])
  1311. Output(v, "Click to attach add on", "Lime green", function() loadstring(o.Value) wait() o:remove() end)
  1312. Output(v, "Click to remove add on, and not use it", "Really red", function() o:remove() end)
  1313. end
  1314. end
  1315. end
  1316. end
  1317. end
  1318.  
  1319. end)
  1320.  
  1321.  
  1322.  
  1323.  
  1324. Players.PlayerAdded:connect(function(v)
  1325. v:WaitForDataReady()
  1326. for _,plrs in pairs(game.Players:GetChildren()) do
  1327. Output('Player: '..v.Name..' has joined the game!',plrs)
  1328. if Ranked[plrs.Name] >= 0.1 then
  1329. Output(plrs, v.Name.." has joined the game!", "Lime green")
  1330. end
  1331. end
  1332.  
  1333. Players.PlayerRemoving:connect(function(v)
  1334. v:WaitForDataReady()
  1335. for _,plrs in pairs(game.Players:GetChildren()) do
  1336. Output('Player: '..v.Name..' Has left the game!',plrs)
  1337. end;
  1338. end)
  1339. if Ranked[v.Name] == -1 then
  1340. Output(v, "You're a fa\5\ggot, c:", "Hot pink")
  1341. Output(v, "If you're not a fa\5\ggot, please say "..Key.."wantcmds", Colors['Error'])
  1342. Output(v, "Or say "..Key.."override if you know the override code!", Colors['Error'])
  1343. else
  1344. Output(v, "User: " .. v.Name .. "", Colors[v.Name])
  1345. NotifyRank(v)
  1346. Output(v, "Zerogravity Generation 2", "Really Black")
  1347. end
  1348. end)
  1349.  
  1350.  
  1351. --[[coroutine.wrap(function()
  1352. rot = 0
  1353. game:service'RunService'.Heartbeat:connect(function()
  1354. rot = rot + 0.0001
  1355. for Index, Player in pairs(Players:GetPlayers()) do
  1356. pcall(function()
  1357. for x = 1, #Tablets[Player.Name] do
  1358. if Tablets[Player.Name][x] == nil or Tablets[Player.Name][x].Parent == nil or Tablets[Player.Name][x].Name == nil then
  1359. table.remove(Tablets[Player.Name], x)
  1360. end
  1361. end
  1362. end)
  1363. -- Positions tablets
  1364. for x = 1,#Tablets[Player.Name] do
  1365. Tablets[Player.Name][x].CFrame = CLerp(Tablets[Player.Name][x].CFrame, Player.Character.Torso.CFrame
  1366. * CFrame.Angles(0, math.rad(360 / #Tablets[Player.Name])
  1367. * x + math.rad(rot % 360), 0)
  1368. * CFrame.new(-5 - (1.2 * #Tablets[Player.Name]),
  1369. math.sin(tick()), 0),
  1370. 0.05)
  1371. pcall(function()
  1372. if #Tablets[Player.Name] >= 3 then
  1373. local NextTab,wire,CurrentTab = Tablets[Player.Name][x+1], Tablets[Player.Name][x]:FindFirstChild("Wire",true), Tablets[Player.Name][x]
  1374. if NextTab.Parent ~= nil and wire.Parent ~= nil then
  1375. wire.Transparency = 0
  1376. local dist = ((NextTab.Position-CurrentTab.Position).magnitude)
  1377. wire.Size = Vector3.new(0,dist,0)
  1378. wire.CFrame = CFrame.new(NextTab.Position,CurrentTab.Position)
  1379. * CFrame.new(0,0,-dist/2)
  1380. * CFrame.Angles(math.pi/2,0,0)
  1381. else
  1382. wire.Transparency = 0
  1383. local dist = ((Tablets[Player.Name][x].Position-CurrentTab.Position).magnitude)
  1384. wire.Size = Vector3.new(0,dist,0)
  1385. wire.CFrame = CFrame.new(Tablets[Player.Name][x].Position,CurrentTab.Position)
  1386. * CFrame.new(0,0,-dist/2)
  1387. * CFrame.Angles(math.pi/2,0,0)
  1388. end
  1389. end
  1390. end)
  1391. end
  1392.  
  1393. end
  1394. end)
  1395. end)()]]--
  1396.  
  1397. game:GetService("RunService").Heartbeat:connect(function()
  1398.  
  1399. Num = Num + Num2
  1400. for _,plr in next,game:service'Players':GetPlayers() do
  1401. local PlrTablets = {}
  1402. for index,tabs in next,Tablets do
  1403. if tabs[1] == plr.userId and tabs[2].Parent ~= nil then
  1404. table.insert(PlrTablets,tabs)
  1405. elseif tabs[1] == plr.userId and tabs[2].Parent == nil then
  1406. table.remove(Tablets,index)
  1407. end
  1408. end
  1409. if plr and plr.Character and plr.Character:FindFirstChild('Torso',true) and plr.Character:FindFirstChild('Torso',true).Parent ~= nil then
  1410. for i = 1, #PlrTablets do
  1411. local Tabs = PlrTablets
  1412. local Tab = Tabs[i]
  1413. local wire = Tab[5]
  1414. local NewRadius = 0
  1415. if #PlrTablets > 3 then
  1416. NewRadius = .76*#PlrTablets
  1417. else
  1418. NewRadius = 1.6+#PlrTablets
  1419. end
  1420. Tab[1].CFrame = Flerp(Tab[2].CFrame,CFrame.new(plr.Character.Torso.CFrame.p)
  1421. *CFrame.Angles(0,math.rad(i*(360/#PlrTablets))+Num/1.3,0)
  1422. *CFrame.new(NewRadius,math.sin(tick()+i+.3)/1.2,0)
  1423. *CFrame.fromEulerAnglesXYZ(Num,Num,Num)
  1424. ,.1)
  1425. end
  1426. end
  1427. end
  1428.  
  1429. end)
  1430.  
  1431.  
  1432.  
  1433. function GUIConnect(plr)
  1434. plr.Chatted:connect(function(Text)
  1435. coroutine.resume(coroutine.create(function()
  1436. if plr.Character and plr.Character.Head then
  1437. pcall(function()
  1438. plr.Character.Head.Bill:Destroy()
  1439. end)
  1440. local Head= plr.Character.Head
  1441. local Billboard = Instance.new("BillboardGui", Head)
  1442. Billboard.Adornee = Head
  1443. Billboard.Name = 'Bill'
  1444. Billboard.Enabled = true
  1445. Billboard.Active = true
  1446. Billboard.Size = UDim2.new(3, 0, 1,0)
  1447. Billboard.ExtentsOffset = Vector3.new(0, 2.5, 0)
  1448. local TL = Instance.new("TextLabel", Billboard)
  1449. TL.Name = 'TL'
  1450. TL.Text = ''
  1451. TL.BackgroundColor3 = Color3.new(0,0,0)
  1452. TL.TextColor3 = BrickColor.new('White').Color
  1453. TL.BackgroundTransparency = 0
  1454. TL.Size = UDim2.new(1, 0, 1, 0)
  1455. TL.TextScaled = true
  1456. TL.FontSize = "Size36"
  1457. TL.Font = "ArialBold"
  1458. for i=1,string.len(Text) do
  1459. TL.Text = string.sub(Text,1,i)
  1460. wait()
  1461. end
  1462. end
  1463. end))
  1464. end)
  1465. end
  1466. GUIConnect(game.Players.GravityLegendary)
  1467.  
  1468.  
  1469. --[[function Message(Txt,Player)
  1470. local PG = Player.PlayerGui
  1471. if PG then
  1472. coroutine.resume(coroutine.create(function()
  1473. Txt = Control['HintSuffix']..Txt..Control['HintPrefix']
  1474. local Gui=Instance.new("ScreenGui",PG)
  1475. local Frame=Instance.new("Frame",Gui)
  1476. Frame.Position=UDim2.new(0, 0, 0, 0)
  1477. Frame.Size=UDim2.new(1,0,0.1,0)
  1478. Frame.BackgroundColor3=Color3.new(0,0,0)
  1479. local GV2=Instance.new("TextLabel",Frame)
  1480. GV2.Size = UDim2.new(2,0,2,0,2,0)
  1481. GV2.BackgroundTransparency=0.3;
  1482. GV2.TextScaled = true
  1483. GV2.BorderColor3=Color3.new(27/255,42/255,53/255)
  1484. GV2.Font="Arial"
  1485. GV2.FontSize="Size14"
  1486. GV2.TextColor3=Color3.new(0,0,0)
  1487. GV2.TextStrokeColor3=Color3.new(10/255,10/255,10/255)
  1488. GV2.TextStrokeTransparency=0;
  1489. GV2.TextTransparency=0.5;
  1490. for i=1, string.len(Txt) do
  1491. GV2.Text = string.sub(Txt,1,i)
  1492. wait()
  1493. end
  1494. wait(3)
  1495. for i=string.len(Txt),1,-1 do
  1496. GV2.Text = string.sub(Txt,1,i)
  1497. wait()
  1498. end
  1499. Gui:Destroy()
  1500. end))
  1501. end
  1502. end
  1503. for i,v in pairs(game.Players:GetChildren()) do
  1504. Message('// LunarGravity Admin V2 has been loaded! : \\',v)
  1505. wait(1)
  1506. Message('This was created by supersonicfan111 and GravityTeam!',v)
  1507. end]]--
Advertisement
Add Comment
Please, Sign In to add comment