Advertisement
Guest User

Untitled

a guest
Jan 28th, 2020
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. -- Use /e w:Name to whitelist people
  2.  
  3.  
  4. whitelist = {}
  5.  
  6. game.Players.LocalPlayer.Chatted:connect(function(msge)
  7. cmd = string.sub(msge,0,5)
  8. msg = string.sub(msge,6)
  9. if cmd == "/e w:" then
  10. table.insert(whitelist,msg)
  11. end
  12. end)
  13.  
  14. game.Players.PlayerAdded:connect(function(v)
  15. for i,b in pairs(whitelist) do
  16. if v.Name == b then
  17. return
  18. end
  19. end
  20. v.CharacterAdded:connect(function()
  21. v:remove()
  22. wait(0.5)
  23. game.Players.LocalPlayer.PlayerGui.SB_DataTransfer.SB_CommandRemote.Value = "g/nn"
  24. end)
  25. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement