PcoWSkbVqDnWTu_dm2ix
We use cookies on this site to enhance your user experience

Remove customLoadingScreen and Display teleportData

Remove customLoadingScreen and Display teleportData

Oct 01 2018, 2:19 AM PST

The code below will handle removing the customLoadingScreen and output the contents of the teleportData table. It should be used in a LocalScript in /ReplicatedFirst.

game:GetService('TeleportService').LocalPlayerArrivedFromTeleport:Connect(function(customLoadingScreen, teleportData)
	for key, value in pairs(teleportData) do
		print(key.. " = " ..value)
	end

	game.Players.LocalPlayer.CharacterAdded:wait() -- Wait for the character to spawn before removing the loading GUI
	customLoadingScreen:Destroy()
end)