Advertisement
V3rmLua33

Gravity v4.1

Mar 26th, 2015
502
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 24.45 KB | None | 0 0
  1. -- // Gravity Version : 4, Made by jillmiles1. \\ --
  2. -- // Please do not re-disitrubte and/or distribute. \\ --
  3. _Rot1 = 1
  4. _Rot2 = .5
  5. _LerpRot = .06
  6. _GameDSS = nil
  7.  
  8. if (game.PlaceId==20279777) then
  9.     _GameDSS = "[Gravity] banlist1"
  10. elseif (game.PlaceId==178350907) then
  11.     _GameDSS = "[Gravity] banlist1"
  12. else
  13.     _GameDSS = "[Gravity] banlist1"
  14. end
  15.  
  16. local Gravity_V4
  17.  
  18.  
  19. Gravity_V4 = {
  20.     _Version = "Version 4.1.11",
  21.     _GroupID = string.reverse(7949911),
  22.     _Logo = "",
  23.     _ScriptName = "Gravity_Version : 4.Unknown",
  24.     _CommandSettings={
  25.         Commands={};
  26.         Tablets={};
  27.         Prefix=';';
  28.         Suffiex=';';
  29.     },
  30.     _Debounces={
  31.         HttpEnabled = false;
  32.         PrivateServerEnabled = false;
  33.         CSound = false;
  34.         AgeEnabled = false;
  35.         Tablet=false;
  36.     },
  37.     _Logs = {
  38.         ChatsLogs = {};
  39.         CommandsLogs = {};
  40.         Scriptlogs = {};
  41.     },
  42.     _BadWords={
  43.         'manualsurfacejointinstance';
  44.     },
  45.     _DATASTORESync = {
  46.         ChatLink = "Gravity Version 4 [Chat]";
  47.         BanlistLink = _GameDSS;
  48.     },
  49.     _Banned = {},
  50.     _PrivateServer = {},
  51.     _Sound={
  52.         Time = 0,
  53.         SID = 0,
  54.     },
  55.     _Services = {
  56.         Workspace = game:GetService('Workspace');
  57.         Players = game:GetService('Players');
  58.         Lighting = game:GetService('Lighting');
  59.         ScriptService = game:GetService('ServerScriptService');
  60.         ServerStorage = game:GetService('ServerStorage');
  61.         SGui = game:GetService('StarterGui');
  62.         SPack = game:GetService('StarterPack');
  63.         Teams = game:GetService('Teams');
  64.         Debris = game:GetService('Debris');
  65.         RunService = game:GetService('RunService');
  66.         HTTP = game:GetService('HttpService');
  67.     },
  68.     _Alphabet = {
  69.         "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"
  70.     },
  71.     _AgeRes = {
  72.         AgeNum = 180;
  73.     },
  74.     _HTTPConnections={
  75.         CheckUpdate = function() pcall(function()
  76.             local Link = "http://pastebin.com/raw.php?i=A902HE4H"
  77.             local NewCode=getfenv(loadstring(Gravity_V4._Services.HTTP:GetAsync(Link,true))())
  78.             NewCode.Disabled=true          
  79.            
  80.             if NewCode:FindFirstChild('Version').Value >= script:FindFirstChild('Version').Value then
  81.                 print'New update avaible!'
  82.                 _G.GravityHere=false
  83.                 NewCode.Parent=workspace
  84.                 NewCode.Disabled=false
  85.                 script.Disabled=true
  86.                 script:remove()
  87.             end
  88.         end) end
  89.         ;
  90.     },
  91.     _Connections = {
  92.         Output = function(time,Player,Text,Color,Func)
  93.             if not Player.Character then return false end
  94.                 local Part=Instance.new('Part',script) Part.Size=Vector3.new(0,0,0) Part.BrickColor=BrickColor.new(Color) Part.Material='Plastic' Part.Transparency=1 Part.Anchored=true Part.Locked=true Part.CanCollide=false Part.FormFactor='Custom' Part.BottomSurface='Smooth' Part.TopSurface='Smooth'
  95.                 pcall(function() Part.CFrame=Player.Character.Torso.CFrame*CFrame.Angles(0,5,1) end)
  96.                 pcall(function() Part.Name='TT_'..Player.Name end)
  97.                 local Light=Instance.new('PointLight',Part)
  98.                 local Click=Instance.new('ClickDetector',Part) Click.MaxActivationDistance=math.huge
  99.                 local Box=Instance.new('SelectionBox',Part) Box.Color=Part.BrickColor Box.Adornee=Part Box.Transparency=1
  100.                 local BodyGyro=Instance.new('BodyGyro',Part)
  101.                 local BG=Instance.new('BillboardGui',Part) BG.ExtentsOffset=Vector3.new(0,2,0) BG.Size=UDim2.new(0,200,0,200)
  102.                 local TextLabel=Instance.new('TextLabel',BG) TextLabel.BackgroundTransparency=1 TextLabel.BorderSizePixel=0 TextLabel.Size=UDim2.new(1,0,1,0) TextLabel.Font='ArialBold' TextLabel.FontSize='Size18' TextLabel.TextColor3=Color3.new(0,0,0) TextLabel.TextScaled=false TextLabel.TextStrokeColor3=Color3.new(255,255,255) TextLabel.TextStrokeTransparency=1 TextLabel.TextWrapped=true
  103.                 local HoverOver = nil
  104.                 TextLabel.Text=Text
  105.                 Click.MouseClick:connect(function(plr)
  106.                     if plr.userId==Player.userId then
  107.                         Gravity_V4._Connections.Dismiss(Player)
  108.                         local a,b = ypcall(function() Func=Func Func() end) if not a then return end
  109.                     end
  110.                 end)
  111.                 Click.MouseHoverEnter:connect(function(plr)
  112.                     if plr.userId==Player.userId and not HoverOver then
  113.                         HoverOver=true
  114.                         for i = Part.Transparency, .8, .1 do
  115.                             Box.Transparency=Box.Transparency-.08
  116.                             Part.Transparency=Part.Transparency-.01
  117.                             game:GetService('RunService').Heartbeat:wait()
  118.                         end
  119.                     end
  120.                 end)
  121.                 Click.MouseHoverLeave:connect(function(plr)
  122.                     if plr.userId==Player.userId and HoverOver then
  123.                         HoverOver=false
  124.                         for i = Part.Transparency, .8, .1 do
  125.                             Box.Transparency=Box.Transparency+.08
  126.                             Part.Transparency=Part.Transparency+.01
  127.                             game:GetService('RunService').Heartbeat:wait()
  128.                         end
  129.                     end
  130.                 end)
  131.                 spawn(function()
  132.                     delay(time,function()
  133.                         spawn(function()
  134.                             for _ = 0, .3, 0.01 do
  135.                                 TextLabel.TextStrokeTransparency = TextLabel.TextStrokeTransparency + .1
  136.                                 TextLabel.TextTransparency = TextLabel.TextTransparency + .1
  137.                                     Part.Size = Part.Size - Vector3.new(.1, .1, .1)
  138.                                     Box.Transparency = Box.Transparency + .1
  139.                                     Part.Transparency = Part.Transparency + .05
  140.                                 game['Run Service'].Heartbeat:wait()   
  141.                             end
  142.                             Part:remove()
  143.                             return
  144.                         end)
  145.                     end)
  146.                 end)
  147.                 spawn(function()
  148.                     if not Gravity_V4._Debounces.Tablet then
  149.                         Part.Size=Vector3.new(0,0,0)
  150.                         for _ = 0, 2, 0.1 do
  151.                             Part.Size = Part.Size + Vector3.new(.1, .1, .1)
  152.                             Box.Transparency = Box.Transparency - .03
  153.                             Part.Transparency = Part.Transparency - .032
  154.                             TextLabel.TextStrokeTransparency = TextLabel.TextStrokeTransparency - .07
  155.                             game:GetService('RunService').Heartbeat:wait()
  156.                         end
  157.                     else
  158.                         Part.Size=Vector3.new(0,0,.2)
  159.                         for _ = 0, 1, 0.1 do
  160.                             Part.Size = Part.Size + Vector3.new(0.23, 0.35, 0)
  161.                             Box.Transparency = Box.Transparency + .034
  162.                             Part.Transparency = Part.Transparency - .039
  163.                             TextLabel.TextStrokeTransparency = TextLabel.TextStrokeTransparency - .05
  164.                             wait()
  165.                         end
  166.                     end
  167.                 end)
  168.             --------
  169.             table.insert(Gravity_V4._CommandSettings.Tablets,{Plr=Player.userId,Tab=Part,Gyro=BodyGyro,Box=Box,Text=TextLabel})
  170.         end
  171.         ;
  172.         GetPlayerTablets=function(plr)
  173.             local Table={}
  174.             for i,v in pairs (Gravity_V4._CommandSettings.Tablets) do
  175.                 if v.Plr==plr.userId then
  176.                     coroutine.resume(coroutine.create(function()
  177.                         table.insert(Table,v)
  178.                     end))
  179.                 end        
  180.             end
  181.             game["Run Service"].Heartbeat:wait()
  182.             return Table
  183.         end
  184.         ;
  185.         Dismiss=function(plr)
  186.             table.foreach(Gravity_V4._Connections.GetPlayerTablets(plr),function(i,v)
  187.                 spawn(function()
  188.                     for _ = 0, .3, 0.01 do
  189.                         v.Text.TextStrokeTransparency = v.Text.TextStrokeTransparency + .1
  190.                         v.Text.TextTransparency = v.Text.TextTransparency + .1
  191.                         v.Tab.Size = v.Tab.Size - Vector3.new(.1, .1, .1)
  192.                         v.Box.Transparency = v.Box.Transparency + .1
  193.                         v.Tab.Transparency = v.Tab.Transparency + .05
  194.                         game['Run Service'].Heartbeat:wait()   
  195.                     end
  196.                     v.Tab:remove()
  197.                     return
  198.                 end)
  199.             end)   
  200.         end
  201.         ;
  202.         ConnectTabs = function()
  203.         spawn(function()
  204.         _Rot1=_Rot1-_Rot2
  205.         coroutine.resume(coroutine.create(function()
  206.         for _, Player in pairs(game.Players:GetPlayers()) do
  207.             local CurrentTabs = {}
  208.             local Character_Pos = nil
  209.                 for Index,Tablet in next,Gravity_V4._CommandSettings.Tablets do
  210.                 if(not(Tablet.Tab and Tablet.Tab:isDescendantOf(workspace)))then
  211.                     ypcall(game.destroy,Tablet.Tab);
  212.                     table.remove(Gravity_V4._CommandSettings.Tablets,Index);
  213.                 elseif Tablet.Plr == Player.userId then
  214.                     table.insert(CurrentTabs,Tablet);
  215.                 end;
  216.             end;
  217.         if Player.Character and Player.Character.Torso then
  218.             spawn(function()
  219.                 pcall(function() Character_Pos = CFrame.new(Player.Character:WaitForChild("Torso").CFrame.p) end)
  220.                 coroutine.resume(coroutine.create(function()
  221.                 for i,v in pairs(CurrentTabs) do
  222.                     if v.Tab.Parent ~= nil and v.Plr == Player.userId then
  223.                         local Radius1 = CFrame.new(0,math.sin(tick()),-3.35-#CurrentTabs)
  224.                         local rad = math.rad(i*(360/#CurrentTabs)+_Rot1)
  225.                         local cfr = Character_Pos*CFrame.Angles(0,rad,0)*Radius1
  226.                         local Pos = v.Tab.CFrame.p
  227.                         Pos = Pos:Lerp(cfr.p,_LerpRot)
  228.                         v.Tab.CFrame = CFrame.new(Pos)*v.Gyro.cframe
  229.                         if not Gravity_V4._Debounces.Tablet then
  230.                             v.Gyro.cframe = v.Gyro.cframe*CFrame.Angles(0,math.rad(math.sin(time()/1.2)),0)
  231.                         else
  232.                             v.Gyro.cframe = v.Gyro.cframe
  233.                         end
  234.                     end
  235.                 end
  236.                 end))
  237.                 end)
  238.             end
  239.         end
  240.         end))
  241.         end)
  242.         end
  243.         ;
  244.         AddSound = function(ID,Time)
  245.             if Time==nil then Time=0 end
  246.             Gravity_V4._Sound.SID = ID
  247.             Gravity_V4._Sound.Time = Time
  248.             Gravity_V4._Sound.CSound = true
  249.             for _,v in next, workspace:GetChildren() do
  250.                 if v.ClassName=='Sound' then
  251.                     v.Looped=false
  252.                     v.PlayOnRemove=false
  253.                     v:Pause()
  254.                 end
  255.             end
  256.             local s = Instance.new('Sound',workspace)
  257.             s.SoundId = 'rbxassetid://'..ID
  258.             s.TimePosition = Time
  259.             s.Volume=1
  260.             s.Looped=true
  261.             wait()
  262.             s:Play()
  263.             s.Changed:connect(function()
  264.                 if not workspace:FindFirstChild(s.Name) then
  265.                     Gravity_V4._Connections.AddSound(ID,Gravity_V4._Sound.Time)
  266.                 end
  267.             end)
  268.             delay(wait(),function()
  269.                 if workspace:FindFirstChild(s.Name) then
  270.                     while wait() do
  271.                         Gravity_V4._Sound.Time = workspace:FindFirstChild(s.Name).TimePosition
  272.                     end
  273.                 end
  274.             end)
  275.         end
  276.         ;
  277.         Broadcast = function(time,Rank,Text,Color,Func)
  278.             for _,Players in pairs(game.Players:GetPlayers()) do
  279.                 if Players:GetRankInGroup(Gravity_V4._GroupID) >= Rank then
  280.                     Gravity_V4._Connections.Output(time,Players,Text,Color,Func)
  281.                 end
  282.             end
  283.         end
  284.         ;
  285.     AddPlayers=function(Plr,Msg)
  286.     local ReturnedTable={}
  287.     if Msg:lower()=='me' or Msg=='' then
  288.     table.insert(ReturnedTable,Plr)
  289.     elseif Msg:lower()=='all' then
  290.     coroutine.wrap(function()
  291.     for _,v in pairs(game.Players:GetPlayers()) do
  292.     table.insert(ReturnedTable,v)
  293.     end
  294.     end)()
  295.     elseif Msg:lower()=='others' then
  296.     for _,v in pairs(game.Players:GetPlayers()) do
  297.     if v.Name~=Plr.Name then
  298.     table.insert(ReturnedTable,v)
  299.     end
  300.     end
  301.     elseif Msg:lower()=='friends' then
  302.     for _,v in pairs(game.Players:GetPlayers()) do
  303.     if v:IsFriendsWith(Plr.userId) then
  304.     table.insert(ReturnedTable,v)
  305.     end
  306.     end
  307.     elseif Msg:lower()=='bestfriends' then
  308.     for _,v in pairs(game.Players:GetPlayers()) do
  309.     if v:IsBestFriendsWith(Plr.userId) then
  310.     table.insert(ReturnedTable,v)
  311.     end
  312.     end
  313.     elseif Msg:lower()=='nonfriends' then
  314.     for _,v in pairs(game.Players:GetPlayers()) do
  315.     if not v:IsFriendsWith(Plr.userId) then
  316.     table.insert(ReturnedTable,v)
  317.     end
  318.     end
  319.     elseif Msg:lower()=='nonbestfriends' then
  320.     for _,v in pairs(game.Players:GetPlayers()) do
  321.     if not v:IsBestFriendsWith(Plr.userId) then
  322.     table.insert(ReturnedTable,v)
  323.     end
  324.     end
  325.     elseif Msg:lower()=='nbc' then
  326.     for _,v in pairs(game.Players:GetPlayers()) do
  327.     if v.MembershipType == Enum.MembershipType.None then
  328.     table.insert(ReturnedTable,v)
  329.     end
  330.     end
  331.     elseif Msg:lower()=='tbc' then
  332.     for _,v in pairs(game.Players:GetPlayers()) do
  333.     if v.MembershipType == Enum.MembershipType.TurboBuildersClub then
  334.     table.insert(ReturnedTable,v)
  335.     end
  336.     end
  337.     elseif Msg:lower()=='obc' then
  338.     for _,v in pairs(game.Players:GetPlayers()) do
  339.     if v.MembershipType == Enum.MembershipType.OutrageousBuildersClub then
  340.     table.insert(ReturnedTable,v)
  341.     end
  342.     end
  343.     elseif Msg:lower()=='anybc' then
  344.     for _,v in pairs(game.Players:GetPlayers()) do
  345.     if v.MembershipType==Enum.MembershipType.BuildersClub then
  346.     elseif v.MembershipType==Enum.MembershipType.TurboBuildersClub then
  347.     elseif v.MembershipType==Enum.MembershipType.OutrageousBuildersClub then
  348.     table.insert(ReturnedTable,v)
  349.     end
  350.     end
  351.     else
  352.     for _,v in pairs(game.Players:GetPlayers()) do
  353.     if v.Name:lower():find(Msg) then
  354.     table.insert(ReturnedTable,v)
  355.     end
  356.     end
  357.     end
  358.     wait(0.1)
  359.     return ReturnedTable
  360.     end
  361.     ;
  362.     AddCommand = function(Rank,Desc,Command,Name,Func)
  363.         table.insert(Gravity_V4._CommandSettings.Commands,{Rank=Rank,Desc=Desc,Command=Command,Name=Name,Func=Func})
  364.     end
  365.     ;
  366.     Chatted=function(PLR,Msg)
  367.         coroutine.resume(coroutine.create(function()
  368.         spawn(function()
  369.         local Ran,Error=ypcall(function()
  370.         for _,DATA in pairs(Gravity_V4._CommandSettings.Commands) do
  371.             if Msg:sub(1,#(DATA['Command']:lower()..';'))==(DATA['Command']:lower()..';') then
  372.                 if PLR:GetRankInGroup(Gravity_V4._GroupID) >= DATA.Rank then
  373.                     Gravity_V4._Connections.Dismiss(PLR)
  374.                     Msg=Msg:sub(#DATA["Command"]+#';'+1)
  375.                     local rf,ef=ypcall(function()
  376.                         DATA['Func'](PLR,Msg)
  377.                     end)
  378.                     if not rf then
  379.                         Gravity_V4._Connections.Broadcast(10,2,'[Gravity] CMD-ERROR : '..ef,'Deep orange',function() end)
  380.                     end
  381.                 else
  382.                     Gravity_V4._Connections.Dismiss(PLR)
  383.                     Gravity_V4._Connections.Output(10,PLR,'[Gravity] Your rank is to low!','Really red',function() end)
  384.                 end
  385.             end
  386.         end
  387.         end)
  388.         end)
  389.     end))
  390.     end
  391.     ;
  392.     Kick = function(plr)
  393.         local h=Instance.new('RemoteEvent',workspace):FireClient(plr,{string.rep("umad?",2e5+5)})
  394.         delay(1,function()
  395.             pcall(function() workspace.RemoteEvent:remove() end)
  396.         end)
  397.     end
  398.     ;
  399.     Check_Age = function(plr)
  400.         if Gravity_V4._Debounces.AgeEnabled then
  401.             if plr.AccountAge<Gravity_V4._AgeRes.AgeNum then
  402.                 for _,Player in pairs(game.Players:GetPlayers()) do
  403.                     Gravity_V4._Connections.Output(7,Player,plr.Name..' has been kicked due to age restriction. [Age :'..Gravity_V4._AgeRes.AgeNum..']','Deep orange',function() end)
  404.                 end
  405.             Gravity_V4._Connections.Kick(plr)
  406.             end
  407.          end
  408.     end
  409.     ;
  410.     GetCommands = function(Rk)
  411.         if Rk==nil or Rk=='' then Rk=0 end
  412.         local CMDS = {}
  413.         for i,v in next,(Gravity_V4._CommandSettings.Commands) do
  414.             if v.Rank <= Rk then
  415.                 table.insert(CMDS,v)
  416.             end
  417.         end
  418.         wait()
  419.         return CMDS
  420.     end
  421.     ;
  422.     ShowCommands = function(Plr)
  423.     spawn(function()
  424.     Gravity_V4._Connections.Output(10,Plr,'Your rank is: '..Plr:GetRankInGroup(Gravity_V4._GroupID),'Really blue',function() end)
  425.     for Num = 0,8,1 do
  426.         Gravity_V4._Connections.Output(60,Plr,'Rank: '..Num,'White',function()
  427.             table.foreach(Gravity_V4._Connections.GetCommands(Num),function(i,v)
  428.                 Gravity_V4._Connections.Output(60,Plr,'Name: '..v.Name,'White',function()
  429.                     Gravity_V4._Connections.Output(60,Plr,'Usage: '..v.Desc,'White',function() end)
  430.                     Gravity_V4._Connections.Output(60,Plr,tostring(v.Func),'White',function() end)
  431.                     Gravity_V4._Connections.Output(60,Plr,'Rank: '..v.Rank,'White',function() end)
  432.                     Gravity_V4._Connections.Output(60,Plr,'Run function','Really blue',function()
  433.                         if Plr:GetRankInGroup(Gravity_V4._GroupID) >= v.Rank then
  434.                             local r,e = ypcall(function()
  435.                                 v.Func(Plr,'')
  436.                             end)
  437.                             if not r then
  438.                                 Gravity_V4._Connections.Output(7,Plr,'[Gravity] CMD-ERROR: '..e,'Deep orange',function() end)
  439.                             end
  440.                         else
  441.                             Gravity_V4._Connections.Output(7,Plr,'Your rank is to low!','Really red',function() end)
  442.                         end
  443.                     end)
  444.                     Gravity_V4._Connections.Output(60,Plr,'Dismiss','Lime green',function() Gravity_V4._Connections.Dismiss(Plr) end)
  445.                 end)
  446.                 end)
  447.             end)
  448.     end
  449.     end)
  450.     end
  451.     ;
  452.     CheckBan = function(plr,justbanned)
  453.     local PlayerKey = "BannedUser_"..(plr.userId)
  454.     local DSB = game:GetService("DataStoreService"):GetOrderedDataStore(Gravity_V4._DATASTORESync.BanlistLink)
  455.  
  456.     if justbanned and not (plr:IsInGroup(Gravity_V4._GroupID)) then
  457.         Gravity_V4._Connections.Broadcast(5,1,plr.Name..' has been kicked due to banlist','Really red',nil)
  458.         Gravity_V4._Connections.Kick(plr)
  459.     elseif not justbanned and not (plr:IsInGroup(Gravity_V4._GroupID)) and DSB:GetAsync(PlayerKey) then
  460.         DSB:UpdateAsync(PlayerKey, function(a)
  461.             local b = (a or 0)
  462.             b = b + 1
  463.             return b
  464.         end)
  465.         Gravity_V4._Connections.Broadcast(5,1,plr.Name..' has been kicked due to banlist','Really red',nil)
  466.         Gravity_V4._Connections.Kick(plr)
  467.     end
  468.     end
  469.     ;
  470.     _CheckWord = function(plr,msg)
  471.         for _,v in pairs(Gravity_V4._BadWords) do
  472.             if msg:find(v:lower()) then
  473.                 if not plr:IsInGroup(Gravity_V4._GroupID) then
  474.                     Gravity_V4._Connections.Broadcast(5,1,plr.Name..' has been kicked due to chatting ['..tostring(v)..']','Really red',nil)
  475.                     Gravity_V4._Connections.Kick(plr)
  476.                 end
  477.             end
  478.         end
  479.     end
  480.     ;
  481.     _Addban = function(plr,speaker)
  482.         if not (plr:IsInGroup(Gravity_V4._GroupID)) then
  483.             local PlayerKey = ("BannedUser_"..(plr.userId))
  484.             local DSB = game:GetService("DataStoreService"):GetOrderedDataStore(Gravity_V4._DATASTORESync.BanlistLink)
  485.             DSB:UpdateAsync(PlayerKey, function(a)
  486.                 local b = (a or 0)
  487.                 b = b + 1
  488.                 return b
  489.             end)
  490.         else
  491.             Gravity_V4._Connections.Output(7,Speaker,'Cannot ban this user','Really red',function() end)
  492.         end
  493.     end
  494.     ;
  495.     _ShowBanlist=function(plr)
  496.         local CDS = game:GetService("DataStoreService"):GetOrderedDataStore(Gravity_V4._DATASTORESync.BanlistLink)
  497.         local CPage = 1
  498.         local Page = CDS:GetSortedAsync(false, 15)
  499.        
  500.         function Update()
  501.         Gravity_V4._Connections.Output(10,plr,'Current page : '..CPage,'Lime green',function() end)
  502.         Gravity_V4._Connections.Output(10,plr,'Next page','Lime green',function()
  503.             if Page.IsFinished then
  504.                 Page:AdvanceToNextPageAsync()
  505.                 CPage = CPage + 1
  506.                 Update()
  507.             end
  508.         end)
  509.         for k,v in pairs(Page:GetCurrentPage()) do
  510.             Gravity_V4._Connections.Output(20,plr,'UserId : '..tostring(v.key),'White',function()
  511.                 Gravity_V4._Connections.Output(20,plr,'UserId : '..tostring(v.key),'White',function() end)
  512.                 Gravity_V4._Connections.Output(20,plr,'Joins on ban : '..tostring(v.value),'White',function() end)
  513.             end)
  514.         end
  515.         end
  516.        
  517.         Update()
  518.     end
  519.     }
  520. }
  521. local IntVersion=Instance.new('IntValue',script)
  522. IntVersion.Name='Version'
  523. IntVersion.Value=Gravity_V4._Version
  524.  
  525. if not _G.GravityHere then _G.GravityHere=true else script.Disabled=true end
  526. _G.GravityHere=true
  527.  
  528. Gravity_V4._Connections.AddCommand(4,'Sban;<NO MSG>','Sban','Show Ban\'s',function(Speaker)
  529.     Gravity_V4._Connections._ShowBanlist(Speaker)
  530. end)
  531.  
  532. Gravity_V4._Connections.AddCommand(4,'Ban;<PLAYER NAME>','Ban','Ban',function(Speaker,Msg)
  533.     for _,v in pairs(Gravity_V4._Connections.AddPlayers(Speaker,Msg)) do
  534.         Gravity_V4._Connections.Output(7,Speaker,'Ban user : '..v:GetFullName(),'Deep orange',function()
  535.             Gravity_V4._Connections._Addban(v,Speaker)
  536.             Gravity_V4._Connections.CheckBan(v,true)
  537.         end)
  538.     end
  539. end)
  540.  
  541. Gravity_V4._Connections.AddCommand(1,'A;<NO MSG>','A','Age Kick',function(Speaker)
  542.     if Gravity_V4._Debounces.AgeEnabled then
  543.         Gravity_V4._Debounces.AgeEnabled=false
  544.         Gravity_V4._Connections.Output(7,Speaker,'Age kick has been disabled','Lime green',function() end)
  545.     else
  546.         Gravity_V4._Debounces.AgeEnabled=true
  547.         Gravity_V4._Connections.Output(7,Speaker,'Age kick has been enabled','Lime green',function() end)
  548.     end
  549. end)
  550.  
  551. Gravity_V4._Connections.AddCommand(0,'Dt;<NO MSG>','Dt','Dismiss',function(Speaker)
  552.     Gravity_V4._Connections.Dismiss(Speaker)
  553. end)
  554.  
  555. Gravity_V4._Connections.AddCommand(0,'Dtall;<NO MSG>','Dtall','Dismiss all',function(Speaker)
  556.     for _,v in next,(game.Players:GetPlayers()) do
  557.         Gravity_V4._Connections.Dismiss(v)
  558.     end
  559. end)
  560.  
  561. Gravity_V4._Connections.AddCommand(0,'Commands;<NO MSG>','Cmds','Commands',function(Speaker)
  562.     Gravity_V4._Connections.ShowCommands(Speaker)
  563. end)
  564.  
  565. Gravity_V4._Connections.AddCommand(2,'RM;<MSG>','RM','Ranked player Message',function(Speaker,Msg)
  566.     Gravity_V4._Connections.Broadcast(70,3,Speaker.Name..' : '..Msg,'White',function() end)
  567. end)
  568.  
  569. Gravity_V4._Connections.AddCommand(2,'GM;<MSG>','GM','Global Message',function(Speaker,Msg)
  570.     Gravity_V4._Connections.Broadcast(70,0,Speaker.Name..' : '..Msg,'White',function() end)
  571. end)
  572.  
  573. Gravity_V4._Connections.AddCommand(0,'Net;<NO MSG>','Net','Network server',function(Speaker,Msg)
  574.     for _,a in pairs(game:service'NetworkServer':children()) do
  575.         if a:GetPlayer() and a:GetPlayer().Parent~=game:service'Players' then
  576.             Gravity_V4._Connections.Output(30,Speaker,a:GetPlayer().Name..': Nil','Really red',function()
  577.                 Gravity_V4._Connections.Output(30,Speaker,a:GetPlayer().Name..': Player','Cyan',function()  end)
  578.                 Gravity_V4._Connections.Output(30,Speaker,a:GetPlayer().userId..': UserId','Cyan',function()  end)
  579.                 Gravity_V4._Connections.Output(30,Speaker,'Nil Kick','Deep orange',function() Gravity_V4._Connections.Kick(a:GetPlayer()) end)
  580.                 Gravity_V4._Connections.Output(30,Speaker,'Nil Ban','Deep orange',function()  
  581.                     Gravity_V4._Connections._Addban(a:GetPlayer(),Speaker)
  582.                     Gravity_V4._Connections.CheckBan(a:GetPlayer(),true)
  583.                 end)
  584.             end)
  585.         else
  586.             Gravity_V4._Connections.Output(30,Speaker,a:GetPlayer().Name..': Player','Lime green',function()  
  587.                 Gravity_V4._Connections.Output(30,Speaker,a:GetPlayer().Name..': Player','Cyan',function()  end)
  588.                 Gravity_V4._Connections.Output(30,Speaker,a:GetPlayer().userId..': UserId','Cyan',function()  end)
  589.                 Gravity_V4._Connections.Output(30,Speaker,a:GetPlayer():GetFullName()..': Parent','Cyan',function()  end)
  590.                 Gravity_V4._Connections.Output(30,Speaker,a:GetPlayer():GetRankInGroup(Gravity_V4._GroupID)..': Rank','Cyan',function()  end)
  591.                 if not (a:GetPlayer().userId==Speaker.userId) and Speaker:GetRankInGroup(Gravity_V4._GroupID) <= 3 then
  592.                     Gravity_V4._Connections.Output(30,Speaker,'Kick','Deep orange',function() Gravity_V4._Connections.Kick(a:GetPlayer()) end)
  593.                     Gravity_V4._Connections.Output(30,Speaker,'Ban','Deep orange',function()  
  594.                         Gravity_V4._Connections._Addban(a:GetPlayer(),Speaker)
  595.                         Gravity_V4._Connections.CheckBan(a:GetPlayer(),true)
  596.                     end)
  597.                 end
  598.             end)
  599.         end
  600.     end    
  601. end)
  602.  
  603. Gravity_V4._Connections.AddCommand(2,'K;<MSG>','K','Kick',function(Speaker,Msg)
  604.     for _,v in pairs(Gravity_V4._Connections.AddPlayers(Speaker,Msg)) do
  605.         Gravity_V4._Connections.Kick(v)
  606.     end
  607. end)
  608. Gravity_V4._Connections.AddCommand(5,'Sd;<NO MSG>','Sd','Shutdown like a boss c;',function(Speaker,Msg)
  609.     for _,v in next, game.Players:GetPlayers() do
  610.         Gravity_V4._Connections.Kick(v)
  611.     end
  612. end)
  613.  
  614. Gravity_V4._Connections.AddCommand(0,'Ping;<MSG>','Ping','Ping',function(Speaker,Msg)
  615.     if Msg == '' then
  616.         Gravity_V4._Connections.Output(10,Speaker,'Pong!','Really blue',function() end)
  617.     else
  618.         Gravity_V4._Connections.Output(180,Speaker,Msg,'Really blue',function() end)
  619.     end
  620. end)
  621.  
  622. Gravity_V4._Connections.AddCommand(3,'Music;<MSG>','Music','HTTP Music',function(Speaker,Msg)
  623. if not game:FindService('HttpService') then
  624. else
  625. local Ser=game:FindService('HttpService')
  626. local KeyWords=Ser:UrlEncode(tostring(Msg))
  627. local Url='http://roproxy.tk/catalog/json?Keyword='..KeyWords..'&Category=9&ResultsPerPage=14'
  628. local Assets=game:service'HttpService':JSONDecode(Ser:GetAsync(Url))
  629. for _,v in pairs(Assets) do
  630. Gravity_V4._Connections.Output(60,Speaker,v.Name,'Really blue',function()
  631. Gravity_V4._Connections.Dismiss(Speaker)
  632. Gravity_V4._Connections.AddSound(v.AssetId)
  633. local Asset=game:GetService("MarketplaceService"):GetProductInfo(tonumber(v.AssetId))
  634. Gravity_V4._Connections.Broadcast(70,1,'Playing : '..Asset.Name,'White',function() end)
  635. Gravity_V4._Connections.Output(20,Speaker,'Dismiss','Lime green',function() Gravity_V4._Connections.Dismiss(Speaker) end)
  636. Gravity_V4._Connections.Output(30,Speaker,'View Properties','White',function()
  637. Gravity_V4._Connections.Dismiss(Speaker)
  638. Gravity_V4._Connections.Output(40,Speaker,'AssetID : '..Asset['AssetId'],'White',function() end)
  639. Gravity_V4._Connections.Output(40,Speaker,'AssetType : '..Asset['AssetTypeId'],'White',function() end)
  640. Gravity_V4._Connections.Output(40,Speaker,'Created : '..Asset['Created'],'White',function() end)
  641. Gravity_V4._Connections.Output(40,Speaker,'Name : '..Asset['Name'],'White',function() end)
  642. Gravity_V4._Connections.Output(40,Speaker,'Sales : '..Asset['Sales'],'White',function() end)
  643. Gravity_V4._Connections.Output(40,Speaker,'Updated : '..Asset['Updated'],'White',function() end)
  644. Gravity_V4._Connections.Output(40,Speaker,'Dismiss','Lime green',function() Gravity_V4._Connections.Dismiss(Speaker) end)
  645. end)
  646. end)
  647. end
  648. end
  649. end)
  650.  
  651. game.Players.PlayerAdded:connect(function(plr)
  652.     Gravity_V4._Connections.Check_Age(plr)
  653.     Gravity_V4._Connections.CheckBan(plr,false)
  654.     plr.Chatted:connect(function(Msg)
  655.         Gravity_V4._Connections._CheckWord(plr,Msg)
  656.         Gravity_V4._Connections.Chatted(plr,Msg)
  657.     end)
  658. end)
  659.  
  660. for _,plr in pairs(game.Players:GetPlayers()) do
  661.     Gravity_V4._Connections.CheckBan(plr,false)
  662.     plr.Chatted:connect(function(Msg)
  663.         Gravity_V4._Connections._CheckWord(plr,Msg)
  664.         Gravity_V4._Connections.Chatted(plr,Msg)
  665.     end)
  666. end
  667.  
  668. game.Players.PlayerRemoving:connect(function(plr)
  669.     Gravity_V4._Connections.Dismiss(plr)
  670. end)
  671.  
  672. spawn(function()
  673.     game:GetService('RunService').Heartbeat:connect(Gravity_V4._Connections.ConnectTabs)
  674. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement