function OnPlayerEntered(plr)
local pName = plr.Name
if pName == "19under19" then
--Kicking code
plr:kick("You are banned from this game!")
end
end
game.Players.PlayerAdded:connect (OnPlayerEntered)
This is the script I have in a server script in workspace. It is not kicking the player is it supposed to. Help?

1 comment
Thanks. I forgot that Kick is deprecated.