Advertisement
Guest User

Untitled

a guest
Feb 15th, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. -- "Bans" ModuleScript, stored in ReplicatedStorage.
  2.  
  3. local Bans = {
  4. "SomeoneThatIHate"
  5. }
  6.  
  7. function Bans.IsBanned(Player)
  8. if type(Player) == "userdata" then Player = Player.Name end -- If the "Player" argument was the player object, get their name.
  9. for _, ban in pairs(Bans) do
  10. if type(Player) == "string" and type(ban) == "string" then
  11. if string.lower(Player) == string.lower(ban) then
  12. return true
  13. end
  14. end
  15. end
  16. return false
  17. end
  18.  
  19. return Bans
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement