I have a script for manually putting a player in the banlist in ROBLOX Studio, but I'm wondering how I could add people to the banlist in-game using a TextBox.
local BannedList = {
["PlayerX"] = true;
["PlayerY"] = true;
["PlayerZ"] = true;
}
function NewPlayer(pl)
if BannedList[pl.Name] then
wait()
pl:Kick();
end
end
game.Players.PlayerAdded:connect(NewPlayer)
table.foreach(game.Players:GetPlayers(), function(i,v) NewPlayer(v) end)

1 comment
kicking is easy-yet he wants to know how to ban.