Hi,
I just tried to teleport me threw places of my game and I sent a Data too. But when I joined the other place, It didn't get printed out. That are my scripts:
--the data is "lol"
Place 1 (script):
if followId and followId ~= 0 then
local success, errorMessage, placeId, jobId = pcall(function()
return TeleportService:GetPlayerPlaceInstanceAsync(followId)
end)
if success then
-- Teleport player
TeleportService:TeleportToPlaceInstance(placeId, player, "lol")
end
else
if gm == "Assault" then
TeleportService:Teleport(Assault, player, "lol")
elseif gm == "War" then
TeleportService:Teleport(War, player, "lol")
end
end
Place 2 (script):
local TeleportService = game:GetService("TeleportService")
game.Players.PlayerAdded:Connect(function(player)
local teleportData = TeleportService:GetLocalPlayerTeleportData()
if teleportData then
print(teleportData)
end
end)
