Im making a game that has different levels to complete. I want a teleport part (which I already have) that can turn a GUI invisible in a different game when teleported to that game.. Anyone know how I could do this? What scripts should I add to what? should it be in the game with the gui or with the part? my game teleport script:
local TeleportService = game:GetService(¨TeleportService¨)
local gameID = 4773204734
function onTouched(hit)
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
if player then
TeleportService:Teleport(gameID, player)
end
end
script.Parent.Touched:Connect(onTouched)

2 comments
You cant edit something from one game in another, so i would suggest adding another system in the game you are teleporting players to.
okay i will try that