SHARE
TWEET

[LUA] Ban Script

devvanss Apr 18th, 2019 93 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --// Client
  2.  
  3. local Player = game.Players.LocalPlayer
  4. local Character = Player.Character
  5.  
  6. local Banned = {"devvansstest1","devvansstest2","devvansstest3"} -- Put names of banned in here
  7. local Prefix = "[Banned] "
  8. local Message = "You are currently banned from the server."
  9.  
  10. game.Players.PlayerAdded:Connect(function(Player)
  11.    
  12.     for _, v in pairs(Banned) do
  13.        
  14.         if Player.Name == v then
  15.             Player:kick(Prefix..Message)
  16.            
  17.         end
  18.     end
  19. end)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top