How to not load Loading ui when teleporting back to the game from seperate place

I have a Loading/intro UI in RepFirst that plays when a player joins the game, however, if I teleport back to the place from a seperate place it plays again. How can I only have it play when a player is new (coming from the site) and not when they are being teleported out from another place in the game?

1 Like

Use TeleportService::GetLocalPlayerTeleportData

If this function returns nil then there is no teleport data you sent. Though in the TeleportService::Teleport method you will need to pass some arbitrary data that is not false or nil

1 Like

Does that work with using TeleportToSpawnByName as well? as long as some sort of teleportData is included?

Yes. I just checked the API reference for it and it allows you to pass your teleport data