Sending secure teleportdata with TeleportToPrivateServer

Hello,
My game has matchmaking system and the server size is flexible.
So I would like to pass Server Size of each match through Teleport Data
But I don’t know how to do it properly as I’ve been trying for an hour and couldn’t get it works.

TS:TeleportToPrivateServer(13029506110,server,getPlayers(),nil,{count=#getPlayers()})

The code I’m using, but I heard getting LocalTeleportData from client isn’t so reliable
So I would like to know if there is any better method to do this.

I’ve tried using MemoryStoreService but I don’t know how that works

Thanks!

Use: Player:GetJoinData()

Players.PlayerAdded:Connect(function(player)
    local joinData = player:GetJoinData()
    local teleportData = joinData and joinData.TeleportData
    print(teleportData) --> {count = 4}
end
1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.