Advertisement
3DCreator

serverban

Dec 22nd, 2024
22
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.34 KB | None | 0 0
  1. local module = {}
  2.  
  3. module.run = function(player, message, arguments)
  4.     local target = require(_G.fetchplayer)(player, arguments[2])
  5.     local reason = message:gsub(arguments[1].." "..arguments[2], "")
  6.  
  7.     for _, v in pairs(target) do
  8.         table.insert(_G.sban, v.UserId)
  9.         v:Kick("You were server banned for"..reason..".")
  10.     end
  11. end
  12.  
  13. return module
  14.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement