Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why isn't this banscript working?

Asked by 9 years ago

I made a banscript for my admin commands, and when I tested it, it doesn't work.

Script:

banland = {"Player"}

game.Players.PlayerAdded:connect(function(plr)
    wait(.5)
    for i,v in pairs(banland) do
        if v == plr.Name then
            plr:Kick()
        end
    end
end)

Answer this question