Advertisement
V3rmLua33

Gravity admin

Feb 26th, 2015
419
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 34.35 KB | None | 0 0
  1. -- // Gravity Version : 4, Made by jillmiles1. \\ --
  2. -- // Please do not re-disitrubte and/or distribute. \\ --
  3.  
  4. local DS=game:GetService("DataStoreService")
  5. local Http=game:GetService('HttpService')
  6. local Players=game:GetService('Players')
  7. local NilLogStorage=DS:GetDataStore('TestGravityNilLogs')
  8. local Syncing = false
  9.  
  10. local Gravity_V4 = {
  11.     Game_ID = game.PlaceId,
  12.     Game_Version = game.PlaceVersion,
  13.     Game_CreaterID = game.CreatorId,
  14.     Game_VIP = game.VIPServerId,
  15.     Game_JobID = game.JobId,
  16.     Game_Name = game.Name,
  17.     _Prefix = ';',
  18.     _GroupId = string.reverse(7949911),
  19.     _Version = 4.0*1;
  20.     _Logo = '', -- Not done
  21.     _Rot1 = math.rad(0)*math.pi;
  22.     _Rot2 = math.rad(0.001)*math.pi;
  23.     _Gamepass1 = 0;
  24.     _Gamepass2 = 0;
  25.     _Name = 'Gravity_V4';
  26.     _Nils_Name_DATA = '';
  27.     _Pri_People_DATA = '';
  28.     _Commands={};
  29.     _Tablets={};
  30.     _Chatlogs={};
  31.     _Errorlogs={};
  32.     _Scriptlogs={};
  33.     _Sync = {
  34.         _Enabled = false;
  35.     };
  36.     _BannedUserID={
  37.         55657698,
  38.         14449714,
  39.         21130120,
  40.         47075124,
  41.         000000,
  42.         6200548,
  43.         19865983,
  44.         41251461,
  45.         13342214,
  46.         15396375,
  47.         20857984,
  48.         294568,
  49.     };
  50.     _PrivateServer = {
  51.         _Enabled = false;
  52.         _Players = {
  53.             'jillmiles1',
  54.             'chucky4523',
  55.         };
  56.     };
  57.     _ClientNils = {
  58.        
  59.     };
  60.     _Chats={
  61.         {Plr='jillmiles1',Chat='asd'};
  62.     };
  63.     _CommandChats={
  64.        
  65.     };
  66.     _Ranks={
  67.         {Name="jillmiles1",Rank=7,Antilocal=false,Chat=true,Spin=true,SpinRot=true,Color='Really black',Tab='Tablet',MeshID=1285237,MeshSCALEX=2,MeshSCALEY=2,MeshSCALEZ=2},
  68.         {Name="iLordVex",Rank=3,Antilocal=false,Chat=true,Spin=true,SpinRot=false,Color='White',Tab='Tablet',MeshID=1285237,MeshSCALEX=2,MeshSCALEY=2,MeshSCALEZ=2},
  69.         {Name="bmark2003",Rank=6,Antilocal=false,Chat=true,Spin=true,SpinRot=false,Color='White',Tab='Tablet',MeshID=1285237,MeshSCALEX=2,MeshSCALEY=2,MeshSCALEZ=2},
  70.         {Name="Superman1415",Rank=6,Antilocal=false,Chat=true,Spin=true,SpinRot=false,Color='White',Tab='Tablet',MeshID=1285237,MeshSCALEX=2,MeshSCALEY=2,MeshSCALEZ=2},
  71.     };
  72.     _Age={
  73.         Age=50,
  74.         Enabled=true
  75.     };
  76.     _Services={
  77.         game:GetService("Workspace"),
  78.         game:GetService("Players"),
  79.         game:GetService("Lighting"),
  80.         game:GetService("ServerScriptService"),
  81.         game:GetService("NetworkServer"),
  82.     };
  83.     _Alphabet = {
  84.         "a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"
  85.     };
  86. } -- Table end.
  87.  
  88. Output=function(time,Player,Text,Color,Func)
  89.     delay(wait(),function() spawn(function() pcall(function()
  90.     local Debouncing=false
  91.     if time==nil then time=0 end
  92.     if Text==nil then Text='Text error' end
  93.     if Color==nil then Color='Really red' end
  94.     if Func==nil then Func=function() end end
  95.     local Part=Instance.new('Part',workspace)
  96.     Part.BrickColor=BrickColor.new(Color)
  97.     pcall(function()
  98.         Part.CFrame=Player.Character.Torso.CFrame*CFrame.Angles(math.rad(10),3,3)
  99.     end)
  100.     Part.Material='Plastic'
  101.     Part.Transparency=0.3
  102.     Part.Name='User : '..Player.userId
  103.     Part.Anchored=true
  104.     Part.CanCollide=false
  105.     Part.Locked=true
  106.     Part.FormFactor='Custom'
  107.     Part.BottomSurface='Smooth'
  108.     Part.TopSurface='Smooth'
  109.     local Click=Instance.new('ClickDetector',Part)
  110.     Click.MaxActivationDistance=math.huge
  111.     local BodyGyro=Instance.new('BodyGyro',Part)
  112.     local Box=Instance.new('SelectionBox',Part)
  113.     Box.Color=Part.BrickColor
  114.     Box.Adornee=Part
  115.     Box.Transparency=0.3
  116.     local BG=Instance.new('BillboardGui',Part)
  117.     BG.ExtentsOffset=Vector3.new(0,2,0)
  118.     BG.Size=UDim2.new(0,200,0,200)
  119.     local TextLabel=Instance.new('TextLabel',BG)
  120.     TextLabel.BackgroundTransparency=1
  121.     TextLabel.BorderSizePixel=0
  122.     TextLabel.Size=UDim2.new(1,0,1,0)
  123.     TextLabel.Font='ArialBold'
  124.     TextLabel.FontSize='Size18'
  125.     --TextLabel.Text=Text
  126.     TextLabel.TextColor3=Color3.new(0,0,0)
  127.     TextLabel.TextScaled=false
  128.     TextLabel.TextStrokeColor3=Color3.new(255,255,255)
  129.     TextLabel.TextStrokeTransparency=1
  130.     TextLabel.TextWrapped=true
  131.     delay(wait,function()
  132.         for v = 1, #Text do
  133.             TextLabel.Text=string.sub(Text,1,v)
  134.             wait(.01)
  135.         end;
  136.     end)
  137.     Click.MouseClick:connect(function(plr)
  138.         if plr.userId==Player.userId then
  139.             pcall(function() time=0 end)
  140.             coroutine.wrap(function()
  141.             spawn(function()
  142.                 for _ = 0.5, 1, 0.05 do
  143.                     pcall(function()
  144.                         TextLabel.TextStrokeTransparency = TextLabel.TextStrokeTransparency + 0.1
  145.                          Part.Size = Part.Size - Vector3.new(0.4, 0.4, 0.4)
  146.                           Box.Transparency = Box.Transparency + 0.1
  147.                           Part.Transparency = Part.Transparency + 0.05
  148.                      end)
  149.                      wait()
  150.                     end
  151.                  pcall(function()
  152.                      Part:Destroy()
  153.                 end)
  154.             end)
  155.           end)()
  156.             Func=Func Func()
  157.         end
  158.     end)
  159.     Click.MouseHoverEnter:connect(function(plr)
  160.         if plr.userId==Player.userId then
  161.             Box.Transparency=0.5
  162.         end
  163.     end)
  164.     Click.MouseHoverLeave:connect(function(plr)
  165.         if plr.userId==Player.userId then
  166.             Box.Transparency=0.85
  167.         end
  168.     end)
  169.     delay(time,function()
  170.         coroutine.wrap(function()
  171.             spawn(function()
  172.                 for _ = 0.5, 1, 0.05 do
  173.                     pcall(function()
  174.                         TextLabel.TextStrokeTransparency = TextLabel.TextStrokeTransparency + 0.1
  175.                          Part.Size = Part.Size - Vector3.new(0.4, 0.4, 0.4)
  176.                           Box.Transparency = Box.Transparency + 0.1
  177.                           Part.Transparency = Part.Transparency + 0.05
  178.                      end)
  179.                      wait()
  180.                     end
  181.                  pcall(function()
  182.                      Part:Destroy()
  183.                 end)
  184.             end)
  185.           end)()
  186.     end)
  187.     table.insert(Gravity_V4['_Tablets'],{Plr=Player.userId,Tab=Part,Gyro=BodyGyro,Box=Box,Text=TextLabel})
  188.     Part.Size=Vector3.new(0,0,0)
  189.     pcall(function()
  190.         delay(wait(),function()
  191.              coroutine.wrap(function()
  192.             spawn(function()
  193.                 for _ = 0, 1, 0.1 do
  194.                     pcall(function()
  195.                         TextLabel.TextStrokeTransparency = TextLabel.TextStrokeTransparency - 0.1
  196.                          Part.Size = Part.Size + Vector3.new(0.15, 0.15, 0.15)
  197.                           Box.Transparency = Box.Transparency + 0.05
  198.                           Part.Transparency = Part.Transparency + 0.05
  199.                      end)
  200.                      wait()
  201.                 end
  202.             end)
  203.           end)()
  204.         end)
  205.         end)
  206.     Part.Parent=script
  207. end) end) end)
  208. end
  209. ;
  210.  
  211. function Get_Rank(plr)
  212. local Rk=0
  213. for _, data in pairs(Gravity_V4['_Ranks']) do
  214. if plr.Name==data.Name then
  215. Rk=data.Rank
  216. end
  217. end
  218. return Rk
  219. end
  220.  
  221. function Get_Color(plr)
  222. local Rk='White'
  223. for _, data in pairs(Gravity_V4['_Ranks']) do
  224. if plr.Name==data.Name then
  225. Rk=data.Color
  226. end
  227. end
  228. return Rk
  229. end
  230.  
  231. Sync_Group_Rank=function(plr)
  232.     if plr:IsInGroup(Gravity_V4._GroupId) then
  233.         table.insert(Gravity_V4._Ranks,{Name=plr.Name,Rank=plr:GetRankInGroup(Gravity_V4._GroupId),Antilocal=false,Chat=true,Spin=true,SpinRot=true,Color='Really black',Tab='Tablet',MeshID=1285237,MeshSCALEX=2,MeshSCALEY=2,MeshSCALEZ=2})
  234.         Output(15,plr,'Your rank : '..plr:GetRankInGroup(Gravity_V4._GroupId)..'!','Lime green',function() end)
  235.     end
  236.     if plr.Name == 'LordRevorius' then
  237.         Output(15,plr,'Your rank : 6!, Scrub.','Lime green',function() end)
  238.     end
  239. end
  240.  
  241. function Broadcast_All(rank,time,Text,Color,Func)
  242.     for _,Players in pairs(game.Players:GetPlayers()) do
  243.         if Get_Rank(Players)>=rank then
  244.             Output(time,Players,Text,Color,Func)   
  245.         end
  246.     end
  247. end
  248.  
  249. function Toggle_Anti_Local(Player)
  250.     for _,a in pairs(Gravity_V4['_Ranks']) do
  251.         if a.Name==Player.Name and a.Antilocal then
  252.             a.Antilocal=false
  253.         else
  254.             a.Antilocal=true
  255.         end
  256.     end
  257. end
  258.  
  259. RemoveSounds=function()
  260.     for _,v in pairs(game.Workspace:GetChildren()) do
  261.         if v.ClassName=='Sound' then
  262.             v:Pause()
  263.             v:remove()
  264.         end
  265.     end
  266. end;
  267.  
  268. NewSound=function(ID)
  269.     local S=Instance.new('Sound',workspace)
  270.     S.Pitch=1
  271.     S.Name=':// GRAVITY_V4_ADMIN_SOUND \\:'
  272.     S.Volume=1
  273.     S.Looped=true
  274.     S.PlayOnRemove=false
  275.     S.SoundId=('rbxassetid://'..ID)
  276.     wait()
  277.     S:Play()
  278. end;
  279.  
  280. Dismiss=function(plr)
  281.     for _,v in pairs(Gravity_V4['_Tablets']) do
  282.         if v.Plr==plr.userId then
  283.          if game.Players[plr.Name].Character.Parent==game.Workspace then
  284.           coroutine.wrap(function()
  285.             spawn(function()
  286.                 for _ = 0.5, 1, 0.05 do
  287.                     pcall(function()
  288.                         v.Text.TextStrokeTransparency = v.Text.TextStrokeTransparency + 0.1
  289.                          v.Tab.Size = v.Tab.Size - Vector3.new(0.4, 0.4, 0.4)
  290.                           v.Box.Transparency = v.Box.Transparency + 0.1
  291.                           v.Tab.Transparency = v.Tab.Transparency + 0.05
  292.                      end)
  293.                      wait()
  294.                     end
  295.                  pcall(function()
  296.                      v.Tab:Destroy()
  297.                 end)
  298.             end)
  299.           end)()
  300.          end
  301.         end
  302.     end
  303. end;
  304.  
  305. local Rot1 = .1
  306. local Rot2 = .001
  307. local LerpRot = .03
  308.  
  309. function ConnectTablets()
  310.     coroutine.wrap(function()
  311.         for _, Player in pairs(game.Players:GetPlayers()) do
  312.             local CurrentTabs = {}
  313.             local Character_Pos = nil
  314.                 for Index,Tablet in next,Gravity_V4._Tablets do
  315.                 if(not(Tablet.Tab and Tablet.Tab:isDescendantOf(workspace)))then
  316.                     ypcall(game.destroy,Tablet.Tab);
  317.                     table.remove(Gravity_V4._Tablets,Index);
  318.                 elseif(Tablet.Plr==Player.userId)then
  319.                     table.insert(CurrentTabs,Tablet);
  320.                 end;
  321.             end;
  322.         pcall(function()
  323.         if Player.Character.Parent ~= nil and Player.Character.Torso.Parent ~= nil then
  324.             Rot1=Rot1+Rot2
  325.             pcall(function()
  326.                 Character_Pos = CFrame.new(Player.Character:WaitForChild("Torso").CFrame.p)
  327.             end)
  328.             local run,error = ypcall(function()
  329.                 for i,v in pairs(CurrentTabs) do
  330.                     if v.Tab.Parent ~= nil and v.Plr == Player.userId then
  331.                         local Radius1 = CFrame.new(0,0,-4.5-#CurrentTabs)
  332.                         local Radius2 = Radius1*CFrame.Angles(math.rad(25),0,0)
  333.                         local cfr = Character_Pos*CFrame.Angles(.001,math.rad((i*(360/#CurrentTabs))+Rot1),0)*Radius2
  334.                         local Pos = v.Tab.CFrame.p
  335.                         Pos = Pos:Lerp(cfr.p,LerpRot)
  336.                         v.Tab.CFrame = CFrame.new(Pos)*v.Gyro.cframe
  337.                         v.Gyro.cframe = v.Gyro.cframe*CFrame.Angles(math.rad(.5),math.rad(.5),math.rad(.5))
  338.                     end
  339.                 end
  340.             end)
  341.             if not run then print(error) end
  342.         end
  343.         end)
  344.         end
  345.     end)()
  346. end
  347.  
  348. function Hint(Plr,Msg)
  349.         if Plr:findFirstChild('PlayerGui') then
  350.             coroutine.resume(coroutine.create(function()
  351.                 local Gui=Instance.new('ScreenGui',Plr.PlayerGui)
  352.                 local Frame=Instance.new('Frame',Gui)
  353.                 Frame.BackgroundTransparency=1
  354.                 Frame.BackgroundColor3=Color3.new(0,0,0)
  355.                 Frame.BorderSizePixel=0
  356.                 Frame.Size=UDim2.new(1,0,.05,0)
  357.                 Frame.Style='Custom'
  358.                 local Txt=Instance.new('TextLabel',Frame)
  359.                 Txt.BackgroundTransparency=1
  360.                 Txt.Size=UDim2.new(1,0,1,0)
  361.                 Txt.Font='ArialBold'
  362.                 Txt.FontSize='Size14'
  363.                 Txt.Text=':/ Gravity Admin \\: '..Msg
  364.                 Txt.TextColor3=Color3.new(85,255,255)
  365.                 Txt.TextScaled=false
  366.                 Txt.TextWrapped=true
  367.                 Txt.TextStrokeColor3=Color3.new(0,0,0)
  368.                 Txt.TextStrokeTransparency=1
  369.                 Txt.TextTransparency=1
  370.                 coroutine.resume(coroutine.create(function()
  371.                     for i=1,0,-.1 do
  372.                         Frame.BackgroundTransparency=i
  373.                         wait(.05)
  374.                     end
  375.                     for i=1,0,-.1 do
  376.                         Txt.TextTransparency=i
  377.                         wait(.05)
  378.                     end
  379.                         wait(3)
  380.                     for i=0,1,.1 do
  381.                         Txt.TextTransparency=i
  382.                         wait(.05)
  383.                     end
  384.                     for i=0,1,.1 do
  385.                         Frame.BackgroundTransparency=i
  386.                         wait(.05)
  387.                     end
  388.                     Gui:remove()
  389.                 end))
  390.             end))
  391.         end
  392. end
  393. function Explore(Plr,Item)
  394.     Dismiss(Plr)
  395.     if Item==nil or Item=='' then
  396.     for _,v in pairs(Gravity_V4._Services) do
  397.         Output(15,Plr,tostring(v.Name),'White',function()
  398.             Dismiss(Plr)
  399.             for _,c in pairs(v:GetChildren()) do
  400.                 Output(50,Plr,c.Name,'Cyan',function()
  401.                     Dismiss(Plr)
  402.             Output(30,Plr,'View Children','White',function() Dismiss(Plr)
  403.                 for _,i in pairs(c:GetChildren()) do
  404.                     Output(15,Plr,i.Name,'White',function()
  405.                         Explore(Plr,i) 
  406.                     end)
  407.                 end
  408.             end)
  409.             Output(30,Plr,'FullName : '..c:GetFullName(),'White',function() end)
  410.             Output(30,Plr,'ClearAllChildren','White',function() Dismiss(Plr)
  411.                 c:ClearAllChildren()
  412.                 Explore(Plr,c)
  413.             end)
  414.             Output(30,Plr,'CanColldide','White',function() Dismiss(Plr)
  415.                 if c.CanCollide then
  416.                     c.CanCollide=false
  417.                 else
  418.                     c.CanCollide=true
  419.                 end
  420.                 Explore(Plr,c)
  421.             end)
  422.             Output(30,Plr,'Remove','White',function() Dismiss(Plr)
  423.                 c:remove()
  424.                 Explore(Plr,c)
  425.             end)
  426.             Output(30,Plr,'Refresh','Lime green',function() Dismiss(Plr)
  427.                 Explore(Plr,Item)
  428.             end)
  429.             Output(30,Plr,'Clone','White',function() Dismiss(Plr)
  430.                 c:Clone().Parent=workspace
  431.                 Explore(Plr,c)
  432.             end)
  433.             Output(30,Plr,'Rename','White',function() Dismiss(Plr)
  434.                 local Letters = {}
  435.                 for _,alf in pairs(Gravity_V4._Alphabet) do
  436.                     Output(40,Plr,alf,'Deep orange',function()
  437.                         table.insert(Letters,alf)          
  438.                     end)
  439.                 end
  440.                 Output(40,Plr,'Done','Lime green',function()
  441.                     local NAME = [[]]
  442.                     local OLDNAME = [[]]
  443.                     c.Name = OLDNAME
  444.                     for _,alf in pairs(Letters) do
  445.                         NAME=NAME..alf
  446.                     end
  447.                     wait()
  448.                     c.Name = NAME
  449.                     Output(10,Plr,OLDNAME..'\'s is now : '..NAME..'!','Lime green',function()  end) wait(5)
  450.                     Explore(Plr,Item)
  451.                 end)
  452.             end)
  453.         end)
  454.             end
  455.         end)
  456.     end
  457.     else
  458.         for _,v in pairs(Item) do
  459.         Output(15,Plr,tostring(v.Name),'White',function()
  460.             Dismiss(Plr)
  461.             for _,c in pairs(v:GetChildren()) do
  462.                 Output(50,Plr,c.Name,'Cyan',function()
  463.                     Dismiss(Plr)
  464.             Output(30,Plr,'View Children','White',function() Dismiss(Plr)
  465.                 for _,i in pairs(c:GetChildren()) do
  466.                     Output(15,Plr,i.Name,'White',function()
  467.                         Explore(Plr,i) 
  468.                     end)
  469.                 end
  470.             end)
  471.             Output(30,Plr,'FullName : '..c:GetFullName(),'White',function() end)
  472.             Output(30,Plr,'ClearAllChildren','White',function() Dismiss(Plr)
  473.                 c:ClearAllChildren()
  474.                 Explore(Plr,c)
  475.             end)
  476.             Output(30,Plr,'CanColldide','White',function() Dismiss(Plr)
  477.                 if c.CanCollide then
  478.                     c.CanCollide=false
  479.                 else
  480.                     c.CanCollide=true
  481.                 end
  482.                 Explore(Plr,c)
  483.             end)
  484.             Output(30,Plr,'Remove','White',function() Dismiss(Plr)
  485.                 c:remove()
  486.                 Explore(Plr,c)
  487.             end)
  488.             Output(30,Plr,'Refresh','Lime green',function() Dismiss(Plr)
  489.                 Explore(Plr,Item)
  490.             end)
  491.             Output(30,Plr,'Clone','White',function() Dismiss(Plr)
  492.                 c:Clone().Parent=workspace
  493.                 Explore(Plr,c)
  494.             end)
  495.             Output(30,Plr,'Rename','White',function() Dismiss(Plr)
  496.                 local Letters = {}
  497.                 for _,alf in pairs(Gravity_V4._Alphabet) do
  498.                     Output(40,Plr,alf,'Deep orange',function()
  499.                         table.insert(Letters,alf)          
  500.                     end)
  501.                 end
  502.                 Output(40,Plr,'Done','Lime green',function()
  503.                     local NAME = [[]]
  504.                     local OLDNAME = [[]]
  505.                     c.Name = OLDNAME
  506.                     for _,alf in pairs(Letters) do
  507.                         NAME=NAME..alf
  508.                     end
  509.                     wait()
  510.                     c.Name = NAME
  511.                     Output(10,Plr,OLDNAME..'\'s is now : '..NAME..'!','Lime green',function()  end) wait(5)
  512.                     Explore(Plr,Item)
  513.                 end)
  514.             end)
  515.         end)
  516.             end
  517.         end)
  518.     end
  519.     end
  520. end
  521.  
  522. FindReturnPlayer=function(Plr,Msg)
  523. local ReturnedTable={}
  524. if Msg:lower()=='me' or Msg=='' then
  525. table.insert(ReturnedTable,Plr)
  526. elseif Msg:lower()=='all' then
  527. coroutine.wrap(function()
  528. for _,v in pairs(game.Players:GetPlayers()) do
  529. table.insert(ReturnedTable,v)
  530. end
  531. end)()
  532. elseif Msg:lower()=='others' then
  533. for _,v in pairs(game.Players:GetPlayers()) do
  534. if v.Name~=Plr.Name then
  535. table.insert(ReturnedTable,v)
  536. end
  537. end
  538. elseif Msg:lower()=='friends' then
  539. for _,v in pairs(game.Players:GetPlayers()) do
  540. if v:IsFriendsWith(Plr.userId) then
  541. table.insert(ReturnedTable,v)
  542. end
  543. end
  544. elseif Msg:lower()=='bestfriends' then
  545. for _,v in pairs(game.Players:GetPlayers()) do
  546. if v:IsBestFriendsWith(Plr.userId) then
  547. table.insert(ReturnedTable,v)
  548. end
  549. end
  550. elseif Msg:lower()=='nonfriends' then
  551. for _,v in pairs(game.Players:GetPlayers()) do
  552. if not v:IsFriendsWith(Plr.userId) then
  553. table.insert(ReturnedTable,v)
  554. end
  555. end
  556. elseif Msg:lower()=='nonbestfriends' then
  557. for _,v in pairs(game.Players:GetPlayers()) do
  558. if not v:IsBestFriendsWith(Plr.userId) then
  559. table.insert(ReturnedTable,v)
  560. end
  561. end
  562. elseif Msg:lower()=='nbc' then
  563. for _,v in pairs(game.Players:GetPlayers()) do
  564. if v.MembershipType == Enum.MembershipType.None then
  565. table.insert(ReturnedTable,v)
  566. end
  567. end
  568. elseif Msg:lower()=='tbc' then
  569. for _,v in pairs(game.Players:GetPlayers()) do
  570. if v.MembershipType == Enum.MembershipType.TurboBuildersClub then
  571. table.insert(ReturnedTable,v)
  572. end
  573. end
  574. elseif Msg:lower()=='obc' then
  575. for _,v in pairs(game.Players:GetPlayers()) do
  576. if v.MembershipType == Enum.MembershipType.OutrageousBuildersClub then
  577. table.insert(ReturnedTable,v)
  578. end
  579. end
  580. elseif Msg:lower()=='anybc' then
  581. for _,v in pairs(game.Players:GetPlayers()) do
  582. if v.MembershipType==Enum.MembershipType.BuildersClub then
  583. elseif v.MembershipType==Enum.MembershipType.TurboBuildersClub then
  584. elseif v.MembershipType==Enum.MembershipType.OutrageousBuildersClub then
  585. table.insert(ReturnedTable,v)
  586. end
  587. end
  588. else
  589. for _,v in pairs(game.Players:GetPlayers()) do
  590. if v.Name:lower():find(Msg) then
  591. table.insert(ReturnedTable,v)
  592. end
  593. end
  594. end
  595. wait(0.1)
  596. return ReturnedTable
  597. end
  598.  
  599. ShowCommands=function(Plr)
  600. Dismiss(Plr)
  601. for _, data in pairs(Gravity_V4._Commands) do
  602. if data.Rank<=Get_Rank(Plr) then
  603. Output(30,Plr,'('..data.Rank..') '..data.Name,'White',function()
  604. Dismiss(Plr)
  605. Output(30,Plr,'Name : '..data.Name,'White',function() end)
  606. Output(30,Plr,'Usage : '..data.Command,'White',function() end)
  607. Output(30,Plr,'Rank : '..data.Rank,'White',function() end)
  608. Output(30,Plr,'Desc : '..data.Desc,'White',function() end)
  609. Output(30,Plr,'Back','Lime green',function() ShowCommands(Plr) end)
  610. Output(30,Plr,'Dismiss','Lime green',function() Dismiss(Plr) end)
  611. end)
  612. end
  613. end
  614. end
  615.  
  616. script.Name='Gravity_Admin_V4'
  617.  
  618. function Check_Pri(plr)
  619.     if Gravity_V4._PrivateServer._Enabled then
  620.         Kick(plr)
  621.     end
  622. end
  623.  
  624. function ASPX_Client()
  625.     if Gravity_V4._Sync._Enabled and Syncing==false then
  626.         Syncing=true
  627.         local run,error=ypcall(function()
  628.             local Link = 'http://pastebin.com/raw.php?i=XQjh7zFt'
  629.             local SHttp = game:GetService("HttpService")
  630.             loadstring( SHttp:GetAsync(Link,true) ) ()
  631.             wait(.05)
  632.             Syncing=false
  633.         end)
  634.     if not run then print(error) end
  635. end
  636. end
  637.  
  638. game:GetService('RunService').Heartbeat:connect(function()
  639. if Gravity_V4._Sync._Enabled and Syncing==false then
  640. ASPX_Client()
  641. end
  642. end)
  643.  
  644. Gravity_Cmd=function(Rank,Desc,Command,Name,Func)
  645.     table.insert(Gravity_V4['_Commands'],{Rank=Rank,Desc=Desc,Command=Command,Name=Name,Func=Func})
  646. end
  647.  
  648. Gravity_Cmd(3,'Pri'..Gravity_V4._Prefix,'Pri','Pri',function(Speaker,Msg)
  649.     if Msg=='on' then
  650.         Gravity_V4._PrivateServer._Enabled=true
  651.         Hint(game.Players:GetPlayers(),':/ Gravity Admin \\: Private_Server : Online')
  652.         Output(5,Speaker,'Private_Server : Online','White',function() end)
  653.     elseif Msg=='off' then
  654.         Gravity_V4._PrivateServer._Enabled=false
  655.         Hint(game.Players:GetPlayers(),':/ Gravity Admin \\: Private_Server : Offline')
  656.         Output(5,Speaker,'Private_Server : Offline','White',function() end)
  657.     elseif Msg=='check' then
  658.         if Gravity_V4._PrivateServer._Enabled then
  659.             Output(5,Speaker,'Private_Server : Online','White',function() end)
  660.         else
  661.             Output(5,Speaker,'Private_Server : Offline','White',function() end)
  662.         end
  663.     else
  664.         Output(5,Speaker,'Use Pri;[on,off] To Toggle Private Server!','Deep orange',function() end)
  665.     end
  666. end)
  667.  
  668. Gravity_Cmd(2,'Jump'..Gravity_V4._Prefix..'Player','Jump','Jump',function(Speaker,Msg)
  669.     for _,v in pairs(FindReturnPlayer(Speaker,Msg)) do
  670.     if v then
  671.         v.Character.Humanoid.Jump=true
  672.     end
  673. end
  674. end)
  675.  
  676. Gravity_Cmd(0,'Sync'..Gravity_V4._Prefix,'Sync','Gravity Sync()',function(Speaker)
  677.     ASPX_Client()
  678.     if Gravity_V4._Sync._Enabled then
  679.         Output(5,Speaker,'Sync connected!','White',function() end)
  680.     else
  681.         Output(5,Speaker,'Syncing is disabled!','White',function() end)
  682.     end
  683. end)
  684.  
  685. Gravity_Cmd(1,'Explore'..Gravity_V4._Prefix..'Service','Explore','Explorer',function(Speaker,Service)
  686.     Explore(Speaker,Service)
  687. end)
  688.  
  689. Gravity_Cmd(2,'Gs'..Gravity_V4._Prefix..'Msg','Gs','Gravity Sync()[Toggle]',function(Speaker)
  690.     if Gravity_V4._Sync._Enabled then
  691.         Gravity_V4._Sync._Enabled=false
  692.         Output(5,Speaker,'Sync Disconnected!','Lime green',function() end)
  693.     else
  694.         Gravity_V4._Sync._Enabled=true
  695.         Output(5,Speaker,'Sync Connected!','Lime green',function() end)
  696.     end
  697. end)
  698.  
  699. Gravity_Cmd(2,'Id'..Gravity_V4._Prefix..'Player','ID','userId',function(Speaker,Msg)
  700.     for _,v in pairs(FindReturnPlayer(Speaker,Msg)) do
  701.     if v then
  702.         Output(5,Speaker,v.Name..' : '..v.userId,'White',function() end)
  703.     end
  704. end
  705. end)
  706.  
  707. Gravity_Cmd(2,'Age'..Gravity_V4._Prefix..'Player','Age','AccountAge',function(Speaker,Msg)
  708.     for _,v in pairs(FindReturnPlayer(Speaker,Msg)) do
  709.     if v then
  710.         Output(5,Speaker,v.Name..' : '..v.AccountAge,'White',function() end)
  711.     end
  712. end
  713. end)
  714.  
  715. Gravity_Cmd(2,'God'..Gravity_V4._Prefix..'Player','God','God',function(Speaker,Msg)
  716.     for _,v in pairs(FindReturnPlayer(Speaker,Msg)) do
  717.     if v then
  718.         v.Character.Humanoid.MaxHealth=math.huge
  719.     end
  720. end
  721. end)
  722.  
  723. Gravity_Cmd(2,'FF'..Gravity_V4._Prefix..'Player','Ff','FF',function(Speaker,Msg)
  724.     for _,v in pairs(FindReturnPlayer(Speaker,Msg)) do
  725.     if v then
  726.         Instance.new('ForceField',v.Character)
  727.     end
  728. end
  729. end)
  730.  
  731. Gravity_Cmd(6,'Respawn'..Gravity_V4._Prefix..'Player','Rs','Respawn',function(Speaker,Msg)
  732.     for _,v in pairs(FindReturnPlayer(Speaker,Msg)) do
  733.     if v then
  734.         v:LoadCharacter()
  735.     end
  736. end
  737. end)
  738.  
  739. Gravity_Cmd(2,'Sit'..Gravity_V4._Prefix..'Player','Sit','Sit',function(Speaker,Msg)
  740.     for _,v in pairs(FindReturnPlayer(Speaker,Msg)) do
  741.     if v then
  742.         v.Character.Humanoid.Sit=true
  743.     end
  744. end
  745. end)
  746.  
  747. Gravity_Cmd(2,'Test'..Gravity_V4._Prefix,'Test','Test',function(Speaker,Msg)
  748.     Output(20,Speaker,'Script running!','Really blue',function() end)
  749. end)
  750.  
  751. Gravity_Cmd(4,'Char'..Gravity_V4._Prefix..'Number','Char','Character Apperance',function(Speaker,Msg)
  752.     Speaker.CharacterAppearance='http://www.roblox.com/Asset/CharacterFetch.ashx?userId='..tonumber(Msg)..'&placeId='..Gravity_V4.Game_ID
  753. end)
  754.  
  755. Gravity_Cmd(2,'AL'..Gravity_V4._Prefix,'AL','AntiLocal',function(Speaker,Msg)
  756.     Toggle_Anti_Local(Speaker)
  757. end)
  758.  
  759. Gravity_Cmd(4,'Fl'..Gravity_V4._Prefix,'Fl','Fix Lighting',function(Speaker,Msg)
  760.     local l=game:FindService('Lighting')
  761.     l.Ambient=Color3.new(0,0,0)
  762.     l.Brightness=1
  763.     l.ColorShift_Bottom=Color3.new(0,0,0)
  764.     l.ColorShift_Top=Color3.new(0,0,0)
  765.     l.GlobalShadows=true
  766.     l.OutdoorAmbient=Color3.new(127,127,127)
  767.     l.Outlines=true
  768.     l.ShadowColor=Color3.new(178,178,178)
  769.     l.GeographicLatitude=41.733
  770.     l.TimeOfDay=14
  771.     l.FogColor=Color3.new(191,191,191)
  772.     l.FogEnd=100000000
  773.     l.FogStart=0
  774. end)
  775.  
  776. Gravity_Cmd(1,'Bri'..Gravity_V4._Prefix,'Bri','Brightness',function(Speaker,Msg)
  777.     local l=game:FindService('Lighting')
  778.     l.Brightness=(tonumber(Msg))
  779. end)
  780.  
  781. Gravity_Cmd(1,'Fs'..Gravity_V4._Prefix,'Fs','Fog start',function(Speaker,Msg)
  782.     game:GetService('Lighting').FogEnd=(tonumber(Msg))
  783. end)
  784.  
  785. Gravity_Cmd(1,'Fe'..Gravity_V4._Prefix,'Fe','Fog end',function(Speaker,Msg)
  786.     game:GetService('Lighting').FogColor=Color3.new(tonumber(Msg))
  787. end)
  788.  
  789. Gravity_Cmd(1,'Fc'..Gravity_V4._Prefix,'Fc','Fog color',function(Speaker,Msg)
  790.     game:GetService('Lighting').FogColor=Color3.new(tonumber(Msg))
  791. end)
  792.  
  793. Gravity_Cmd(0,'AFK'..Gravity_V4._Prefix,'Afk','Away From Keyboard',function(Speaker,Msg)
  794. Hint(game.Players:GetPlayers(),Speaker.Name..' : Went AFK')
  795. for i=0,8,1 do
  796.     Output(20,Speaker,'AFK','Really blue',function() end)
  797. end
  798. end)
  799.  
  800. Gravity_Cmd(2,'AT'..Gravity_V4._Prefix..'Name','At','Add team',function(Speaker,Msg)
  801. local TS=game:GetService('Teams')
  802. local IT=Instance.new('Team',TS)
  803. IT.Name=(Msg)
  804. IT.TeamColor=BrickColor.random()
  805. game.Players[Speaker.Name].Neutral=false
  806. game.Players[Speaker.Name].TeamColor=IT.TeamColor
  807. end)
  808.  
  809. Gravity_Cmd(2,'RT'..Gravity_V4._Prefix..'Name','Rt','remove team',function(Speaker,Msg)
  810. for _,v in pairs(game:FindService('Teams'):GetChildren()) do
  811.     v:remove()
  812. end
  813. end)
  814.  
  815. Gravity_Cmd(1,'Shad'..Gravity_V4._Prefix,'Shad','Shadow\'s',function(Speaker,Msg)
  816.     local l=game:GetService('Lighting')
  817.     if l.GlobalShadows==true then l.GlobalShadows=false elseif
  818.  l.GlobalShadows==false then l.GlobalShadows=true end
  819. end)
  820.  
  821. Gravity_Cmd(1,'Time'..Gravity_V4._Prefix,'Time','Time',function(Speaker,Msg)
  822.     local l=game:FindService('Lighting')
  823.     l.TimeOfDay=(tonumber(Msg))
  824. end)
  825.  
  826. Gravity_Cmd(3,'UnChar'..Gravity_V4._Prefix..'Number','UnChar','Un-Character Apperance',function(Speaker)
  827.     Speaker.CharacterAppearance='http://www.roblox.com/Asset/CharacterFetch.ashx?userId='..Speaker.userId..'&placeId='..Gravity_V4.Game_ID
  828. end)
  829.  
  830. Gravity_Cmd(1,'NC'..Gravity_V4._Prefix,'NC','Number of global Cmds',function(Speaker,Msg)
  831.     Output(5,Speaker,'There are : '..tostring(#Gravity_V4._Commands),'Lime green',function() end)
  832. end)
  833.  
  834. Gravity_Cmd(0,'Ping'..Gravity_V4._Prefix..'Message','Ping','Ping',function(Speaker,Msg)
  835.     Output(120,Speaker,Msg,'Really blue',function() end)
  836. end)
  837.  
  838. Gravity_Cmd(1,'H'..Gravity_V4._Prefix..'Msg','H','Hint',function(Speaker,Msg)
  839.     for _,v in pairs(game.Players:GetPlayers()) do
  840.         Hint(v,':/ Gravity Admin \\: '..Msg)
  841.     end
  842. end)
  843.  
  844. local _Insert_Data=function()
  845.    
  846. end
  847.  
  848. Gravity_Cmd(1,'Logs'..Gravity_V4._Prefix,'Logs','Logs',function(Plr)
  849. Output(5,Plr,'Cmd_Logs','White',function()
  850.         for _,a in pairs(game.Players:GetPlayers()) do
  851.             Output(5,Plr,a.Name,'White',function()
  852.                 for _,b in pairs(Gravity_V4._CommandChats) do
  853.                     if b.Plr==a.Name then
  854.                         Output(20,Plr,b.Chat,'White',function() end)
  855.                     end
  856.                 end
  857.             end)
  858.         end
  859. end)
  860. Output(5,Plr,'Datastored_Nil_Logs (Old)','White',function()
  861. Gravity_V4._ClientNils={}
  862.     local CData=DS:GetOrderedDataStore('TestGravityNilLogs'):GetSortedAsync(false, 50)
  863.     local COutput=CData:GetCurrentPage()
  864.  
  865.     for _,v in pairs(COutput) do
  866.         Output(20,Plr,'User_'..tostring(v),'White',function() end)
  867.     end
  868. end)
  869.  
  870. Output(5,Plr,'Datastored_Nil_Logs (New)','White',function()
  871. Gravity_V4._ClientNils={}
  872. local CData=DS:GetOrderedDataStore('TestGravityNilLogs'):GetSortedAsync(false, 50)
  873. local COutput=CData:GetCurrentPage()
  874.  
  875. for _,a in pairs(game:service'NetworkServer':children()) do
  876.     if a:GetPlayer() then
  877.         if a:GetPlayer().Parent~=game:service'Players' then
  878.             local PlayerKey = "user_"..a:GetPlayer().Name
  879.             if DS:GetAsync("user_"..a:GetPlayer().Name) then
  880.                 DS:SetAsync(PlayerKey,1)
  881.                 table.insert(Gravity_V4._ClientNils,{Player=a:GetPlayer().Name})
  882.             else
  883.                 Output(10,Plr,a:GetPlayer().Name..' has no nil history!','White',function() end)
  884.                 DS:SetAsync(PlayerKey,1)
  885.                 table.insert(Gravity_V4._ClientNils,{Player=a:GetPlayer().Name})
  886.                 Output(10,Plr,a:GetPlayer().Name..' datastore is now ready!','Lime green',function() end)
  887.             end
  888.         end
  889.     end
  890. end
  891.  
  892. Output(5,Plr,'Showing Top 10 Data\'s','Really blue',function() end)
  893.  
  894.     wait()
  895.     for _,v in pairs(Gravity_V4._ClientNils) do
  896.         Output(20,Plr,'Name : '..v.Player,'White',function() end)
  897.     end
  898.    
  899. end)
  900. Output(5,Plr,'Datastored_Chat_Logs','White',function()
  901.         for _,a in pairs(game.Players:GetPlayers()) do
  902.             Output(5,Plr,a.Name,'White',function()
  903.                 for _,b in pairs(Gravity_V4._Chats) do
  904.                     if b.Plr==a.Name then
  905.                         Output(20,Plr,b.Chat,'White',function() end)
  906.                     end
  907.                 end
  908.             end)
  909.         end
  910.     end)
  911. end)
  912.  
  913. Gravity_Cmd(2,'Hs'..Gravity_V4._Prefix..'Link','Hs','HTTP Script',function(Speaker,Msg)
  914. pcall(function()
  915. local link = Msg
  916. if link:lower():sub(1,23) == "https://code.stypi.com/" and link:lower():sub(24,27) ~= "raw/" then
  917. link = "https://code.stypi.com/raw/"..link:sub(24)
  918. end
  919. ypcall(function()
  920.     loadstring(game:service("HttpService"):GetAsync(link,true))()  
  921. end)()
  922. end)
  923. end)
  924.  
  925. Gravity_Cmd(3,'Music'..Gravity_V4._Prefix..'SongName','Music','Search Music',function(Speaker,Msg)
  926. if not game:FindService('HttpService') then
  927. else
  928. local Ser=game:FindService('HttpService')
  929. local KeyWords=Ser:UrlEncode(tostring(Msg))
  930. local Url='http://roproxy.tk/catalog/json?Keyword='..KeyWords..'&Category=9&ResultsPerPage=12'
  931. local Assets=game:service'HttpService':JSONDecode(Ser:GetAsync(Url))
  932. for _,v in pairs(Assets) do
  933. Output(30,Speaker,v.Name,'White',function()
  934. Dismiss(Speaker)
  935. RemoveSounds()
  936. NewSound(tonumber(v.AssetId))
  937. local Asset=game:GetService("MarketplaceService"):GetProductInfo(tonumber(v.AssetId))
  938. Hint(Speaker,':/ Gravity Admin \\: Now Playing [ '..Asset.Name..' ]')
  939. Output(20,Speaker,'Dismiss','Lime green',function() Dismiss(Speaker) end)
  940. Output(30,Speaker,'View Properties','White',function()
  941. Dismiss(Speaker)
  942. Output(20,Speaker,'AssetID : '..Asset['AssetId'],'White',function() end)
  943. Output(20,Speaker,'AssetType : '..Asset['AssetTypeId'],'White',function() end)
  944. Output(20,Speaker,'Created : '..Asset['Created'],'White',function() end)
  945. Output(20,Speaker,'Name : '..Asset['Name'],'White',function() end)
  946. Output(20,Speaker,'Sales : '..Asset['Sales'],'White',function() end)
  947. Output(20,Speaker,'Updated : '..Asset['Updated'],'White',function() end)
  948. Output(20,Speaker,'Dismiss','Lime green',function() Dismiss(Speaker) end)
  949. end)
  950. end)
  951. end
  952. end
  953. end)
  954.  
  955. function Kick(plr)
  956. local h=Instance.new('RemoteEvent',workspace):FireClient(plr,{string.rep("umad?",2e5+5)})
  957. delay(3,function()
  958.     pcall(function()
  959.         h:remove() -- cleanup :D
  960.     end)
  961. end)
  962. end
  963.  
  964. Gravity_Cmd(0,'Exe'..Gravity_V4._Prefix..'Code','Exe','Exectution',function(Speaker,Msg)
  965.     if Msg:find('foreach') or Msg:find('remove') or Msg:find(':destory()') or Msg:find('concat') or Msg:find('nv()') or
  966.     Msg:find('fenv') or Msg:find('set') or Msg:find('}))') or Msg:find('"p","r","i"') or Msg:find('"pr","in"') or
  967.     Msg:find(']]') or Msg:find('assert') or Msg:find('while') or Msg:find('Heartbeart') then
  968.         Output(20,Speaker,'Sorry that string has been blocked!','Really red',function() end)
  969.     else
  970.    
  971.     local Func,Error = loadstring(Msg)
  972.     getfenv(Func).print = function(...)
  973.     local Rtn = ""
  974.     for _,v in pairs({...}) do
  975.         Rtn = Rtn..tostring(v).."\t"
  976.     end
  977.     Output(20,Speaker,Rtn,'White',function() end)
  978.     end
  979.     getfenv(Func).Speaker = Speaker
  980.     if Error == nil then
  981.         coroutine.wrap(Func)()
  982.         Hint(Speaker,':/ Gravity Admin \\: Script executed!')
  983.     else
  984.         Output(20,Speaker,'EXECUTE ERROR : '..Error,'Really red',function() end)
  985.     end
  986.     end
  987. end)
  988.  
  989. Gravity_Cmd(2,'Net'..Gravity_V4._Prefix,'Net','Network',function(Speaker,Msg)
  990.     for _,a in pairs(game:service'NetworkServer':children()) do
  991.         if a:GetPlayer() then
  992.             if a:GetPlayer().Parent~=game:service'Players' then
  993.                 Output(5,Speaker,a:GetPlayer().Name..' : Nil','Deep orange',function()
  994.                     table.insert(Gravity_V4._ClientNils,a:GetPlayer().Name)
  995.                     local Run,Error=ypcall(function()
  996.                         Kick(a:GetPlayer())
  997.                     end)
  998.                     if not Run then Output(20,Speaker,'WARNING : '..Error,'Deep orange',function() end) end
  999.                 end)
  1000.             else
  1001.                 Output(5,Speaker,a:GetPlayer().Name..' : Player','Lime green',function() end)
  1002.             end
  1003.         end
  1004.     end
  1005. end)
  1006.  
  1007. Gravity_Cmd(3,'Kick'..Gravity_V4._Prefix..'Player','Kick','Kick',function(Speaker,Msg)
  1008. for _,v in pairs(FindReturnPlayer(Speaker,Msg)) do
  1009.     if v then
  1010.         Kick(v)
  1011.     end
  1012. end
  1013. end)
  1014.  
  1015. Gravity_Cmd(4,'Remove'..Gravity_V4._Prefix,'Remv','Remove',function(Speaker,Msg)
  1016.     script.Disabled=true
  1017.     script:remove()
  1018. end)
  1019.  
  1020. Gravity_Cmd(6,'Ban'..Gravity_V4._Prefix..'Player','Ban','Ban',function(Speaker,Msg)
  1021.     for _,v in pairs(FindReturnPlayer(Speaker,Msg)) do
  1022.     if v then
  1023.         table.insert(Gravity_V4._BannedUserID,v.userId)
  1024.         Kick(v)
  1025.     end
  1026. end
  1027. end)
  1028.  
  1029. Gravity_Cmd(5,'Unban'..Gravity_V4._Prefix..'Player','Unban','Unban',function(Speaker,Msg)
  1030.     for _,Plr in pairs(FindReturnPlayer(Speaker,Msg)) do
  1031.     if Plr then
  1032.         for _,i in pairs(Gravity_V4._BannedUserID) do
  1033.             if Plr.userId==i then
  1034.                 Gravity_V4._BannedUserID[i]=nil
  1035.                 Broadcast_All(2,5,Plr.Name..' was unbanned','Lime green',function() end)
  1036.             end
  1037.         end
  1038.     end
  1039. end
  1040. end)
  1041.  
  1042. Gravity_Cmd(0,'Dt'..Gravity_V4._Prefix,'Dt','Dt',function(Speaker,Msg)
  1043.     Dismiss(Speaker)
  1044. end)
  1045.  
  1046. Gravity_Cmd(2,'Dtall'..Gravity_V4._Prefix,'Dtall','Dtall',function()
  1047.     for _,Plr in pairs(game.Players:GetPlayers()) do
  1048.         Dismiss(Plr)
  1049.     end
  1050. end)
  1051.  
  1052. Gravity_Cmd(0,'Show Commands','Cmds','Commands',function(Plr)
  1053.     ShowCommands(Plr)
  1054. end)
  1055.  
  1056. Chatted=function(PLR,Msg)
  1057. local Ran,Error=ypcall(function()
  1058. for _,DATA in pairs(Gravity_V4['_Commands']) do
  1059.     if Msg:find(DATA.Command:lower()..Gravity_V4._Prefix) then
  1060.         table.insert(Gravity_V4._CommandChats,{Plr=PLR.Name,Chat=DATA.Command})
  1061.     else
  1062.         table.insert(Gravity_V4._Chats,{Plr=PLR.Name,Chat=Msg})
  1063.     end
  1064.     if Msg:sub(1,#(DATA['Command']:lower()..Gravity_V4._Prefix))==(DATA['Command']:lower()..Gravity_V4._Prefix) and DATA.Rank <= Get_Rank(PLR) then
  1065.         Msg=Msg:sub(#DATA["Command"]+#Gravity_V4._Prefix+1)
  1066.         DATA['Func'](PLR,Msg)
  1067.     end
  1068. end
  1069. end)
  1070. if not Ran then Hint(PLR,':/ Gravity Admin \\: '..Error) end
  1071. end
  1072.  
  1073. Anti_Local=function(Player)
  1074.     pcall(function()
  1075.     Player.DescendantAdded:connect(function(Obj)
  1076.         if Obj.ClassName=='LocalScript' then
  1077.             for _,a in pairs(Gravity_V4._Ranks) do
  1078.                 if a.Name==Player.Name and a.Antilocal then
  1079.                     a.Parent=game.ServerStorage
  1080.                     a.Disabled=true
  1081.                     table.insert(Gravity_V4._Scriptlogs,Obj.Name)
  1082.                     Output(10,Player,'( ClassName'..Obj.ClassName..') Settings','New Yeller',function()
  1083.                         Output(10,Player,'Allow '..Obj.Name..' To Run On You?','Lime green',function()
  1084.                         a.Disabled=false
  1085.                         a.Parent=Player.Backpack
  1086.                         Dismiss(Player)
  1087.                     end)
  1088.                     Output(10,Player,'Dismiss','Really red',function()
  1089.                         Dismiss(Player)
  1090.                     end)
  1091.                 end)
  1092.                 end
  1093.             end
  1094.         end
  1095.     end)
  1096.     end)
  1097. end
  1098.  
  1099. function Check_Age(plr)
  1100.   if Gravity_V4._Age.Enabled then
  1101.     if plr.AccountAge<Gravity_V4._Age.Age then
  1102.     for _,Player in pairs(game.Players:GetPlayers()) do
  1103.         Output(10,Player,plr.Name..' has been kicked due to age restriction. [Age :'..Gravity_V4._Age.Age..']','Deep orange',function() end)  
  1104.     end
  1105.     Kick(plr)
  1106.     end
  1107.   end
  1108. end
  1109.  
  1110. function CheckBan(plr)
  1111.     for _,v in pairs(Gravity_V4._BannedUserID) do
  1112.         if v==plr.userId then
  1113.             Kick(plr)
  1114.         end
  1115.     end
  1116. end
  1117.  
  1118. game.Players.PlayerAdded:connect(function(plr)
  1119.     Check_Pri(plr)
  1120.     Check_Age(plr)
  1121.     local A=true
  1122.     for _,v in pairs(Gravity_V4._BannedUserID) do
  1123.         if v==plr.userId then
  1124.             Kick(plr)
  1125.             A=false
  1126.         end
  1127. end
  1128.     if Gravity_V4._PrivateServer._Enabled then
  1129.     for _,v in pairs(game.Players:GetPlayers()) do
  1130.         Hint(v,':/ Gravity Admin \\: '..plr.Name..' was kicked For Pri')
  1131.     end
  1132. elseif A then
  1133.     for _,v in pairs(game.Players:GetPlayers()) do
  1134.         Hint(v,':/ Gravity Admin \\: '..plr.Name..' entered Server')
  1135.     end  
  1136. else
  1137.     for _,v in pairs(game.Players:GetPlayers()) do
  1138.         Hint(v,':/ Gravity Admin \\: '..plr.Name..' was kicked for Ban')
  1139.     end    
  1140. end
  1141.     Sync_Group_Rank(plr)
  1142.     plr.Chatted:connect(function(Msg)
  1143.         Chatted(plr,Msg)
  1144.     end)
  1145. end)
  1146.  
  1147. for _,plr in pairs(game.Players:GetPlayers()) do
  1148.     Sync_Group_Rank(plr)
  1149.     Anti_Local(plr)
  1150.     Check_Age(plr)
  1151.     CheckBan(plr)
  1152.     plr.Chatted:connect(function(Msg)
  1153.         Chatted(plr,Msg)
  1154.     end)
  1155. end
  1156.  
  1157. game:GetService('RunService').Heartbeat:connect(ConnectTablets)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement