Hey! So I did a lot of research related to creating a custom loading gui, but it doesn’t work right. It does show the custom loading gui, but it also shows the normal one. How do I fix this?
Please note, this isnt my game, I dev on this game however.
Ah. Just use :SetTeleportGui() before teleporting the player.
2 Likes
So, do i just insert the gui using this, and it will set the teleport gui?
Yeah
game:GetService("TeleportService"):SetTeleportGui(-- Put the gui instance here)
-- AFTER that then you would teleport the player
Okay, but how would it remove the gui when the play fully joins the game?
Would I use replicatedfirst for this?
EDIT: It worked! Tysm and have a good day!
Also happy cake day!
Yay! I’m glad I was able to help you 
OOOF, another bug occured. Now its causing inf loading when you join 
Was I suppost to add a local script or something inside the UI?
You can use requestqueuesize to see when the game is fully loaded and remove the gui 
How would that work? Sorry for asking so much
No worries! Questions are what this forum is for!
This is how you would do it 
-- Wait for game to load
while true do
if game.ContentProvider.RequestQueueSize == 0 then
break
end
wait()
end
It loops a wait() command and prevents the script from continuing until the game loads.
So, this is for the gui itself? (place inside the gui)
I would assume so, yeah. However, you may need to play around with it a bit. I know another method if you need it
Okie! Tysm for the help! Incase i need anymore help, please add me on discord: Emerald#4444
1 Like