SetTeleportGui not working

I’m trying to make a GUI that displays itself when a player teleports from one game to another

The issue is that it does the opposite of what I want to achieve. The GUI doesn’t appear when the player has teleported and instead it is just the default roblox loading screen.

I haven’t found anything about it on the devforum. A video demonstrating the issue even with the script will be below.

Script:

local teleportService = game:GetService("TeleportService")
local teleportGui = game.ReplicatedStorage:WaitForChild("TeleportGui")

teleportService:SetTeleportGui(teleportGui)

1 Like

Assuming that the gui is a screen gui, you need to set it on the client and not the server

Edit: Make sure the teleport gui parent is set to the player’s playergui as well

Pretty sure the script is already setting it to the client (The script is a local script in starterplayerscripts)

The script should be in replicated first, with the UI inside it

I put the gui in the script and put it in replicated first, tried it out again and it still didn’t work.