This is the first time I’ve used TeleportService to teleport players and send information to different universes. But, when I ran into an issue, I started looking into the Developer Hub pages, browsed the Developer Forum, and even looked it up on Youtube, but there was no solution.
The problem is that TeleportService:GetLocalPlayerTeleportData()
or TeleportService:Teleport()
will not receive or transmit the information.
This is the general idea of my script:
Teleporting Script:
TeleportService:Teleport(PlaceId, PlayerToTeleport, "This message is to test if the info gets sent")
Receiving Script:
game.Players.PlayerAdded:Connect(function()
local Data = TeleportService:GetLocalPlayerTeleportData()
if not RunService:IsStudio() then
if TeleportData ~= nil then
print("Data")
else
print("No Data") -- Prints "No Data"
end
end
end)
These are the alternatives I’ve tried:
- Changing the Teleporting Script from a Server Script to a Local Script
- Removing
if TeleportData ~= nil then
from the Receiving Script, and adding `print(#Data) which cause an error
Things to take note of:
- The place is published
- Both scripts are Server Scripts
If anyone else is experiencing this, I will consider moving this to a bug report.
Thank you for reading!