How do I make a loading screen when teleporting?

I saw a couple posts on this but I didnt understand them at all so I am wondering if someone can explain how to do it too me! Cause it is confusing!

1 Like

are you teleporting the HumanoidRootPart CFrame or teleporting between games?

Between games, sorry for not mentioning that

alright
first create a GUI that you want the loading screen to be and assign it to a variable

local gui = game.Players.LocalPlayer.PlayerGui.TeleportGui.Content
local tps = game:GetService(“TeleportService”)
tps:SetTeleportGui(gui)
tps:Teleport(location,player)

Simple enough, but quick question,

Teleport gui would be the Gui I want to be shown right?
And what is .Content? i thought I was getting the gui? Or do I have to get something in the gui?

Thanks!

teleportgui would be the screengui; content is actual user interface (such as frames, guilabels, guibuttons)

One more question, how come I grab a frame instead of a gui?
Oh wait is it cause teleport gui probably creates a gui and I have to put the content inside of said teleport gui.
That makes sense, Thanks for your help!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.