Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- "Bans" ModuleScript, stored in ReplicatedStorage.
- local Bans = {
- "SomeoneThatIHate"
- }
- function Bans.IsBanned(Player)
- if type(Player) == "userdata" then Player = Player.Name end -- If the "Player" argument was the player object, get their name.
- for _, ban in pairs(Bans) do
- if type(Player) == "string" and type(ban) == "string" then
- if string.lower(Player) == string.lower(ban) then
- return true
- end
- end
- end
- return false
- end
- return Bans
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement