Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --G Security
- --by Gomlsauresrex
- local whitelist={
- "Gomlsauresrex"
- }
- gui=function(client, request)
- if request==true then
- local gui=Instance.new("ScreenGui",client.PlayerGui)
- gui.Name="GuiForGService"
- local TL=Instance.new("TextLabel", gui)
- TL.Text="Message From GSecurity made by Gomlsauresrex. Your Status : Blacklisted"
- TL.BackgroundColor3=Color3.new(0/255, 0/255, 0/255)
- TLTextColor3=Color3.new(255/255, 255/255, 255/255)
- TL.FontSize=Enum.FontSize.Size28
- TL.Position=UDim2.new(0.5, -100, 0.5, -25)
- elseif request==false then
- if client.PlayerGui:FindFirstChild("GuiForGService") then
- client.PlayerGui.GuiForGService:Destroy()
- end
- end
- end
- local blacklist={}
- game.Players.ChildAdded:Connect(function(player)
- if not whitelist[player.Name] then
- blacklist[#blacklist+1]=player.Name
- gui(player, true)
- local hint=Instance.new("Hint",workspace)
- hint.Text=player.Name.. " Id : " .. player.UserId .. " whitelisted : no"
- wait(5)
- hint:Destroy()
- else
- local hint=Instance.new("Hint",workspace)
- hint.Text=player.Name.. " Id : " .. player.UserId .. " whitelisted : yes"
- gui(player, false)
- wait(5)
- hint:Destroy()
- end
- player.Chatted:Connect(function(message)
- if string.sub(msg, 1, 11) == ":whitelist " and player.Name=="Gomlsauresrex" then
- local p=game.Players[string.sub(msg, 12)]
- if p then whitelist[#whitelist+1]=p.Name gui(p, false) end
- elseif string.sub(msg, 1, 11) ==":blacklist " and player.Name=="Gomlsauresrex" then
- local p=game.Players[string.sub(msg, 12)]
- if p then blacklist[#blacklist+1]=p.Name gui(p, true) end
- end
- end)
- end)
- spawn(function()
- while true do
- for _,v in pairs(game.Players:GetPlayers()) do
- if blacklist[v.Name] then v.Character:Destroy() end
- end
- wait()
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement