local banned = {"Epicpan", "LuckTron"} Player = game.Players.LocalPlayer while wait(0.5) do if Player.Name == banned then Player:Kick() end end
Works until I tryed multi-people banning.
Here's your script fixed up.
--reg script Banned = {"Epicpan", "LuckTron"} game.Players.PlayerAdded:connect(function(p) for i = 1, #Banned do if p.Name == Banned[i] then p:Kick() end end end)
-Thank me by accepting this answer/bumping up my reputation!