Transferring data between games problem

im trying to transfer data between games and the partyplayers variable thing is printing nil

main game script

local partyplayers = #playersToTP
tpOptions:SetTeleportData(partyplayers)
tps:TeleportAsync(14654208895, playersToTP, tpOptions)

sub game script

game.Players.PlayerAdded:Connect(function(plr)
    local joinData = plr:GetJoinData()
    local partyplayers = joinData.partyplayers
    print(partyplayers)
end)

try a local script, GetJoinData() returns all join data, not just teleport data

i fixed it by myself plus ur wrong

nice good job! im a pretty new developer so im trying to improve, thanks for clarifying!