✓ Accepted answer
kingdom5 is wrong because that script is in every server and if its not im stupid and kingom5 is right.
local name = {"Aiden_12114", "Amanda69"}
game.Players.PlayerAdded:Connect(function(player)
for i, v in pairs(name) do
if v:lower() == player.Name:lower() then
player:Kick("Your banned!")
end
end
end)
If you do want commands for it then listen to kingdom5. You'll need to save tables in datastore with the people that are banned but if ur not bothered about it and will change it in studio (which is fine but I'd prefer commands).
1 comment
Review how tables work. This will only be a temp bad for that one server only. Look at using a datastore to ban players across the game itself