Title says it all, I have a Loading Gui where I want it to fade when the player arrives to the destinated place, however when the "LocalPlayerArrivedFromTeleport" event is fired, it instantly gets removed.
What am I doing wrong?
Code snippets:
--// A local TS = game:GetService("TeleportService") TS:Teleport(PlaceId, Player, nil, ScreenGui)
--// B local TS = game:GetService("TeleportService") TS.LocalPlayerArrivedFromTeleport:Connect(function(ScreenGui) --// Stuff end)
Is what I want to happen even possible?
Inside your LocalPlayerArrivedFromTeleport
, check if the UI exists, and if it does re-parent it. That seems to work for me.
--// B local TS = game:GetService("TeleportService") TS.LocalPlayerArrivedFromTeleport:Connect(function(ScreenGui) if ScreenGui then ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") end end)