![]() ![]() It handles the player removal when they leave the game correctly. The server script for the destination game where players are teleported to looks fine. ![]() LobbyRE:FireClient("TeleportFailed", errorMessage) - Displays a failed teleport GUI If player.Parent = nil then - Check if player is still in the game Handle failed teleports and remove failed players from playersInLobby table Local success, result = pcall(teleportService.TeleportAsync, teleportService, ID, playersInLobby, teleportOptions) TeleportOptions.ReservedServerAccessCode = reservedServer Local teleportOptions = Instance.new("TeleportOptions") Local reservedServer = teleportService:ReserveServer(ID) Local playersInLobby = - table that has the names of players that enter the lobby This is in the lobby that the players will be teleported from local lobbyRE = -RemoteEvent So I have this teleport for a lobby system but I am unsure if I handled the teleports correctly as I have it setup for when players are in the server after they are teleported and also for if they leave the game that they are teleported to but don’t know if I have things correct for if a players teleport fails. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |