How do I add a message to the kick?

function onEntered(Player)

wait()

if Player.AccountAge <= 15 then

Player:Kick()

end

end

game.Players.PlayerAdded:connect(onEntered)

1 Like
player:Kick('\n kick message here")
2 Likes
function onEntered(Player)

wait()

if Player.AccountAge <= 15 then

Player:Kick("Your account needs to be at least 15 days old to play this.")

end

end

game.Players.PlayerAdded:connect(onEntered)
1 Like

Thanks that was fast and it worked.

1 Like