I want my loading screen to show up after joining the place the player teleported to
I need to know what exactly I am doing wrong or missing. When after teleporting to the second place, the custom teleport screen does not display, and I don’t think the TeleportService.LocalPlayerArrivedFromTeleport event fires at all. I am not sure why. It should fire, pull the customLoadingScreen and destroy it after 5 seconds (it disappears right away, on join).
TeleportService.LocalPlayerArrivedFromTeleport:Connect(function(customLoadingScreen, teleportData)
print("OK")
ReplicatedFirst:RemoveDefaultLoadingScreen()
customLoadingScreen.Parent = playerGui
customLoadingScreen:FindFirstChild("Label", true).Name = player.Name .." is meeting with:"
customLoadingScreen:FindFirstChild("Label", true).Visible = true
customLoadingScreen:FindFirstChild("Name", true).Text = teleportData["OtherPlayer"]
repeat task.wait() until #Players:GetPlayers() >= 2
task.wait(2.5)
customLoadingScreen:FindFirstChild("Name", true).Visible = true
task.wait(5)
customLoadingScreen:Destroy()
end)
Thanks for any assitance.