I have an application hub that will teleport you to the application game but when the application is closed I want a message to pop up.
How do I detect if a game is private?
I have an application hub that will teleport you to the application game but when the application is closed I want a message to pop up.
How do I detect if a game is private?
Use a Pcall for teleporting, if the returned value is false, meaning the player didn’t teleport (by any possible reason) send the message or whatever you want.
But I want the player to not teleport, I just need it too check if a game is public
Sadly, I can’t help with that, I don’t think it’s possible, I’m not sure tho.
And you said you wanted to teleport to main game so ya…
You can make use of TeleportService.TeleportInitFailed.
When this event fires, the teleport has failed (if the game’s set to private, the teleport will fail unless you’re the owner I suppose). So when that fires you can just pop up a message that says “Teleport failed. Applications are closed, or something went wrong.”