Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- // Gravity Version : 4, Made by jillmiles1. \\ --
- -- // Please do not re-disitrubte and/or distribute. \\ --
- _Rot1 = 1
- _Rot2 = .5
- _LerpRot = .06
- _GameDSS = nil
- if (game.PlaceId==20279777) then
- _GameDSS = "[Gravity] banlist1"
- elseif (game.PlaceId==178350907) then
- _GameDSS = "[Gravity] banlist1"
- else
- _GameDSS = "[Gravity] banlist1"
- end
- local Gravity_V4
- Gravity_V4 = {
- _Version = "Version 4.1.11",
- _GroupID = string.reverse(7949911),
- _Logo = "",
- _ScriptName = "Gravity_Version : 4.Unknown",
- _CommandSettings={
- Commands={};
- Tablets={};
- Prefix=';';
- Suffiex=';';
- },
- _Debounces={
- HttpEnabled = false;
- PrivateServerEnabled = false;
- CSound = false;
- AgeEnabled = false;
- Tablet=false;
- },
- _Logs = {
- ChatsLogs = {};
- CommandsLogs = {};
- Scriptlogs = {};
- },
- _BadWords={
- 'manualsurfacejointinstance';
- },
- _DATASTORESync = {
- ChatLink = "Gravity Version 4 [Chat]";
- BanlistLink = _GameDSS;
- },
- _Banned = {},
- _PrivateServer = {},
- _Sound={
- Time = 0,
- SID = 0,
- },
- _Services = {
- Workspace = game:GetService('Workspace');
- Players = game:GetService('Players');
- Lighting = game:GetService('Lighting');
- ScriptService = game:GetService('ServerScriptService');
- ServerStorage = game:GetService('ServerStorage');
- SGui = game:GetService('StarterGui');
- SPack = game:GetService('StarterPack');
- Teams = game:GetService('Teams');
- Debris = game:GetService('Debris');
- RunService = game:GetService('RunService');
- HTTP = game:GetService('HttpService');
- },
- _Alphabet = {
- "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"
- },
- _AgeRes = {
- AgeNum = 180;
- },
- _HTTPConnections={
- CheckUpdate = function() pcall(function()
- local Link = "http://pastebin.com/raw.php?i=A902HE4H"
- local NewCode=getfenv(loadstring(Gravity_V4._Services.HTTP:GetAsync(Link,true))())
- NewCode.Disabled=true
- if NewCode:FindFirstChild('Version').Value >= script:FindFirstChild('Version').Value then
- print'New update avaible!'
- _G.GravityHere=false
- NewCode.Parent=workspace
- NewCode.Disabled=false
- script.Disabled=true
- script:remove()
- end
- end) end
- ;
- },
- _Connections = {
- Output = function(time,Player,Text,Color,Func)
- if not Player.Character then return false end
- 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'
- pcall(function() Part.CFrame=Player.Character.Torso.CFrame*CFrame.Angles(0,5,1) end)
- pcall(function() Part.Name='TT_'..Player.Name end)
- local Light=Instance.new('PointLight',Part)
- local Click=Instance.new('ClickDetector',Part) Click.MaxActivationDistance=math.huge
- local Box=Instance.new('SelectionBox',Part) Box.Color=Part.BrickColor Box.Adornee=Part Box.Transparency=1
- local BodyGyro=Instance.new('BodyGyro',Part)
- local BG=Instance.new('BillboardGui',Part) BG.ExtentsOffset=Vector3.new(0,2,0) BG.Size=UDim2.new(0,200,0,200)
- 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
- local HoverOver = nil
- TextLabel.Text=Text
- Click.MouseClick:connect(function(plr)
- if plr.userId==Player.userId then
- Gravity_V4._Connections.Dismiss(Player)
- local a,b = ypcall(function() Func=Func Func() end) if not a then return end
- end
- end)
- Click.MouseHoverEnter:connect(function(plr)
- if plr.userId==Player.userId and not HoverOver then
- HoverOver=true
- for i = Part.Transparency, .8, .1 do
- Box.Transparency=Box.Transparency-.08
- Part.Transparency=Part.Transparency-.01
- game:GetService('RunService').Heartbeat:wait()
- end
- end
- end)
- Click.MouseHoverLeave:connect(function(plr)
- if plr.userId==Player.userId and HoverOver then
- HoverOver=false
- for i = Part.Transparency, .8, .1 do
- Box.Transparency=Box.Transparency+.08
- Part.Transparency=Part.Transparency+.01
- game:GetService('RunService').Heartbeat:wait()
- end
- end
- end)
- spawn(function()
- delay(time,function()
- spawn(function()
- for _ = 0, .3, 0.01 do
- TextLabel.TextStrokeTransparency = TextLabel.TextStrokeTransparency + .1
- TextLabel.TextTransparency = TextLabel.TextTransparency + .1
- Part.Size = Part.Size - Vector3.new(.1, .1, .1)
- Box.Transparency = Box.Transparency + .1
- Part.Transparency = Part.Transparency + .05
- game['Run Service'].Heartbeat:wait()
- end
- Part:remove()
- return
- end)
- end)
- end)
- spawn(function()
- if not Gravity_V4._Debounces.Tablet then
- Part.Size=Vector3.new(0,0,0)
- for _ = 0, 2, 0.1 do
- Part.Size = Part.Size + Vector3.new(.1, .1, .1)
- Box.Transparency = Box.Transparency - .03
- Part.Transparency = Part.Transparency - .032
- TextLabel.TextStrokeTransparency = TextLabel.TextStrokeTransparency - .07
- game:GetService('RunService').Heartbeat:wait()
- end
- else
- Part.Size=Vector3.new(0,0,.2)
- for _ = 0, 1, 0.1 do
- Part.Size = Part.Size + Vector3.new(0.23, 0.35, 0)
- Box.Transparency = Box.Transparency + .034
- Part.Transparency = Part.Transparency - .039
- TextLabel.TextStrokeTransparency = TextLabel.TextStrokeTransparency - .05
- wait()
- end
- end
- end)
- --------
- table.insert(Gravity_V4._CommandSettings.Tablets,{Plr=Player.userId,Tab=Part,Gyro=BodyGyro,Box=Box,Text=TextLabel})
- end
- ;
- GetPlayerTablets=function(plr)
- local Table={}
- for i,v in pairs (Gravity_V4._CommandSettings.Tablets) do
- if v.Plr==plr.userId then
- coroutine.resume(coroutine.create(function()
- table.insert(Table,v)
- end))
- end
- end
- game["Run Service"].Heartbeat:wait()
- return Table
- end
- ;
- Dismiss=function(plr)
- table.foreach(Gravity_V4._Connections.GetPlayerTablets(plr),function(i,v)
- spawn(function()
- for _ = 0, .3, 0.01 do
- v.Text.TextStrokeTransparency = v.Text.TextStrokeTransparency + .1
- v.Text.TextTransparency = v.Text.TextTransparency + .1
- v.Tab.Size = v.Tab.Size - Vector3.new(.1, .1, .1)
- v.Box.Transparency = v.Box.Transparency + .1
- v.Tab.Transparency = v.Tab.Transparency + .05
- game['Run Service'].Heartbeat:wait()
- end
- v.Tab:remove()
- return
- end)
- end)
- end
- ;
- ConnectTabs = function()
- spawn(function()
- _Rot1=_Rot1-_Rot2
- coroutine.resume(coroutine.create(function()
- for _, Player in pairs(game.Players:GetPlayers()) do
- local CurrentTabs = {}
- local Character_Pos = nil
- for Index,Tablet in next,Gravity_V4._CommandSettings.Tablets do
- if(not(Tablet.Tab and Tablet.Tab:isDescendantOf(workspace)))then
- ypcall(game.destroy,Tablet.Tab);
- table.remove(Gravity_V4._CommandSettings.Tablets,Index);
- elseif Tablet.Plr == Player.userId then
- table.insert(CurrentTabs,Tablet);
- end;
- end;
- if Player.Character and Player.Character.Torso then
- spawn(function()
- pcall(function() Character_Pos = CFrame.new(Player.Character:WaitForChild("Torso").CFrame.p) end)
- coroutine.resume(coroutine.create(function()
- for i,v in pairs(CurrentTabs) do
- if v.Tab.Parent ~= nil and v.Plr == Player.userId then
- local Radius1 = CFrame.new(0,math.sin(tick()),-3.35-#CurrentTabs)
- local rad = math.rad(i*(360/#CurrentTabs)+_Rot1)
- local cfr = Character_Pos*CFrame.Angles(0,rad,0)*Radius1
- local Pos = v.Tab.CFrame.p
- Pos = Pos:Lerp(cfr.p,_LerpRot)
- v.Tab.CFrame = CFrame.new(Pos)*v.Gyro.cframe
- if not Gravity_V4._Debounces.Tablet then
- v.Gyro.cframe = v.Gyro.cframe*CFrame.Angles(0,math.rad(math.sin(time()/1.2)),0)
- else
- v.Gyro.cframe = v.Gyro.cframe
- end
- end
- end
- end))
- end)
- end
- end
- end))
- end)
- end
- ;
- AddSound = function(ID,Time)
- if Time==nil then Time=0 end
- Gravity_V4._Sound.SID = ID
- Gravity_V4._Sound.Time = Time
- Gravity_V4._Sound.CSound = true
- for _,v in next, workspace:GetChildren() do
- if v.ClassName=='Sound' then
- v.Looped=false
- v.PlayOnRemove=false
- v:Pause()
- end
- end
- local s = Instance.new('Sound',workspace)
- s.SoundId = 'rbxassetid://'..ID
- s.TimePosition = Time
- s.Volume=1
- s.Looped=true
- wait()
- s:Play()
- s.Changed:connect(function()
- if not workspace:FindFirstChild(s.Name) then
- Gravity_V4._Connections.AddSound(ID,Gravity_V4._Sound.Time)
- end
- end)
- delay(wait(),function()
- if workspace:FindFirstChild(s.Name) then
- while wait() do
- Gravity_V4._Sound.Time = workspace:FindFirstChild(s.Name).TimePosition
- end
- end
- end)
- end
- ;
- Broadcast = function(time,Rank,Text,Color,Func)
- for _,Players in pairs(game.Players:GetPlayers()) do
- if Players:GetRankInGroup(Gravity_V4._GroupID) >= Rank then
- Gravity_V4._Connections.Output(time,Players,Text,Color,Func)
- end
- end
- end
- ;
- AddPlayers=function(Plr,Msg)
- local ReturnedTable={}
- if Msg:lower()=='me' or Msg=='' then
- table.insert(ReturnedTable,Plr)
- elseif Msg:lower()=='all' then
- coroutine.wrap(function()
- for _,v in pairs(game.Players:GetPlayers()) do
- table.insert(ReturnedTable,v)
- end
- end)()
- elseif Msg:lower()=='others' then
- for _,v in pairs(game.Players:GetPlayers()) do
- if v.Name~=Plr.Name then
- table.insert(ReturnedTable,v)
- end
- end
- elseif Msg:lower()=='friends' then
- for _,v in pairs(game.Players:GetPlayers()) do
- if v:IsFriendsWith(Plr.userId) then
- table.insert(ReturnedTable,v)
- end
- end
- elseif Msg:lower()=='bestfriends' then
- for _,v in pairs(game.Players:GetPlayers()) do
- if v:IsBestFriendsWith(Plr.userId) then
- table.insert(ReturnedTable,v)
- end
- end
- elseif Msg:lower()=='nonfriends' then
- for _,v in pairs(game.Players:GetPlayers()) do
- if not v:IsFriendsWith(Plr.userId) then
- table.insert(ReturnedTable,v)
- end
- end
- elseif Msg:lower()=='nonbestfriends' then
- for _,v in pairs(game.Players:GetPlayers()) do
- if not v:IsBestFriendsWith(Plr.userId) then
- table.insert(ReturnedTable,v)
- end
- end
- elseif Msg:lower()=='nbc' then
- for _,v in pairs(game.Players:GetPlayers()) do
- if v.MembershipType == Enum.MembershipType.None then
- table.insert(ReturnedTable,v)
- end
- end
- elseif Msg:lower()=='tbc' then
- for _,v in pairs(game.Players:GetPlayers()) do
- if v.MembershipType == Enum.MembershipType.TurboBuildersClub then
- table.insert(ReturnedTable,v)
- end
- end
- elseif Msg:lower()=='obc' then
- for _,v in pairs(game.Players:GetPlayers()) do
- if v.MembershipType == Enum.MembershipType.OutrageousBuildersClub then
- table.insert(ReturnedTable,v)
- end
- end
- elseif Msg:lower()=='anybc' then
- for _,v in pairs(game.Players:GetPlayers()) do
- if v.MembershipType==Enum.MembershipType.BuildersClub then
- elseif v.MembershipType==Enum.MembershipType.TurboBuildersClub then
- elseif v.MembershipType==Enum.MembershipType.OutrageousBuildersClub then
- table.insert(ReturnedTable,v)
- end
- end
- else
- for _,v in pairs(game.Players:GetPlayers()) do
- if v.Name:lower():find(Msg) then
- table.insert(ReturnedTable,v)
- end
- end
- end
- wait(0.1)
- return ReturnedTable
- end
- ;
- AddCommand = function(Rank,Desc,Command,Name,Func)
- table.insert(Gravity_V4._CommandSettings.Commands,{Rank=Rank,Desc=Desc,Command=Command,Name=Name,Func=Func})
- end
- ;
- Chatted=function(PLR,Msg)
- coroutine.resume(coroutine.create(function()
- spawn(function()
- local Ran,Error=ypcall(function()
- for _,DATA in pairs(Gravity_V4._CommandSettings.Commands) do
- if Msg:sub(1,#(DATA['Command']:lower()..';'))==(DATA['Command']:lower()..';') then
- if PLR:GetRankInGroup(Gravity_V4._GroupID) >= DATA.Rank then
- Gravity_V4._Connections.Dismiss(PLR)
- Msg=Msg:sub(#DATA["Command"]+#';'+1)
- local rf,ef=ypcall(function()
- DATA['Func'](PLR,Msg)
- end)
- if not rf then
- Gravity_V4._Connections.Broadcast(10,2,'[Gravity] CMD-ERROR : '..ef,'Deep orange',function() end)
- end
- else
- Gravity_V4._Connections.Dismiss(PLR)
- Gravity_V4._Connections.Output(10,PLR,'[Gravity] Your rank is to low!','Really red',function() end)
- end
- end
- end
- end)
- end)
- end))
- end
- ;
- Kick = function(plr)
- local h=Instance.new('RemoteEvent',workspace):FireClient(plr,{string.rep("umad?",2e5+5)})
- delay(1,function()
- pcall(function() workspace.RemoteEvent:remove() end)
- end)
- end
- ;
- Check_Age = function(plr)
- if Gravity_V4._Debounces.AgeEnabled then
- if plr.AccountAge<Gravity_V4._AgeRes.AgeNum then
- for _,Player in pairs(game.Players:GetPlayers()) do
- Gravity_V4._Connections.Output(7,Player,plr.Name..' has been kicked due to age restriction. [Age :'..Gravity_V4._AgeRes.AgeNum..']','Deep orange',function() end)
- end
- Gravity_V4._Connections.Kick(plr)
- end
- end
- end
- ;
- GetCommands = function(Rk)
- if Rk==nil or Rk=='' then Rk=0 end
- local CMDS = {}
- for i,v in next,(Gravity_V4._CommandSettings.Commands) do
- if v.Rank <= Rk then
- table.insert(CMDS,v)
- end
- end
- wait()
- return CMDS
- end
- ;
- ShowCommands = function(Plr)
- spawn(function()
- Gravity_V4._Connections.Output(10,Plr,'Your rank is: '..Plr:GetRankInGroup(Gravity_V4._GroupID),'Really blue',function() end)
- for Num = 0,8,1 do
- Gravity_V4._Connections.Output(60,Plr,'Rank: '..Num,'White',function()
- table.foreach(Gravity_V4._Connections.GetCommands(Num),function(i,v)
- Gravity_V4._Connections.Output(60,Plr,'Name: '..v.Name,'White',function()
- Gravity_V4._Connections.Output(60,Plr,'Usage: '..v.Desc,'White',function() end)
- Gravity_V4._Connections.Output(60,Plr,tostring(v.Func),'White',function() end)
- Gravity_V4._Connections.Output(60,Plr,'Rank: '..v.Rank,'White',function() end)
- Gravity_V4._Connections.Output(60,Plr,'Run function','Really blue',function()
- if Plr:GetRankInGroup(Gravity_V4._GroupID) >= v.Rank then
- local r,e = ypcall(function()
- v.Func(Plr,'')
- end)
- if not r then
- Gravity_V4._Connections.Output(7,Plr,'[Gravity] CMD-ERROR: '..e,'Deep orange',function() end)
- end
- else
- Gravity_V4._Connections.Output(7,Plr,'Your rank is to low!','Really red',function() end)
- end
- end)
- Gravity_V4._Connections.Output(60,Plr,'Dismiss','Lime green',function() Gravity_V4._Connections.Dismiss(Plr) end)
- end)
- end)
- end)
- end
- end)
- end
- ;
- CheckBan = function(plr,justbanned)
- local PlayerKey = "BannedUser_"..(plr.userId)
- local DSB = game:GetService("DataStoreService"):GetOrderedDataStore(Gravity_V4._DATASTORESync.BanlistLink)
- if justbanned and not (plr:IsInGroup(Gravity_V4._GroupID)) then
- Gravity_V4._Connections.Broadcast(5,1,plr.Name..' has been kicked due to banlist','Really red',nil)
- Gravity_V4._Connections.Kick(plr)
- elseif not justbanned and not (plr:IsInGroup(Gravity_V4._GroupID)) and DSB:GetAsync(PlayerKey) then
- DSB:UpdateAsync(PlayerKey, function(a)
- local b = (a or 0)
- b = b + 1
- return b
- end)
- Gravity_V4._Connections.Broadcast(5,1,plr.Name..' has been kicked due to banlist','Really red',nil)
- Gravity_V4._Connections.Kick(plr)
- end
- end
- ;
- _CheckWord = function(plr,msg)
- for _,v in pairs(Gravity_V4._BadWords) do
- if msg:find(v:lower()) then
- if not plr:IsInGroup(Gravity_V4._GroupID) then
- Gravity_V4._Connections.Broadcast(5,1,plr.Name..' has been kicked due to chatting ['..tostring(v)..']','Really red',nil)
- Gravity_V4._Connections.Kick(plr)
- end
- end
- end
- end
- ;
- _Addban = function(plr,speaker)
- if not (plr:IsInGroup(Gravity_V4._GroupID)) then
- local PlayerKey = ("BannedUser_"..(plr.userId))
- local DSB = game:GetService("DataStoreService"):GetOrderedDataStore(Gravity_V4._DATASTORESync.BanlistLink)
- DSB:UpdateAsync(PlayerKey, function(a)
- local b = (a or 0)
- b = b + 1
- return b
- end)
- else
- Gravity_V4._Connections.Output(7,Speaker,'Cannot ban this user','Really red',function() end)
- end
- end
- ;
- _ShowBanlist=function(plr)
- local CDS = game:GetService("DataStoreService"):GetOrderedDataStore(Gravity_V4._DATASTORESync.BanlistLink)
- local CPage = 1
- local Page = CDS:GetSortedAsync(false, 15)
- function Update()
- Gravity_V4._Connections.Output(10,plr,'Current page : '..CPage,'Lime green',function() end)
- Gravity_V4._Connections.Output(10,plr,'Next page','Lime green',function()
- if Page.IsFinished then
- Page:AdvanceToNextPageAsync()
- CPage = CPage + 1
- Update()
- end
- end)
- for k,v in pairs(Page:GetCurrentPage()) do
- Gravity_V4._Connections.Output(20,plr,'UserId : '..tostring(v.key),'White',function()
- Gravity_V4._Connections.Output(20,plr,'UserId : '..tostring(v.key),'White',function() end)
- Gravity_V4._Connections.Output(20,plr,'Joins on ban : '..tostring(v.value),'White',function() end)
- end)
- end
- end
- Update()
- end
- }
- }
- local IntVersion=Instance.new('IntValue',script)
- IntVersion.Name='Version'
- IntVersion.Value=Gravity_V4._Version
- if not _G.GravityHere then _G.GravityHere=true else script.Disabled=true end
- _G.GravityHere=true
- Gravity_V4._Connections.AddCommand(4,'Sban;<NO MSG>','Sban','Show Ban\'s',function(Speaker)
- Gravity_V4._Connections._ShowBanlist(Speaker)
- end)
- Gravity_V4._Connections.AddCommand(4,'Ban;<PLAYER NAME>','Ban','Ban',function(Speaker,Msg)
- for _,v in pairs(Gravity_V4._Connections.AddPlayers(Speaker,Msg)) do
- Gravity_V4._Connections.Output(7,Speaker,'Ban user : '..v:GetFullName(),'Deep orange',function()
- Gravity_V4._Connections._Addban(v,Speaker)
- Gravity_V4._Connections.CheckBan(v,true)
- end)
- end
- end)
- Gravity_V4._Connections.AddCommand(1,'A;<NO MSG>','A','Age Kick',function(Speaker)
- if Gravity_V4._Debounces.AgeEnabled then
- Gravity_V4._Debounces.AgeEnabled=false
- Gravity_V4._Connections.Output(7,Speaker,'Age kick has been disabled','Lime green',function() end)
- else
- Gravity_V4._Debounces.AgeEnabled=true
- Gravity_V4._Connections.Output(7,Speaker,'Age kick has been enabled','Lime green',function() end)
- end
- end)
- Gravity_V4._Connections.AddCommand(0,'Dt;<NO MSG>','Dt','Dismiss',function(Speaker)
- Gravity_V4._Connections.Dismiss(Speaker)
- end)
- Gravity_V4._Connections.AddCommand(0,'Dtall;<NO MSG>','Dtall','Dismiss all',function(Speaker)
- for _,v in next,(game.Players:GetPlayers()) do
- Gravity_V4._Connections.Dismiss(v)
- end
- end)
- Gravity_V4._Connections.AddCommand(0,'Commands;<NO MSG>','Cmds','Commands',function(Speaker)
- Gravity_V4._Connections.ShowCommands(Speaker)
- end)
- Gravity_V4._Connections.AddCommand(2,'RM;<MSG>','RM','Ranked player Message',function(Speaker,Msg)
- Gravity_V4._Connections.Broadcast(70,3,Speaker.Name..' : '..Msg,'White',function() end)
- end)
- Gravity_V4._Connections.AddCommand(2,'GM;<MSG>','GM','Global Message',function(Speaker,Msg)
- Gravity_V4._Connections.Broadcast(70,0,Speaker.Name..' : '..Msg,'White',function() end)
- end)
- Gravity_V4._Connections.AddCommand(0,'Net;<NO MSG>','Net','Network server',function(Speaker,Msg)
- for _,a in pairs(game:service'NetworkServer':children()) do
- if a:GetPlayer() and a:GetPlayer().Parent~=game:service'Players' then
- Gravity_V4._Connections.Output(30,Speaker,a:GetPlayer().Name..': Nil','Really red',function()
- Gravity_V4._Connections.Output(30,Speaker,a:GetPlayer().Name..': Player','Cyan',function() end)
- Gravity_V4._Connections.Output(30,Speaker,a:GetPlayer().userId..': UserId','Cyan',function() end)
- Gravity_V4._Connections.Output(30,Speaker,'Nil Kick','Deep orange',function() Gravity_V4._Connections.Kick(a:GetPlayer()) end)
- Gravity_V4._Connections.Output(30,Speaker,'Nil Ban','Deep orange',function()
- Gravity_V4._Connections._Addban(a:GetPlayer(),Speaker)
- Gravity_V4._Connections.CheckBan(a:GetPlayer(),true)
- end)
- end)
- else
- Gravity_V4._Connections.Output(30,Speaker,a:GetPlayer().Name..': Player','Lime green',function()
- Gravity_V4._Connections.Output(30,Speaker,a:GetPlayer().Name..': Player','Cyan',function() end)
- Gravity_V4._Connections.Output(30,Speaker,a:GetPlayer().userId..': UserId','Cyan',function() end)
- Gravity_V4._Connections.Output(30,Speaker,a:GetPlayer():GetFullName()..': Parent','Cyan',function() end)
- Gravity_V4._Connections.Output(30,Speaker,a:GetPlayer():GetRankInGroup(Gravity_V4._GroupID)..': Rank','Cyan',function() end)
- if not (a:GetPlayer().userId==Speaker.userId) and Speaker:GetRankInGroup(Gravity_V4._GroupID) <= 3 then
- Gravity_V4._Connections.Output(30,Speaker,'Kick','Deep orange',function() Gravity_V4._Connections.Kick(a:GetPlayer()) end)
- Gravity_V4._Connections.Output(30,Speaker,'Ban','Deep orange',function()
- Gravity_V4._Connections._Addban(a:GetPlayer(),Speaker)
- Gravity_V4._Connections.CheckBan(a:GetPlayer(),true)
- end)
- end
- end)
- end
- end
- end)
- Gravity_V4._Connections.AddCommand(2,'K;<MSG>','K','Kick',function(Speaker,Msg)
- for _,v in pairs(Gravity_V4._Connections.AddPlayers(Speaker,Msg)) do
- Gravity_V4._Connections.Kick(v)
- end
- end)
- Gravity_V4._Connections.AddCommand(5,'Sd;<NO MSG>','Sd','Shutdown like a boss c;',function(Speaker,Msg)
- for _,v in next, game.Players:GetPlayers() do
- Gravity_V4._Connections.Kick(v)
- end
- end)
- Gravity_V4._Connections.AddCommand(0,'Ping;<MSG>','Ping','Ping',function(Speaker,Msg)
- if Msg == '' then
- Gravity_V4._Connections.Output(10,Speaker,'Pong!','Really blue',function() end)
- else
- Gravity_V4._Connections.Output(180,Speaker,Msg,'Really blue',function() end)
- end
- end)
- Gravity_V4._Connections.AddCommand(3,'Music;<MSG>','Music','HTTP Music',function(Speaker,Msg)
- if not game:FindService('HttpService') then
- else
- local Ser=game:FindService('HttpService')
- local KeyWords=Ser:UrlEncode(tostring(Msg))
- local Url='http://roproxy.tk/catalog/json?Keyword='..KeyWords..'&Category=9&ResultsPerPage=14'
- local Assets=game:service'HttpService':JSONDecode(Ser:GetAsync(Url))
- for _,v in pairs(Assets) do
- Gravity_V4._Connections.Output(60,Speaker,v.Name,'Really blue',function()
- Gravity_V4._Connections.Dismiss(Speaker)
- Gravity_V4._Connections.AddSound(v.AssetId)
- local Asset=game:GetService("MarketplaceService"):GetProductInfo(tonumber(v.AssetId))
- Gravity_V4._Connections.Broadcast(70,1,'Playing : '..Asset.Name,'White',function() end)
- Gravity_V4._Connections.Output(20,Speaker,'Dismiss','Lime green',function() Gravity_V4._Connections.Dismiss(Speaker) end)
- Gravity_V4._Connections.Output(30,Speaker,'View Properties','White',function()
- Gravity_V4._Connections.Dismiss(Speaker)
- Gravity_V4._Connections.Output(40,Speaker,'AssetID : '..Asset['AssetId'],'White',function() end)
- Gravity_V4._Connections.Output(40,Speaker,'AssetType : '..Asset['AssetTypeId'],'White',function() end)
- Gravity_V4._Connections.Output(40,Speaker,'Created : '..Asset['Created'],'White',function() end)
- Gravity_V4._Connections.Output(40,Speaker,'Name : '..Asset['Name'],'White',function() end)
- Gravity_V4._Connections.Output(40,Speaker,'Sales : '..Asset['Sales'],'White',function() end)
- Gravity_V4._Connections.Output(40,Speaker,'Updated : '..Asset['Updated'],'White',function() end)
- Gravity_V4._Connections.Output(40,Speaker,'Dismiss','Lime green',function() Gravity_V4._Connections.Dismiss(Speaker) end)
- end)
- end)
- end
- end
- end)
- game.Players.PlayerAdded:connect(function(plr)
- Gravity_V4._Connections.Check_Age(plr)
- Gravity_V4._Connections.CheckBan(plr,false)
- plr.Chatted:connect(function(Msg)
- Gravity_V4._Connections._CheckWord(plr,Msg)
- Gravity_V4._Connections.Chatted(plr,Msg)
- end)
- end)
- for _,plr in pairs(game.Players:GetPlayers()) do
- Gravity_V4._Connections.CheckBan(plr,false)
- plr.Chatted:connect(function(Msg)
- Gravity_V4._Connections._CheckWord(plr,Msg)
- Gravity_V4._Connections.Chatted(plr,Msg)
- end)
- end
- game.Players.PlayerRemoving:connect(function(plr)
- Gravity_V4._Connections.Dismiss(plr)
- end)
- spawn(function()
- game:GetService('RunService').Heartbeat:connect(Gravity_V4._Connections.ConnectTabs)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement