Let's say there are 3 places (1,2, and 3) both 1 and 2 can lead to 3, but 1 comes from a different location than 2.

This is Game 2 data, game 1 is just Data and the data is "Why" and different location

local Data2 = game:GetService("TeleportService"):GetLocalPlayerTeleportData("Gobackcave")

print (Data2)

if Data2 then
	wait(.5)
	game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart")
    game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-232.3, 148.4, -236.85)
end

Code works but it takes me to game 1 location and not game 2 location when I come from game 2.

I know this is like the 50th time on the same page of teleport service data, but I'm very confused here and there isn't really tutorials on this specific thing to help explain and let me understand it.

local TeleportService = game:GetService("TeleportService")
local placeID_1 = 4505065903
local placeID_2 = 4483453486
	 
script.Parent.MouseClick:Connect(function(player)


TeleportService:Teleport(placeID_1, player,"Gobackcave")

end)
script.Parent.MouseClick:Connect()

This is the game that collects the teleport service and then the game you teleport collects it. There is another one that is "Why" instead of "Gobackcave"

2 comments

0

What, is this the only script in all the places?

0

I'll add the second script in there is more