I know that there's someway to do that, but i don't know how.
Psuedo code I want to find out how to do:
1 | If there is a guest in Players |
2 | Teleport them to the Guest area |
3 | end |
To perfect magiccube3's answer, the Guest actually have a Negative id, here is an example code.
1 | game.Players.PlayerAdded:connect( function (player) |
2 | if player.userId < - 1 and player.Name:sub( 1 , 6 ) = = "Guest " then -- if a user has at least the name guest then it sets the player as a guest. |
3 | --code |
4 | end |
5 | end ) |