TeleportService:GetLocalPlayerTeleportData() Refuses to Work

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:

  1. Changing the Teleporting Script from a Server Script to a Local Script
  2. Removing if TeleportData ~= nil then from the Receiving Script, and adding `print(#Data) which cause an error

Things to take note of:

  1. The place is published
  2. Both scripts are Server Scripts

If anyone else is experiencing this, I will consider moving this to a bug report.

Thank you for reading!

Try running in this in just a LocalScript.

local TeleportService = game:GetService("TeleportService")
local Data = TeleportService:GetLocalPlayerTeleportData()
    if not RunService:IsStudio() then
	    if TeleportData ~= nil then
		    print("Data")
	    else
		    print("No Data") -- Prints "No Data"
	    end
    end

To add on to this, the teleportation script should be in LocalScript as well.