This localscript is basically an intro gui. Since I have universe teleporters set up in my game, I don't want this script to be played when a player comes back to this place from a universe teleport. I was thinking I had to use either SetTeleportSetting or GetLocalPlayerTeleportData, but I wasn't sure. How should I go about doing this?
local Players = game:GetService("Players") local ContentProvider = game:GetService("ContentProvider") local sound = game:GetService("SoundService") local eye = script.Parent:WaitForChild("eye") local authlabel1 = script.Parent:WaitForChild("auth1") local authlabel2 = script.Parent:WaitForChild("auth2") local authlabel3 = script.Parent:WaitForChild("auth3") local authlabel4 = script.Parent:WaitForChild("auth4") local welcome = script.Parent:WaitForChild("welcome") local startup = script.Parent:WaitForChild("Startup") local robot = script.Parent:WaitForChild("robot") local glitchy = script.Parent:WaitForChild("Glitchy") authlabel1.Visible = true authlabel1.ImageTransparency = 1 local assets = {authlabel1, authlabel2, authlabel3, authlabel4, eye, welcome} ContentProvider:PreloadAsync(assets) print("Assets have been loaded!") function playerAdded(player) --collapsed this to make this question shorter. for _,player in pairs(Players:GetPlayers()) do playerAdded(player) end