Advertisement
CFDatabase

Gravity Admin

Sep 9th, 2016
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 38.43 KB | None | 0 0
  1. -- So I dug this up from my old account. Might as well paste it. Its almost 3 years old.
  2. ----------------------------------------------------------------------------------------
  3. ----------------------------------------------------------------------------------------
  4. -- THANK YOU FOR USING MY ADMIN SCRIPT! ------------------------------------------------
  5. ----------------------------------------------------------------------------------------
  6. ----------------------------------------------------------------------------------------
  7. -- This is auto update so that everytime the HttpServer is updated this script will be updated.
  8. -- Have fun with Gravity Admin V3!
  9. -- [Gravity Admin V3] Made by jillmiles1.
  10. -- #Gravity Tech's Group : http://www.roblox.com/My/Groups.aspx?gid=1199497
  11. wait()
  12. local V3={
  13. ['Hidden']=true;
  14. ['GroupID']=1199497; -- Your groupId goes here.
  15. ['BannedGroupID']=0; -- The group you want to get rekt when joined.
  16. ['GamePassID']=129269596; -- The gamepass to give admin to a player IF owned
  17. ['NetworkID']=0; -- Leave at 0 PLEASE
  18. ['HttpEnabled']=false;
  19. ['GravityReady']=true;
  20. ['AutoAdmin']=false; -- Give EVERYONE admin (Rank over 0)
  21. ['KeyC']='1011-01010110101-1101'; --1011-10101101010-1101
  22. ['PlayersClients']={};
  23. ['Commands']={};
  24. ['DataSaveName']='Gravity [V3] \\:DATA://';
  25. ['MusicLogs']={}; -- data store kind of.
  26. ['HatLogs']={};
  27. ['GearLogs']={};
  28. ['Version']='3.5 BETA';
  29. ['AgeRes']={Enabled=false,AGE=140};
  30. ['GRanks']={};
  31. ['Votes']=0;
  32. ['Banned']={
  33. {NAME='HotPunch'};
  34. {NAME='BenPoder'};
  35. {NAME='rodven'}; -- Ben's alt
  36. };
  37. ['Blocked']={
  38. 'getfenv',
  39. 'setfenv',
  40. 'rawset',
  41. 'loadstring',
  42. 'script:Destroy()',
  43. 'script:Remove()',
  44. 'script.Parent=nil'
  45. };
  46. ['Loopkilled']={
  47. {NAME='Benpoder'};
  48. };
  49. ['ScriptCreatedBy']='jillmiles1';
  50. ['Prefix']=';';
  51. ['GColors']={
  52. {NAME='Medium stone grey'};
  53. {NAME='White'};
  54. {NAME='Grey'};
  55. {NAME='Light yellow'};
  56. {NAME='Brick yellow'};
  57. {NAME='Light green (Mint)'};
  58. {NAME='Light reddish violet'};
  59. {NAME='Pastel Blue'};
  60. {NAME='Light orange brown'};
  61. {NAME='Black'},
  62. {NAME='Dark grey'},
  63. {NAME='Dark green'},
  64. {NAME='Medium green'},
  65. {NAME='Lig. Yellowich orange'},
  66. {NAME='Bright green'},
  67. {NAME='Dark orange'},
  68. {NAME='Light bluish violet'},
  69. {NAME='Transparent'},
  70. {NAME='Tr. Red'},
  71. {NAME='Tr. Lg blue'},
  72. {NAME='Tr. Blue'},
  73. {NAME='Tr. Yellow'},
  74. {NAME='Light blue'},
  75. {NAME='Tr. Flu. Reddish orange'},
  76. {NAME='Tr. Green'},
  77. {NAME='Tr. Flu. Green'},
  78. {NAME='Phosph. White'},
  79. {NAME='Light red'},
  80. {NAME='Medium red'},
  81. {NAME='Medium blue'},
  82. {NAME='Light grey'},
  83. {NAME='Bright violet'},
  84. {NAME='Br. yellowish orange'},
  85. {NAME='Bright orange'},
  86. {NAME='Bright bluish green'},
  87. {NAME='Earth yellow'},
  88. {NAME='Bright bluish violet'},
  89. {NAME='Tr. Brown'},
  90. {NAME='Medium bluish violet'},
  91. };
  92. };
  93.  
  94. --[[
  95. GETPLAYERS MSG FUNCTION
  96. -----------------------
  97. Me
  98. All
  99. Others
  100. Friends
  101. Bestfriends
  102. Nonfriends
  103. Nonbestfriends
  104. Nbc
  105. Tbc
  106. Obc
  107. Anybc
  108. Random
  109. --]]
  110.  
  111. -- Gui Tweening/Position
  112. local TweenPos1=(0.1*3)
  113. local TweenPos2=('Linear')
  114. local TweenPos3=(0.5*6)
  115. local TweenSiz1=(0.3*5)
  116. local TweenSiz2=('Quad')
  117. ------------------------
  118. script.Name='GravityV3'
  119. script.Parent=game:GetService('ServerScriptService')
  120. Tablets={}
  121. Rot=0
  122. game:GetService('RunService').Heartbeat:connect(function()
  123. Rot=Rot+0.03/100
  124. for _, Player in pairs(game.Players:GetPlayers()) do
  125. local PlrTabs = {}
  126. for i,v in pairs(Tablets) do
  127. if v.Tab.Parent~=nil and v.Plr==Player.Name then
  128. table.insert(PlrTabs, v)
  129. end
  130. end
  131. for i,v in pairs(PlrTabs) do
  132. pcall(function()
  133. pos = Player.Character.Torso.CFrame
  134. end)
  135. local m=(i/#PlrTabs-(.5/#PlrTabs)+((#PlrTabs/10)))*math.pi*2
  136. local rad=(#PlrTabs*.6)+2 -- Part of the bounce rot given to me by Nexure :D
  137. local x=math.sin(m)*(rad)
  138. local y=math.sin(time()/15)
  139. local z=math.cos(m)*rad
  140. local arot = Vector3.new(x,y,z)+pos.p
  141. local brot = v.Tab.CFrame.p
  142. local crot = (arot*.1+brot*.9)
  143. local drot = math.rad((Rot*400)*math.pi)
  144. v.Tab.CFrame = CFrame.new(crot,pos.p)
  145. -------------------------------------
  146. end
  147. end
  148. end)
  149.  
  150. V3['NetworkID']=(game.PlaceId)
  151.  
  152. if game:FindService('HttpService') then
  153. V3['HttpEnabled']=true
  154. warn('HttpClient found!')
  155. else
  156. V3['HttpEnabled']=false
  157. warn('HttpClient NOT enabled! Please Enable It!')
  158. end
  159.  
  160. RemoveSounds=function()
  161. for _,v in pairs(game.Workspace:GetChildren()) do
  162. if v.ClassName=='Sound' then
  163. v:Pause()
  164. wait(1)
  165. v:remove()
  166. end
  167. end
  168. end
  169.  
  170. LoopKill=function(Player)
  171. coroutine.wrap(function()
  172. if Player.Name==V3['Loopkilled'].NAME then
  173. game.Players[Player.Name]:LoadCharacter()
  174. end
  175. end)
  176. end
  177.  
  178. Lag=function(Player)
  179. pcall(function()
  180. local Gui=Instance.new('ScreenGui',game.Players[Player.Name]:FindFirstChild('PlayerGui'))
  181. local Im=Instance.new('ImageLabel',Gui)
  182. Im.Image=''
  183. Im.Transparency=0
  184. Im.Position=UDim2.new(0,0,0,0)
  185. Im.Size=UDim2.new(1,0,1,0)
  186. game.Players[Player.Name]:Kick()
  187. end)
  188. end
  189.  
  190. PriServer=function()
  191. if V3['Pri']==true then
  192. for _,v in pairs(game.Players:GetPlayers()) do
  193. if not v:IsInGroup(string.reverse('7949911')) then
  194. Lag(v)
  195. end
  196. end
  197. else
  198. end
  199. end
  200.  
  201. NotePlayer=function(Plr,Msg)
  202. local Rot=0
  203. local Msg=tostring(Msg)
  204. local Gui=Instance.new('ScreenGui',game.Players[Plr.Name]['PlayerGui'])
  205. local Frame=Instance.new('Frame',Gui)
  206. Frame.BackgroundTransparency=0.5
  207. Frame.BorderSizePixel=3
  208. Frame.Position=UDim2.new(0.2,0,0.3,0)
  209. Frame.Size=UDim2.new(0,0,0,0)
  210. Frame.Visible=true
  211. Frame.Style='Custom'
  212. Frame.BackgroundColor3=Color3.new(277,277,277)
  213. local Sound=Instance.new('Sound',Frame)
  214. Sound.Pitch=1
  215. Sound.Volume=1
  216. Sound.SoundId='rbxassetid://139331231'
  217. Sound:Play()
  218. local Line=Instance.new('Frame',Frame)
  219. Line.BackgroundTransparency=0.5
  220. Line.Position=UDim2.new(0,0,0.1,0)
  221. Line.Size=UDim2.new(1,0,0.01,0)
  222. Line.Style='Custom'
  223. Line.BackgroundColor3=Color3.new(0,0,0)
  224. Line.BorderColor3=Color3.new(27,42,53)
  225. local LName=Instance.new('TextLabel',Frame)
  226. LName.BackgroundTransparency=1
  227. LName.Size=UDim2.new(0.3,0,0.1,0)
  228. LName.Font='SourceSans'
  229. LName.FontSize='Size14'
  230. LName.Name='LName'
  231. LName.Text='GRAVITY STUDIOS'
  232. LName.TextColor3=Color3.new(85,255,127)
  233. LName.TextScaled=true
  234. LName.TextStrokeColor3=Color3.new(0,0,0)
  235. LName.TextStrokeTransparency=0
  236. LName.TextTransparency=1
  237. local Text=Instance.new('TextLabel',Frame)
  238. Text.BackgroundTransparency=1
  239. Text.Position=UDim2.new(0,0,0.1,0)
  240. Text.Size=UDim2.new(1,0,0.9,0)
  241. Text.Font='SourceSans'
  242. Text.FontSize='Size36'
  243. Text.Name='Text'
  244. Text.TextColor3=Color3.new(0,0,255)
  245. Text.TextStrokeColor3=Color3.new(0,0,0)
  246. Text.TextStrokeTransparency=0
  247. Text.TextTransparency=1
  248. Text.TextWrapped=true
  249. Text.TextScaled=false
  250. Text.Text=(Msg)
  251. Frame:TweenSize(UDim2.new(0.6,0,0.5,0),'Out','Quad',7)
  252. while wait() do
  253. Rot=Rot+1.5
  254. if Frame.Rotation==360 then
  255. Rot=0
  256. for i=1,0,-0.01 do
  257. wait(0.00001)
  258. Text.TextTransparency=i
  259. Text.TextStrokeTransparency=i
  260. LName.TextTransparency=i
  261. LName.TextStrokeTransparency=i
  262. end
  263. break
  264. else
  265. Frame.Rotation=Rot
  266. end
  267. end
  268. ------
  269. wait(3)
  270. Frame:TweenSize(UDim2.new(0,0,0,0),'Out','Quad',7)
  271. for i=0,1,0.01 do
  272. wait(0.00001)
  273. Text.TextTransparency=i
  274. Text.TextStrokeTransparency=i
  275. LName.TextTransparency=i
  276. LName.TextStrokeTransparency=i
  277. end
  278. while wait() do
  279. Rot=Rot-1.5
  280. if Frame.Rotation==-180 then
  281. Rot=0
  282. Gui:remove()
  283. break
  284. else
  285. Frame.Rotation=Rot
  286. end
  287. end
  288. end
  289.  
  290. GetRanking=function(Plr)
  291. local Rk=0
  292. for _, data in pairs(V3.GRanks) do
  293. if Plr.Name:lower()==data.NAME:lower() then
  294. Rk=data.RANK
  295. end
  296. end
  297. return Rk
  298. end
  299.  
  300. CheckBanned=function(Plr)
  301. for _,v in pairs(game.Players:GetPlayers()) do
  302. if v:IsInGroup(V3['BannedGroupID']) then Lag(v) else end
  303. for _,data in pairs(V3['Banned']) do
  304. if data.NAME:lower()==Plr.Name:lower() then Lag(Plr)
  305. TH(Plr.Name..' Is Banned To You Wish To Un-Ban This User?',function()
  306. pcall(function()
  307. table.remove(V3['Banned'],{NAME=Plr.Name})
  308. TH(Plr.Name..' Removed From BanList',function() end)
  309. end)
  310. end)
  311. else
  312. end
  313. end
  314. end
  315. end
  316.  
  317. GetChat=function(Plr)
  318. local Rk=0
  319. for _, data in pairs(V3.GRanks) do
  320. if Plr.Name:lower()==data.NAME:lower() then
  321. Rk=data.CHAT
  322. end
  323. end
  324. return Rk
  325. end
  326.  
  327. local GetColor=function(Plr)
  328. local Rk='Really red';
  329. for _, data in pairs(V3.GRanks) do
  330. if Plr.Name:lower()==data.NAME:lower() then
  331. Rk=data.COLOR
  332. end
  333. end
  334. return Rk
  335. end
  336.  
  337. Dismiss=function(plr)
  338. for _,v in pairs(Tablets) do
  339. if v.Plr:lower()==plr.Name:lower() then
  340. coroutine.wrap(function()
  341. for i=0,1,0.1 do
  342. pcall(function()
  343. wait()
  344. v.Tab.Transparency=i
  345. v.Box.Transparency=i
  346. end)
  347. end
  348. repeat wait() until v.Tab.Transparency==1
  349. v.Tab:Destroy()
  350. end)()
  351. end
  352. end
  353. end
  354.  
  355. function TH(Txt,Func)
  356. for _,v in pairs(game.Players:GetPlayers()) do
  357. if GetRanking(v)>5 then
  358. Tablet(v,Txt,function()
  359. Func=Func
  360. Func()
  361. end)
  362. end
  363. end
  364. end
  365.  
  366. Tablet=function(Plr,Txt,Func)
  367. if V3['GravityReady']==true then
  368. local Tab=Instance.new('Part',workspace)
  369. pcall(function()
  370. Tab.CFrame=Plr.Character.Head.CFrame*CFrame.new(0,3,0)
  371. end)
  372. Tab.BrickColor=BrickColor.new(GetColor(Plr))
  373. Tab.Name=(Plr.userId)
  374. Tab.Material='Wood'
  375. Tab.Transparency=0.5
  376. Tab.Anchored=true
  377. Tab.CanCollide=false
  378. Tab.Locked=true
  379. Tab.FormFactor='Custom'
  380. for _,data in pairs(V3['GRanks']) do
  381. if Plr.Name:lower()==data.NAME:lower() then
  382. if data.TAB=='Default' then
  383. Tab.Size=Vector3.new(3,4,0.2)
  384. elseif data.TAB=='Cube' then
  385. Tab.Size=Vector3.new(2,2,2)
  386. else
  387. Tab.Size=Vector3.new(2,2,2)
  388. end
  389. end
  390. end
  391. local Click=Instance.new('ClickDetector',Tab)
  392. Click.MaxActivationDistance=math.huge
  393. local Box=Instance.new('SelectionBox',Tab)
  394. Box.Color=Tab.BrickColor
  395. Box.Transparency=0.5
  396. Box.Adornee=Tab
  397. local BG=Instance.new('BillboardGui',Tab)
  398. BG.ExtentsOffset=Vector3.new(0,2,0)
  399. BG.Size=UDim2.new(8,0,5,0)
  400. local Text=Instance.new('TextLabel',BG)
  401. Text.BackgroundTransparency=1
  402. Text.BorderSizePixel=0
  403. Text.Size=UDim2.new(1,0,1,0)
  404. Text.Font='Legacy'
  405. Text.FontSize='Size24'
  406. Text.Text=(Txt)
  407. Text.TextColor3=Color3.new(255,255,255)
  408. Text.TextWrapped=true
  409. table.insert(Tablets,{Plr=Plr.Name,Tab=Tab,Box=Box,Txt=Text})
  410. Click.MouseClick:connect(function(Pl)
  411. if Pl==Plr then
  412. Dismiss(Plr)
  413. Func=Func
  414. Func()
  415. else
  416. end
  417. end)
  418. Click.MouseHoverEnter:connect(function(Pl)
  419. if Pl==Plr then
  420. Tab.Transparency=0.2
  421. Box.Transparency=0.2
  422. else
  423. end
  424. end)
  425. Click.MouseHoverLeave:connect(function(Pl)
  426. if Pl==Plr then
  427. Tab.Transparency=0.5
  428. Box.Transparency=0.5
  429. else
  430. end
  431. end)
  432. end
  433. end
  434.  
  435. local NewColor=function(Plr)
  436. local Cl='New Yeller'
  437. Tablet(Plr,'Waiting for High Rank Permission...',function() end)
  438. TH(Plr.Name..' Is Attemping To Change There Color, Allow?',function()
  439. for _,data in pairs(V3['GColors']) do
  440. Tablet(Plr,data.NAME,function()
  441. for _,v in pairs(V3['GRanks']) do
  442. if v.NAME:lower()==Plr.Name:lower() then
  443. Cl=data.NAME
  444. wait()
  445. v.COLOR=Cl
  446. wait()
  447. Tablet(Plr,'Color Set!',function() end)
  448. end
  449. end
  450. end)
  451. end
  452. end)
  453. end
  454.  
  455. game.Players.PlayerAdded:connect(function(a)
  456. if V3['AgeRes'].Enabled==true then
  457. if a.AccountAge>V3['AgeRes'].AGE then
  458. game.Players[a.Name]:ClearAllChildren()
  459. Tablet(a,'Your Gui Has Been Removed Due To Low Age ['..V3['AgeRes'].AGE..']',function() end)
  460. end
  461. end
  462. end)
  463.  
  464. if not V3['ScriptCreatedBy']=='jillmiles1' then while wait(0.1) do V3['GravityReady']=false end end
  465.  
  466. PlaceRanks=function(Plr)
  467. pcall(function() -- Just in case for somereason a Player joins and leaves before the script and update ;D
  468. if Plr:GetRankInGroup(V3['GroupID'])==1 then
  469. table.insert(V3.GRanks,{NAME=Plr.Name,RANK=Plr:GetRankInGroup(V3['GroupID']),COLOR='White',CHAT=true,TAB='Cube';})
  470. elseif Plr:GetRankInGroup(V3['GroupID'])==2 then
  471. table.insert(V3.GRanks,{NAME=Plr.Name,RANK=Plr:GetRankInGroup(V3['GroupID']),COLOR='Royal purple',CHAT=true,TAB='Cube';})
  472. elseif Plr:GetRankInGroup(V3['GroupID'])==3 then
  473. table.insert(V3.GRanks,{NAME=Plr.Name,RANK=Plr:GetRankInGroup(V3['GroupID']),COLOR='Camo',CHAT=true,TAB='Cube';})
  474. elseif Plr:GetRankInGroup(V3['GroupID'])==4 then
  475. table.insert(V3.GRanks,{NAME=Plr.Name,RANK=Plr:GetRankInGroup(V3['GroupID']),COLOR='Reddish brown',CHAT=true,TAB='Default';})
  476. elseif Plr:GetRankInGroup(V3['GroupID'])==5 then
  477. table.insert(V3.GRanks,{NAME=Plr.Name,RANK=Plr:GetRankInGroup(V3['GroupID']),COLOR='Deep orange',CHAT=true,TAB='Default';})
  478. elseif Plr:GetRankInGroup(V3['GroupID'])==6 then
  479. table.insert(V3.GRanks,{NAME=Plr.Name,RANK=Plr:GetRankInGroup(V3['GroupID']),COLOR='Really black',CHAT=true,TAB='Default';})
  480. elseif Plr:GetRankInGroup(V3['GroupID'])==7 then
  481. table.insert(V3.GRanks,{NAME=Plr.Name,RANK=Plr:GetRankInGroup(V3['GroupID']),COLOR='Bright bluish green',CHAT=true,TAB='Default';})
  482. elseif Plr:GetRankInGroup(V3['GroupID'])==255 then
  483. table.insert(V3.GRanks,{NAME=Plr.Name,RANK=Plr:GetRankInGroup(V3['GroupID']),COLOR='Hot pink',CHAT=true,TAB='Cube';})
  484. elseif game:GetService("GamePassService"):PlayerHasPass(Plr,V3['GamePassID']) then
  485. table.insert(V3.GRanks,{NAME=Plr.Name,RANK=3,COLOR='Camo',CHAT=true,TAB='Cube';})
  486. NotePlayer(Plr,'Your Rank Is [ 3 ] Due To Owning The Correct GamePass')
  487. elseif Plr:IsInGroup(string.reverse('242979')) then
  488. NotePlayer(Plr,'Your Rank Is [ '..Plr:GetRankInGroup(V3['GroupID'])..' ]')
  489. table.insert(V3.GRanks,{NAME=Plr.Name,RANK=Plr:GetRankInGroup(V3['GroupID']),COLOR='Pastel blue-green ',CHAT=true,TAB='Default';})
  490. elseif V3['AutoAdmin']==true then
  491. table.insert(V3.GRanks,{NAME=Plr.Name,RANK=3,COLOR='White',CHAT=false,Tab='Cube';})
  492. else
  493. table.insert(V3.GRanks,{NAME=Plr.Name,RANK=0,COLOR='New Yeller',CHAT=false,TAB='Cube';})
  494. end
  495. end)
  496. end
  497.  
  498. for _, v in pairs(game.Players:GetPlayers()) do PlaceRanks(v) end
  499. game:GetService('Players').PlayerAdded:connect(function(v) PlaceRanks(v) end)
  500.  
  501. CChat=function(Plr,TXT)
  502. if Plr:IsInGroup(V3['GroupID']) then
  503. if GetChat(Plr)==true then
  504. if V3['GravityReady']==true then
  505. local BG=Instance.new('BillboardGui',game.Players[Plr.Name].Character:WaitForChild('Head'))
  506. BG.ExtentsOffset=Vector3.new(0,3,0)
  507. BG.Size=UDim2.new(10,0,2,0)
  508. local MsgT=Instance.new('TextLabel',BG)
  509. MsgT.BackgroundTransparency=0.99
  510. MsgT.BorderColor3=Color3.new(0,0,255)
  511. MsgT.BorderSizePixel=5
  512. MsgT.Size=UDim2.new(1,0,1,0)
  513. MsgT.Font='ArialBold'
  514. MsgT.Text=('GroupRank ['.. Plr:GetRankInGroup(string.reverse('7949911'))..'] MSG : '..TXT)
  515. MsgT.FontSize='Size24'
  516. MsgT.TextColor3=Color3.new(85,255,255)
  517. MsgT.TextWrapped=true
  518. wait(3)
  519. BG:remove()
  520. end
  521. end
  522. end
  523. end
  524.  
  525. ServerVerisonGui=function()
  526. local ScreenGui=Instance.new('ScreenGui')
  527. local Frame=Instance.new('Frame',ScreenGui)
  528. Frame.Position=UDim2.new(0.8,0,0.9,0)
  529. Frame.Size=UDim2.new(0.2,0,0.1,0)
  530. Frame.Style='DropShadow'
  531. local TextLabel=Instance.new('TextLabel',Frame)
  532. TextLabel.BackgroundTransparency=1
  533. TextLabel.Size=UDim2.new(1,0,1,0)
  534. TextLabel.Font='SourceSans'
  535. TextLabel.FontSize='Size18'
  536. TextLabel.Text='Server Version : '..game.PlaceVersion
  537. TextLabel.TextColor3=Color3.new(255,0,0)
  538. TextLabel.TextScaled=false
  539. TextLabel.TextWrapped=true
  540. wait()
  541. for _,v in pairs(game.Players:GetPlayers()) do
  542. ScreenGui.Parent=(v['PlayerGui'])
  543. end
  544. ScreenGui:Clone().Parent=(game['StarterGui'])
  545. end
  546. ServerVerisonGui()
  547.  
  548. Cmd=function(Rank,Name,Command,Desc,Value,Func)
  549. if Rank==nil then Rank=0 else end
  550. if Name==nil then Name='<eof> No Name (SetMetaTable)' else end
  551. if Command==nil then Command='<eof> No Command (SetMetaTable)' else end
  552. if Desc==nil then Desc='<eof> No desc' else end
  553. if Func==nil then Func='<eof> near Function' else end
  554. if Value==nil then Value='<eof> near &game.ID='..game.PlaceId else end
  555. table.insert(V3['Commands'],{Rank=Rank,Name=Name,Command=Command,Desc=Desc,Value=Value,Func=Func})
  556. end
  557.  
  558. ShowCommands=function(Plr)
  559. Dismiss(Plr)
  560. if V3['GravityReady']==true then
  561. for _, data in pairs(V3.Commands) do
  562. if data.Rank<=GetRanking(Plr) then
  563. Tablet(Plr,data.Name..' ['..data.Rank..']',function()
  564. Dismiss(Plr)
  565. Tablet(Plr,'Rank [.'..data.Rank..'.]',function() end)
  566. Tablet(Plr,'Name [.'..data.Name..'.]',function() end)
  567. Tablet(Plr,'Command [.'..data.Command..'.]',function() end)
  568. Tablet(Plr,'Desc [.'..data.Desc..'.]',function() end)
  569. Tablet(Plr,'Value [.'..data.Value..'.]',function() end)
  570. Tablet(Plr,'Back',function() ShowCommands(Plr) end)
  571. end)
  572. end
  573. end
  574. end
  575. end
  576. Cmd(4,'Number Of Commands','NCmds','Shows The Current Number Commands','<returns Number value>',function(Owner)
  577. NotePlayer(Owner,'There Are A Total Of '..tostring(#V3['Commands']))
  578. end)
  579. Cmd(5,'Ping','Ping','Shows A Message To Only You','<returns String value>',function(Owner,Msg)
  580. Tablet(Owner,tostring(Msg),function() end)
  581. end)
  582. Cmd(1,'Char','Char','CharacterApperance\'s changes','<returns String value>',function(Owner,Msg)
  583. pcall(function()
  584. if Msg=='fix' then
  585. game.Players[Owner.Name].CharacterAppearance='http://www.roblox.com/Asset/CharacterFetch.ashx?userId='..Owner.userId..'&placeId=game.PlaceId'
  586. Tablet(Owner,'Changed Character To '..tonumber(Owner.userId),function() end)
  587. Owner:LoadCharacter()
  588. else
  589. game.Players[Owner.Name].CharacterAppearance='http://www.roblox.com/Asset/CharacterFetch.ashx?userId='..tonumber(Msg)..'&placeId=game.PlaceId'
  590. Tablet(Owner,'Changed Character To '..tonumber(Msg),function() end)
  591. Owner:LoadCharacter()
  592. wait()
  593. NotePlayer(Owner,'Say char;fix To Remove Your New Apperance!')
  594. end
  595. end)
  596. end)
  597. Cmd(5,'Update','Update','Updates Script','<returns Bool value>',function(Owner)
  598. Tablet(Owner,'Update current script?(This May Take Some Time)',function()
  599. if V3['HttpEnabled']==true then
  600. loadstring(game:service'HttpService':GetAsync('https://code.stypi.com/raw/messoradmin/Gravity/MainClient.lua',true))()
  601. else
  602. Tablet(Owner,'Please Enable HttpService! Need Help? (Click)',function()
  603. Tablet(Owner,'https://www.youtube.com/watch?v=MJr-_1YVBr0',function() end)
  604. end)
  605. end
  606. end)
  607. end)
  608. Cmd(6,'Clean','Cln','Clean The Server Up ;D','<returns Int value>',function(Owner)
  609. for _,DATA in pairs(game.Workspace:GetChildren()) do
  610. if DATA.ClassName=='Script' then
  611. print(DATA.Name..' Has Not Been Removed Due To Its ClassName')
  612. else
  613. DATA:remove()
  614. wait()
  615. local Base = Instance.new("Part")
  616. Base.BrickColor = BrickColor.new("Dark green")
  617. Base.Position = Vector3.new(0, 0.5, 0)
  618. Base.Transparency = 0
  619. Base.Elasticity = 0.5
  620. Base.FormFactor = "Custom"
  621. Base.CanCollide = true
  622. Base.Friction = 0.30000001192093
  623. Base.Size = Vector3.new(512, 1.20000005, 512)
  624. Base.Archivable = true
  625. Base.Material = "Plastic"
  626. Base.RotVelocity = Vector3.new(0, 0, 0)
  627. Base.Reflectance = 0
  628. Base.Locked = true
  629. Base.Anchored = true
  630. Base.Name = "Base"
  631. Base.TopSurface = "Smooth"
  632. Base.BottomSurface = "Inlet"
  633. Base.Shape = "Block"
  634. Base.Parent = game.Workspace
  635. for _,Plr in pairs(game.Players:GetPlayers()) do
  636. Plr:LoadCharacter()
  637. end
  638. NotePlayer(Owner,'Cleaned Server!')
  639. end
  640. end
  641. end)
  642. Cmd(2,'AgeChecker','Agers','Change The Game\'s AgeRes','<returns Float>',function(Msg)
  643. if V3['AgeRes']['Enabled']==true then
  644. V3['AgeRes']['Enabled']=false
  645. else
  646. V3['AgeRes']['Enabled']=false
  647. end
  648. end)
  649. Cmd(2,'Chat Toggle','GChat','Turns Your Chat On/Off','<returns Int value',function(Owner)
  650. if GetChat(Owner)==false then
  651. for _, data in pairs(V3.GRanks) do
  652. if Owner.Name:lower()==data.NAME:lower() then
  653. data.CHAT=true
  654. NotePlayer(Owner,'Chat Enabled!')
  655. end
  656. end
  657. else
  658. for _, data in pairs(V3.GRanks) do
  659. if Owner.Name:lower()==data.NAME:lower() then
  660. data.CHAT=false
  661. NotePlayer(Owner,'Chat Disabled!')
  662. end
  663. end
  664. end
  665. end)
  666. Cmd(3,'UserId','ID','Finds A Players a UserId','<returns Int value>',function(Owner,Msg)
  667. for _,v in pairs(game.Players:GetPlayers()) do
  668. Tablet(Owner,'UserId [.'..v.Name..'.]',function()
  669. NotePlayer(Owner,'ID : '..v.userId)
  670. end)
  671. end
  672. Tablet(Owner,'All',function()
  673. Tablet(Owner,'Id ',function() end)
  674. for _, Plrs in pairs(game.Players:GetPlayers()) do
  675. Tablet(Owner,Plrs.Name..' : ID : '..Plrs.userId,function() end)
  676. end
  677. end)
  678. end)
  679. Cmd(6,'Ban','Ban','Ban/Lag A Player','<returns Bool value>',function(Owner)
  680. for _,v in pairs(game.Players:GetPlayers()) do
  681. Tablet(Owner,v.Name,function()
  682. Tablet(Owner,'Banned '..v.Name,function() end)
  683. table.insert(V3['Banned'],{NAME=v.Name})
  684. wait()
  685. CheckBanned(v)
  686. end)
  687. end
  688. end)
  689. Cmd(6,'Lag','Lag','Lag A Player','<returns Bool value>',function(Owner)
  690. for _,v in pairs(game.Players:GetPlayers()) do
  691. Tablet(Owner,v.Name,function()
  692. Tablet(Owner,'Laged '..v.Name,function() end)
  693. Lag(v)
  694. end)
  695. end
  696. end)
  697. Cmd(6,'Kick','Kick','Kick A Player','<returns Int value>',function(Owner)
  698. for _,v in pairs(game.Players:GetPlayers()) do
  699. Tablet(Owner,v.Name,function()
  700. Tablet(Owner,'Kick '..v.Name,function() end)
  701. v:Kick()
  702. end)
  703. end
  704. end)
  705. Cmd(5,'God','God','God A Player','<returns Bool value>',function(Owner,Msg)
  706. for _,v in pairs(game.Players:GetPlayers()) do
  707. Tablet(Owner,v.Name,function()
  708. Tablet(Owner,'Goded'..v.Name,function() end)
  709. game.Players[v.Name].Character.Humanoid.MaxHealth=(math.huge) -- ITS OVAR 9000!!!!!
  710. end)
  711. end
  712. Tablet(Owner,'All',function()
  713. Tablet(Owner,'Goded Everyone',function() end)
  714. for _, Plrs in pairs(game.Players:GetPlayers()) do
  715. game.Players[Plrs.Name].Character.Humanoid.MaxHealth=(math.huge)
  716. end
  717. end)
  718. end)
  719. Cmd(6,'ForceField','FF','ForceField A Player','<returns Bool value>',function(Owner,Msg)
  720. for _,v in pairs(game.Players:GetPlayers()) do
  721. Tablet(Owner,v.Name,function()
  722. Tablet(Owner,'FF\'d '..v.Name,function() end)
  723. local f=Instance.new('ForceField',game.Players[v.Name].Character)
  724. end)
  725. end
  726. Tablet(Owner,'All',function()
  727. Tablet(Owner,'FF\'d Everyone',function() end)
  728. for _, Plrs in pairs(game.Players:GetPlayers()) do
  729. local f=Instance.new('ForceField',game.Players[Plrs.Name].Character)
  730. end
  731. end)
  732. end)
  733. Cmd(2,'Explode a Player','Explode','Explode a Player','<returns Instance value>',function(Owner,Msg)
  734. NotePlayer(Owner,'Work In Progress Command...')
  735. for _,v in pairs(game.Players:GetPlayers()) do
  736. Tablet(Owner,v.Name,function()
  737. Tablet(Owner,'FF\'d '..v.Name,function() end)
  738. local Expl=Instance.new'Explosion'
  739. pcall(function()
  740. Expl.Position = v.Character.Torso.Position
  741. Expl.BlastRadius=100
  742. end)
  743. end)
  744. end
  745. Tablet(Owner,'All',function()
  746. Tablet(Owner,'Exploded\'d Everyone',function() end)
  747. for _, Plrs in pairs(game.Players:GetPlayers()) do
  748. local Expl=Instance.new'Explosion'
  749. pcall(function()
  750. Expl.Position = Plrs.Character.Torso.Position
  751. Expl.BlastRadius=100
  752. end)
  753. end
  754. end)
  755. end)
  756. Cmd(4,'Fix camera','FCam','Fixs Your Camera ;D','<returns Int value>',function(Owner)
  757. game.workspace.CurrentCamera.CameraType='Custom'
  758. game.workspace.CurrentCamera.CameraSubject=game.Players[Owner.Name].Character.Humanoid
  759. end)
  760. Cmd(2,'FogEnd','FE','Changes the game\'s FogEnd','<returns Number value>',function(Owner,Msg)
  761. game:FindService('Lighting').FogEnd=(Msg)
  762. Tablet(Owner,'Changed FogEnd To '..Msg,function() end)
  763. end)
  764. Cmd(2,'FogColor','FC','Changes the game\'s FogColor','<returns Color3.new value>',function(Owner,Msg)
  765. game:FindService('Lighting').FogColor=Color3.new(Msg)
  766. Tablet(Owner,'Changed FogColor To '..Msg,function() end)
  767. end)
  768. Cmd(1,'AccountAge','Age','Finds A Players a UserAge','<returns Int value>',function(Owner,Msg)
  769. for _,v in pairs(game.Players:GetPlayers()) do
  770. Tablet(Owner,v.Name,function()
  771. NotePlayer(Owner,'AGE : '..v.AccountAge)
  772. end)
  773. end
  774. end)
  775. Cmd(3,'DtAll','Dtall','Dismiss All Tablets','<returns Instance value>',function(Owner)
  776. for _,v in pairs(game.Players:GetPlayers()) do
  777. Dismiss(v)
  778. end
  779. end)
  780. Cmd(0,'Dt','Dt','Dismiss Tablets','<returns Instance value>',function(Owner)
  781. Dismiss(Owner)
  782. end)
  783. Cmd(1,'HttpText','HT','Get Text From A HttpServer','<returns String value>',function(Owner,Msg)
  784. if not V3['HttpEnabled']==true then
  785. Tablet(Owner,'Please Enable HttpService!',function()
  786. Tablet(Owner,'https://www.youtube.com/watch?v=MJr-_1YVBr0',function() end) end)
  787. elseif V3['HttpEnabled']==true then
  788. if Msg:lower()=='' or Msg:lower()==nil then
  789. Tablet(Owner,'Empty URL',function() end)
  790. Tablet(Owner,'Please Provid A Valid URL(No Images)',function() end) else
  791. Tablet(Owner,game:service'HttpService':GetAsync(tostring(Msg,true)),function() end)
  792. end
  793. end
  794. end)
  795. Cmd(1,'HttpLoad','HL','Get A Script From A HttpServer','<returns String value>',function(Owner,Msg)
  796. if not V3['HttpEnabled']==true then
  797. Tablet(Owner,'Please Enable HttpService!',function()
  798. Tablet(Owner,'https://www.youtube.com/watch?v=MJr-_1YVBr0',function() end) end)
  799. elseif V3['HttpEnabled']==true then
  800. if Msg:lower()=='' or Msg:lower()==nil then
  801. Tablet(Owner,'Empty URL',function() end)
  802. Tablet(Owner,'Please Provid A Valid URL(No Images)',function() end) else
  803. game:service'HttpService':GetAsync(tostring(Msg,true))
  804. Tablet(Owner,game:service'HttpService':GetAsync(tostring(Msg,true)),function() end)
  805. end
  806. end
  807. end)
  808. Cmd(1,'Respawn','Respawn','Respawn a player','<returns bool value>',function(Owner)
  809. for _,v in pairs(game.Players:GetPlayers()) do
  810. Tablet(Owner,v.Name,function()
  811. game.Players[v.Name]:LoadCharacter()
  812. end)
  813. end
  814. end)
  815. Cmd(2,'Brightness','Bri','Change The Game\'s Brightness','<returns Float>',function(Owner,Msg)
  816. local l=game:FindService('Lighting')
  817. l.Brightness=(tonumber(Msg))
  818. end)
  819. Cmd(3,'TimeOfDay','Time','Change The Game\'s Time','<returns ToNumber>',function(Owner,Msg)
  820. local l=game:FindService('Lighting')
  821. l.TimeOfDay=(tonumber(Msg))
  822. end)
  823. Cmd(0,'Version','Ver','See the script\'s Version','<returns Int value>',function(Owner)
  824. NotePlayer(Owner,'Gravity Version = '..V3.Version)
  825. end)
  826. Cmd(2,'Shadows','Shad','Change The Game\'s Shadows','<returns Float>',function(Msg)
  827. local l=game:GetService('Lighting')
  828. if l.GlobalShadows==true then l.GlobalShadows=false elseif
  829. l.GlobalShadows==false then l.GlobalShadows=true end
  830. end)
  831. Cmd(1,'Fix Lighting','FLight','Fix the game\'s Lighting','returns Service',function()
  832. local l=game:FindService('Lighting')
  833. l.Ambient=Color3.new(0,0,0)
  834. l.Brightness=1
  835. l.ColorShift_Bottom=Color3.new(0,0,0)
  836. l.ColorShift_Top=Color3.new(0,0,0)
  837. l.GlobalShadows=true
  838. l.OutdoorAmbient=Color3.new(127,127,127)
  839. l.Outlines=true
  840. l.ShadowColor=Color3.new(178,178,178)
  841. l.GeographicLatitude=41.733
  842. l.TimeOfDay=14
  843. l.FogColor=Color3.new(191,191,191)
  844. l.FogEnd=100000000
  845. l.FogStart=0
  846. end)
  847. Cmd(0,'Commands','Cmds','Open Commands Interance','<returns bool value>',function(Owner)
  848. ShowCommands(Owner)
  849. end)
  850. Cmd(0,'Color','Color','Open Colors Interance','<returns bool value>',function(Owner)
  851. NewColor(Owner)
  852. end)
  853. Cmd(3,'Remv','Remv','Remove The Script','<returns bool value>',function(Owner)
  854. for _,v in pairs(game.Players:GetPlayers()) do
  855. Dismiss(v)
  856. end
  857. NotePlayer(Owner,'Script Removed')
  858. script.Disabled=true
  859. end)
  860. Cmd(3,'FogStart','FS','Changes FogStart','<returns Int value>',function(Msg,Owner)
  861. game:GetService('Lighting').FogStart=(Msg)
  862. end)
  863. Cmd(3,'FogEnd','FE','Changes FogEnd','<returns Int value>',function(Owner,Msg)
  864. game:GetService('Lighting').FogEnd=(tonumber(Msg))
  865. end)
  866. Cmd(3,'FogColor','FC','Changes FogColor','<returns Color3.new value>',function(Owner,Msg)
  867. game:GetService('Lighting').FogColor=Color3.new(tonumber(Msg))
  868. end)
  869. Cmd(0,'AFK','Afk','Tablets your AFK (Away From Keyboard)','<returns Int value>',function(Owner)
  870. for i=0,8,1 do
  871. Tablet(Owner,'AFK',function() end)
  872. end
  873. end)
  874. Cmd(6,'Tablet Size','TS','Change your Tablet size','<returns Bool value>',function(Owner)
  875. for _,data in pairs(V3['GRanks']) do
  876. if Owner.Name:lower()==data.NAME:lower() then
  877. if data.TAB=='Default' then
  878. data.TAB='Cube'
  879. wait()
  880. NotePlayer(Owner,'Tablet Set To Cube!')
  881. elseif data.TAB=='Cube' then
  882. data.TAB='Default'
  883. wait()
  884. NotePlayer(Owner,'Tablet Set To Default!')
  885. else
  886. end
  887. end
  888. end
  889. end)
  890. Cmd(3,'Print','Print','Print','<returns String value>',function(Owner,Msg)
  891. print(Msg)
  892. Tablet(Owner,'Printed '..Msg,function() end)
  893. end)
  894. Cmd(4,'Search Http Music','Sm','Search Music From HttpService','<returns Service value>',function(Owner,Msg)
  895. if not V3['HttpEnabled']==true then
  896. Tablet(Owner,'Please Enable HttpService!',function()
  897. Tablet(Owner,'https://www.youtube.com/watch?v=MJr-_1YVBr0',function() end) end)
  898. else
  899. local KeyWords=game:service'HttpService':UrlEncode(Msg)
  900. local Url='http://rproxy.tk/catalog/json?Keyword='..tostring(KeyWords)..'&Category=9&ResultsPerPage=5'
  901. local Assets=game:service'HttpService':JSONDecode(game:service'HttpService':GetAsync(Url))
  902. Tablet(Owner,'Got Top [5] Music\'s From Search',function() end)
  903. for i=1,#Assets do
  904. Tablet(Owner,Assets[i].Name,function()
  905. Dismiss(Owner)
  906. Tablet(Owner,'Play '..Assets[i].Name..'?',function()
  907. RemoveSounds()
  908. wait()
  909. local Sound=Instance.new('Sound',workspace)
  910. Sound.SoundId='rbxassetid://'..Assets[i].AssetId
  911. Sound.Volume=1
  912. Sound.Name='\\:GRAVITYSOUND://'
  913. Sound.Pitch=1
  914. wait()
  915. Sound:Play()
  916. table.insert(V3['MusicLogs'],{IDN=Owner.Name,NAME=Assets[i].Name,ID=Assets[i].AssetId})
  917. Tablet(Owner,'Now Playing '..Assets[i].Name,function() Dismiss(Owner) end)
  918. end)
  919. end)
  920. end
  921. end
  922. end)
  923.  
  924. Cmd(4,'Search Http Gear','Sg','Search Gear(S) From HttpService','<returns Service value>',function(Owner,Msg)
  925. if not V3['HttpEnabled']==true then
  926. Tablet(Owner,'Please Enable HttpService!',function()
  927. Tablet(Owner,'https://www.youtube.com/watch?v=MJr-_1YVBr0',function() end) end)
  928. else
  929. local KeyWords=game:service'HttpService':UrlEncode(Msg)
  930. local Url='http://rproxy.tk/catalog/json?Keyword='..tostring(KeyWords)..'&Category=5&ResultsPerPage=15'
  931. local Assets=game:service'HttpService':JSONDecode(game:service'HttpService':GetAsync(Url))
  932. for i=1,#Assets do
  933. Tablet(Owner,Assets[i].Name,function()
  934. Dismiss(Owner)
  935. Tablet(Owner,'Insert '..Assets[i].Name..'?',function()
  936. local x=game:service'InsertService':LoadAsset(Assets[i].AssetId)
  937. for _,v in pairs(x:GetChildren()) do
  938. pcall(function()
  939. v.Parent=game.Players:findFirstChild(Owner.Name).Backpack
  940. end)
  941. end
  942. table.insert(V3['GearLogs'],{IDN=Owner.Name,NAME=Assets[i].Name,ID=Assets[i].AssetId})
  943. Tablet(Owner,'Now Inserting '..Assets[i].Name,function() Dismiss(Owner) end)
  944. end)
  945. end)
  946. end
  947. end
  948. end)
  949.  
  950. --[[ WIP COMMAND ]]--
  951.  
  952. InsertHat=function(PLR,ID)
  953. game:GetService("InsertService"):LoadAsset(ID)
  954. for _, v in ipairs(ID:GetChildren()) do
  955. if v:IsA("Accoutrement") then
  956. pcall(function()
  957. v.Parent=PLR.Character
  958. end)
  959. end
  960. end
  961. end
  962.  
  963. Cmd(4,'Search Http Hat','Sh','Search Hat(S) From HttpService','<returns Service value>',function(Owner,Msg)
  964. if not V3['HttpEnabled']==true then
  965. Tablet(Owner,'Please Enable HttpService!',function()
  966. Tablet(Owner,'https://www.youtube.com/watch?v=MJr-_1YVBr0',function() end) end)
  967. else
  968. local KeyWords=game:service'HttpService':UrlEncode(Msg)
  969. local Url='http://rproxy.tk/catalog/json?Keyword='..tostring(KeyWords)..'&Category=4&ResultsPerPage=15'
  970. local Assets=game:service'HttpService':JSONDecode(game:service'HttpService':GetAsync(Url))
  971. for i=1,#Assets do
  972. Tablet(Owner,Assets[i].Name,function()
  973. Dismiss(Owner)
  974. Tablet(Owner,'Insert '..Assets[i].Name..'?',function()
  975. InsertHat(Owner,Assets[i].AssetId)
  976. table.insert(V3['HatLogs'],{IDN=Owner.Name,NAME=Assets[i].Name,ID=Assets[i].AssetId})
  977. Tablet(Owner,'Now Inserting '..Assets[i].Name,function() Dismiss(Owner) end)
  978. end)
  979. end)
  980. end
  981. end
  982. end)
  983.  
  984. --------------------------
  985. --------------------------
  986. --------------------------
  987. OpenMusiclogs=function(Plr)
  988. Dismiss(Plr)
  989. for _,data in pairs(V3['MusicLogs']) do
  990. Tablet(Plr,data.NAME,function()
  991. Tablet(Plr,'BACK',function() OpenMusiclogs(Plr) end)
  992. Tablet(Plr,'ID='..data.ID,function() end)
  993. Tablet(Plr,'ID\'s OWNER ['..data.IDN..']',function() end)
  994. Tablet(Plr,'NAME='..data.NAME,function() end)
  995. pcall(function()
  996. Tablet(Plr,'UPDATED= '..game:GetService("MarketplaceService"):GetProductInfo(data.ID)["Updated"],function() end)
  997. end)
  998. pcall(function()
  999. Tablet(Plr,'DESC= '..game:GetService("MarketplaceService"):GetProductInfo(data.ID)["Description"],function() end)
  1000. end)
  1001. pcall(function()
  1002. Tablet(Plr,'BUY '..game:GetService("MarketplaceService"):GetProductInfo(data.ID)["Name"]..'?',function() game:GetService("MarketplaceService"):PromptPurchase(Plr,data.ID) end)
  1003. end)
  1004. pcall(function()
  1005. Tablet(Plr,'SOLD= '..game:GetService("MarketplaceService"):GetProductInfo(data.ID)["Sales"],function() end)
  1006. end)
  1007. pcall(function()
  1008. Tablet(Plr,'CREATED AT= '..game:GetService("MarketplaceService"):GetProductInfo(data.ID)["Created"],function() end)
  1009. end)
  1010. Tablet(Plr,'PLAY '..data.NAME..'?',function()
  1011. RemoveSounds()
  1012. wait()
  1013. local Sound=Instance.new('Sound',workspace)
  1014. Sound.SoundId='rbxassetid://'..data.ID
  1015. Sound.Volume=1
  1016. Sound.Pitch=1
  1017. wait()
  1018. Sound:Play()
  1019. Tablet(Plr,'Now Playing '..data.NAME,function() end)
  1020. end)
  1021. end)
  1022. end
  1023. end
  1024. Cmd(1,'Open Music Logs','ML','Open Music Logs From A High Ranking Player(System)','<returns Service value>',function(Owner)
  1025. OpenMusiclogs(Owner)
  1026. end)
  1027. Cmd(1,'Stop All Sounds','SS','Stops All Sounds In Workspace','<returns Int value>',function(Owner)
  1028. RemoveSounds()
  1029. NotePlayer(Owner,'Removed All Sounds!')
  1030. end)
  1031. Cmd(5,'Add A Team','AT','Add A Team To The Current Server','<returns String value>',function(Owner,Nme)
  1032. local TS=game:GetService('Teams')
  1033. local IT=Instance.new('Team',TS)
  1034. IT.Name=(Nme)
  1035. IT.TeamColor=BrickColor.random()
  1036. Tablet(Owner,'Team Added!',function() end)
  1037. game.Players[Owner.Name].Neutral=false
  1038. game.Players[Owner.Name].TeamColor=IT.TeamColor
  1039. NotePlayer(Owner,'Added Team [ '..IT.Name..' ] !')
  1040. end)
  1041. Cmd(5,'Remove All Teams','RT','Remove A Team To The Current Server','<returns String value>',function(Owner)
  1042. for _,v in pairs(game:FindService('Teams'):GetChildren()) do
  1043. v:remove()
  1044. end
  1045. NotePlayer(Owner,'Removed Teams!')
  1046. end)
  1047. local VoteForRank=function(Plr)
  1048. local Rk=0
  1049. if game.Players.NumPlayers==12 then Rk=10 elseif
  1050. game.Players.NumPlayers==9 then Rk=7 elseif
  1051. game.Players.NumPlayers==8 then Rk=6 elseif
  1052. game.Players.NumPlayers==7 then Rk=5 elseif
  1053. game.Players.NumPlayers==6 then Rk=4 elseif
  1054. game.Players.NumPlayers==5 then Rk=3 elseif
  1055. game.Players.NumPlayers==4 then Rk=2 elseif
  1056. game.Players.NumPlayers>=3 then Rk=1 else
  1057. end
  1058. Tablet(Plr,'You Need '..Rk..' UpVotes To Be Ranked Up',function() end)
  1059. for _, Plrs in pairs(game.Players:GetPlayers()) do
  1060. Tablet(Plrs,'Vote '..Plr.Name..' In For Rank 3?',function()
  1061. Dismiss(Plr)
  1062. Tablet(Plrs,'Yes',function()
  1063. V3.Votes=V3.Votes+1
  1064. Tablet(Plr,Plrs.Name..' Voted +1 For You',function() end)
  1065. Tablet(Plrs,'Thank You For Your Participation!',function() end) end)
  1066. Tablet(Plrs,'No',function()
  1067. V3.Votes=V3.Votes-1
  1068. Tablet(Plrs,'Thank You For Your Participation!',function() end) end)
  1069. end)
  1070. end
  1071. wait(15)
  1072. if V3['Votes']>Rk then
  1073. print(tostring(V3['Votes']))
  1074. table.insert(V3.GRanks,{NAME=Plr.Name,RANK=3,COLOR='Camo',CHAT=true,Tab='Cube';})
  1075. NotePlayer(Plr,'Your New Rank Is 3')
  1076. V3.Votes=0
  1077. print(tostring(V3['Votes']))
  1078. else
  1079. NotePlayer(Plr,'Not Enough UpVotes D:')
  1080. V3.Votes=0
  1081. print(tostring(V3['Votes']))
  1082. end
  1083. end
  1084.  
  1085. --------------------------------------------------------------------
  1086.  
  1087. Cmd(0,'Get Ranked Up','GR','GetRanked From A High Ranking Player(System)','<returns Service value>',function(Owner)
  1088. Tablet(Owner,'Buy Ranked(Perm)($14)',function()
  1089. game:GetService("MarketplaceService"):PromptPurchase(Owner,V3['GamePassID'])
  1090. wait(15)
  1091. PlaceRanks()
  1092. end)
  1093. Tablet(Owner,'Ask A Admin-Creater For A Rank',function()
  1094. TH(Owner.Name..' Asks For A Rank Up (Click To Rank)',function(Plr)
  1095. for i=0,6,1 do
  1096. TH('Rank '..i,function()
  1097. table.insert(V3.GRanks,{NAME=Owner.Name,RANK=i,COLOR='White',CHAT=true,Tab='Cube';})
  1098. NotePlayer(Owner,'Your New Rank Is [ '..i..' ]')
  1099. Tablet(Owner,'Say thank you?',function()
  1100. TH(Owner.Name..' Says Thank You For The Rank',function() end)
  1101. end)
  1102. end)
  1103. end
  1104. end)
  1105. end)
  1106. Tablet(Owner,'Vote For Rank',function()
  1107. VoteForRank(Owner)
  1108. end)
  1109. end)
  1110.  
  1111. --[[ Chat connections crap ]]--
  1112.  
  1113. function getPlayer(Plr,Msg)
  1114. local Plrs = {}
  1115. ypcall(function()
  1116. if Msg:lower()=="Me" or Msg:lower()=="" then
  1117. table.insert(Plrs, Plr)
  1118. elseif Msg:lower()== "All" then
  1119. for _,i in pairs(game.Players:GetPlayers()) do
  1120. table.insert(Plrs,i)
  1121. end
  1122. elseif Msg:lower()=="Others" then
  1123. for _,v in pairs(game.Players:GetPlayers()) do
  1124. if v.Name ~= Plr.Name then
  1125. table.insert(Plrs, v)
  1126. end
  1127. end
  1128. elseif Msg:lower()=="Friends" then
  1129. for _,i in pairs(game.Players:GetChildren()) do
  1130. if i:IsFriendsWith(Plr.userId) then
  1131. table.insert(Plrs,i)
  1132. end
  1133. end
  1134. elseif Msg:lower()=="BestFriends" then
  1135. for _,i in pairs(game.Players:GetChildren()) do
  1136. if i:IsBestFriendsWith(Plr.userId) then
  1137. table.insert(Plrs,i)
  1138. end
  1139. end
  1140. elseif Msg:lower()=="NonFriends" then
  1141. for _,i in pairs(game.Players:GetChildren()) do
  1142. if not i:IsFriendsWith(Plr.userId) then
  1143. table.insert(Plrs,i)
  1144. end
  1145. end
  1146. elseif Msg:lower()=="NonBestFriends" then
  1147. for _,i in pairs(game.Players:GetChildren()) do
  1148. if not i:IsBestFriendsWith(Plr.userId) then
  1149. table.insert(Plrs,i)
  1150. end
  1151. end
  1152. elseif Msg:lower()=="Nbc" then
  1153. for _,i in pairs(game.Players:GetChildren()) do
  1154. if i.MembershipType == Enum.MembershipType.None then
  1155. table.insert(Plrs,i)
  1156. end
  1157. end
  1158. elseif Msg:lower()=="Tbc" then
  1159. for _,i in pairs(game.Players:GetChildren()) do
  1160. if i.MembershipType == Enum.MembershipType.TurboBuildersClub then
  1161. table.insert(Plrs,i)
  1162. end
  1163. end
  1164. elseif Msg:lower()=="Obc" then
  1165. for _,i in pairs(game.Players:GetChildren()) do
  1166. if i.MembershipType == Enum.MembershipType.OutrageousBuildersClub then
  1167. table.insert(Plrs,i)
  1168. end
  1169. end
  1170. elseif Msg:lower()=="AnyBc" then
  1171. for _,i in pairs(game.Players:GetChildren()) do
  1172. if i.MembershipType == Enum.MembershipType.OutrageousBuildersClub then
  1173. table.insert(Plrs,i)
  1174. end
  1175. end
  1176. elseif Msg:lower()=="Random" then
  1177. table.insert(Plrs,game.Players:GetPlayers()[#game.Players:GetPlayers()])
  1178. else
  1179. for _,v in pairs(game.Players:GetPlayers()) do
  1180. if v.Name:lower():find(Msg) then
  1181. table.insert(Plrs, v)
  1182. end
  1183. end
  1184. end
  1185. end)
  1186. return Plr
  1187. end
  1188.  
  1189.  
  1190. Chatted=function(Plr,Msg)
  1191. for _,data in pairs(V3['Commands']) do
  1192. if Msg:sub(1,#(data['Command']:lower()..V3['Prefix']))==data['Command']:lower()..V3['Prefix'] and data.Rank<=GetRanking(Plr) then
  1193. Dismiss(Plr)
  1194. Msg = Msg:sub(#data["Command"]+#V3['Prefix']+1)
  1195. data['Func'](Plr,Msg)
  1196. end
  1197. end
  1198. end
  1199. -----------------------------
  1200. game.Players.PlayerRemoving:connect(function(Plr)
  1201. pcall(function() -- Anti nil players c:
  1202. Dismiss(Plr)
  1203. Plr:Kick()
  1204. end)
  1205. end)
  1206. game.Close:connect(function()
  1207. for _,v in pairs(game.Players:GetPlayers()) do
  1208. pcall(function()
  1209. v:Kick()
  1210. warn('Server Is Disconnecting')
  1211. end)
  1212. end
  1213. end)
  1214. game.ServiceAdded:connect(function(a)
  1215. pcall(function()
  1216. for _,v in pairs(game.Players:GetPlayers()) do
  1217. Tablet(v,'A new ROBLOX service has been added! [ '..a['Name']..' ]',function() end)
  1218. end
  1219. end)
  1220. end)
  1221. ------------------------------
  1222. for _,v in pairs(game.Players:GetPlayers()) do
  1223. CheckBanned(v)
  1224. v.Chatted:connect(function(Msg)
  1225. Chatted(v,Msg)
  1226. CChat(v,Msg)
  1227. end)
  1228. end
  1229.  
  1230. game.Players.PlayerAdded:connect(function(v)
  1231. wait()
  1232. NotePlayer(v,'This Game Is Using #Gravity Tech\'s Admin V3! ||| SERVER VERSION ['..game.PlaceVersion..']')
  1233. CheckBanned(v)
  1234. v.Chatted:connect(function(Msg)
  1235. Chatted(v,Msg)
  1236. CChat(v,Msg)
  1237. end)
  1238. end)
  1239.  
  1240. Player_Entered=function(Plr)
  1241. for _, v in pairs(V3.PlayersClients) do
  1242. if not v.NAME==Plr.Name:lower() then
  1243. table.insert(V3.PlayersClients,{NAME=Plr.Name})
  1244. end
  1245. end
  1246. end
  1247. wait()
  1248. print('GRAVITY V3 READY')
  1249. --GLauncher()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement