Advertisement
4zx16

Ban List V3 + CUSTOM REASONS

Jun 24th, 2022 (edited)
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.70 KB | Source Code | 0 0
  1. --[[
  2.  || 📜 AUTHOR: @4zx16 || BAN LIST V3,
  3.  || 🚀 Modify the reasons using "Removed" within the ban list
  4. ]]
  5. local Lua_Shortcuts = {
  6.     PlayerService = game:GetService("Players"),
  7.     DefaultMessage = "You've been banned, please do not return."
  8. }
  9. local Removed = {
  10.     ["Username1"] = "Raiding, vandalism or stealing models isn't permitted neither is modifying the source code.";
  11.     ["Username2"] = "Raiding isn't permitted!";
  12. }
  13. local function Checking_List(player)
  14.     for index, stored in pairs(Removed) do
  15.         local SetValue = Lua_Shortcuts.PlayerService:GetUserIdFromNameAsync(index)
  16.        
  17.         if player.UserId == SetValue then
  18.             player:Kick(stored)
  19.         end
  20.     end
  21. end
  22. game.Players.PlayerAdded:Connect(Checking_List)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement