-
What do you want to achieve?
I want my screen gui to be brought to the other experience I’m teleporting to and to play the animation and everything inside it. -
What is the issue?
The UI isn’t showing up in the other experience. Even when using the Roblox provided scripts it doesn’t appear to work. -
What solutions have you tried so far?
I’ve looked all over everywhere I could find but I haven’t found anything of use. So I turned to the forums for help.
The teleporting script (LocalScript)
tween2.Completed:Wait()
task.wait(2.5)
game["Teleport Service"]:SetTeleportGui(script.Parent.Parent.Parent.Parent.TeleportLoadingUI)
game["Teleport Service"]:Teleport(15841837735)
--game["Teleport Service"]:Teleport(15841837735,game.Players.LocalPlayer,nil,script.Parent.Parent.Parent.Parent.TeleportLoadingUI)
end)
The UI getting script (LocalScript in other experience)
local TeleportService = game:GetService("TeleportService")
local Players = game:GetService("Players")
local ReplicatedFirst = game:GetService("ReplicatedFirst")
local customLoadingScreen = TeleportService:GetArrivingTeleportGui()
if customLoadingScreen then
local playerGui = Players.LocalPlayer:WaitForChild("PlayerGui")
ReplicatedFirst:RemoveDefaultLoadingScreen()
customLoadingScreen.Parent = playerGui
task.wait(5)
customLoadingScreen:Destroy()
end
When testing it the customLoadingScreen returns nil.