Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Player Ban Script by ImTheSky17
- -- Thank you for using this player ban script, feel free to use this in your game :).
- local BannedPlayers = {'YouWillNeverGuessMy'} -- Place banned players here
- for i,v in pairs(BannedPlayers) do -- Initiating and connecting to the Ban Table
- game.Players.PlayerAdded:connect(function(p)
- if p.Name == v then -- v loops around each player name, banning them
- p.Kick()
- print(v..' Attemted to join, is not allowed in this game, Kicked..')
- end
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement