asdasdasdasdaaaa

Untitled

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