Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do I make this unlock next level system?

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

0

You cant edit something from one game in another, so i would suggest adding another system in the game you are teleporting players to.

0

okay i will try that

1 answer

✓ Accepted answer

You can actually use TeleportToPlaceInstance to send data with a player you are teleporting! You can send a table full of information about the part, and then have a script in the other place read this and re-creat the part. Make sure to read the wiki for more info.

Hope this helps!

This discussion is preserved as it was. New answers, comments, and votes are closed.