Advertisement
Gomlsauresrex

GSecurity

Apr 14th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.95 KB | None | 0 0
  1. --G Security
  2. --by Gomlsauresrex
  3.  
  4. local whitelist={
  5. "Gomlsauresrex"
  6. }
  7.  
  8. gui=function(client, request)
  9. if request==true then
  10. local gui=Instance.new("ScreenGui",client.PlayerGui)
  11. gui.Name="GuiForGService"
  12. local TL=Instance.new("TextLabel", gui)
  13. TL.Text="Message From GSecurity made by Gomlsauresrex. Your Status : Blacklisted"
  14. TL.BackgroundColor3=Color3.new(0/255, 0/255, 0/255)
  15. TLTextColor3=Color3.new(255/255, 255/255, 255/255)
  16. TL.FontSize=Enum.FontSize.Size28
  17. TL.Position=UDim2.new(0.5, -100, 0.5, -25)
  18. elseif request==false then
  19. if client.PlayerGui:FindFirstChild("GuiForGService") then
  20. client.PlayerGui.GuiForGService:Destroy()
  21. end
  22. end
  23. end
  24.  
  25. local blacklist={}
  26.  
  27. game.Players.ChildAdded:Connect(function(player)
  28. if not whitelist[player.Name] then
  29. blacklist[#blacklist+1]=player.Name
  30. gui(player, true)
  31. local hint=Instance.new("Hint",workspace)
  32. hint.Text=player.Name.. " Id : " .. player.UserId .. " whitelisted : no"
  33. wait(5)
  34. hint:Destroy()
  35. else
  36. local hint=Instance.new("Hint",workspace)
  37. hint.Text=player.Name.. " Id : " .. player.UserId .. " whitelisted : yes"
  38. gui(player, false)
  39. wait(5)
  40. hint:Destroy()
  41. end
  42. player.Chatted:Connect(function(message)
  43. if string.sub(msg, 1, 11) == ":whitelist " and player.Name=="Gomlsauresrex" then
  44. local p=game.Players[string.sub(msg, 12)]
  45. if p then whitelist[#whitelist+1]=p.Name gui(p, false) end
  46. elseif string.sub(msg, 1, 11) ==":blacklist " and player.Name=="Gomlsauresrex" then
  47. local p=game.Players[string.sub(msg, 12)]
  48. if p then blacklist[#blacklist+1]=p.Name gui(p, true) end
  49. end
  50. end)
  51. end)
  52.  
  53. spawn(function()
  54. while true do
  55. for _,v in pairs(game.Players:GetPlayers()) do
  56. if blacklist[v.Name] then v.Character:Destroy() end
  57. end
  58. wait()
  59. end
  60. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement