Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I make this unlock next level system?

Asked by 4 years ago

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)
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. matiss112233 258 — 4y
0
okay i will try that D0CTOR_CHIL 21 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago

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!

Ad

Answer this question