How to safely send unique Teleportdata for every client?

In my game I want to teleport players to a private server. Every single player has a data folder and inside that data folder there is a ‘moves’ folder.

image

My goal is to send the private server what moves every player has.

The problem i’m encountering is that I cant send every player there own teleport data, in this case the moves folder. How would I give every player their unique teleport data safely so that exploiters can’t change it in game?

local server = teleportService:ReserveServer(placeId)
teleportService:TeleportToPrivateServer(placeId, server, players, nil, "teleport data")

Any help is appreciated :slight_smile:

1 Like

You dont.

Send that data to the server for protection, collect the data within each player, and then use apply it as a parameter within TeleportData.

You can then access this data again in the other place by using TeleportService:GetLocalPlayerTeleportData()

If you really have to, use a RemoteEvent for this purpose, send their specific data, and when they teleport, use the same function to get that specific data.

What do you mean? How should I give every player their own teleport data?

Here is my script, maybe it will help you a bit:

for i=1, #queue do
		
		if game.Players:FindFirstChild(queue[i]) then
			table.insert(players,game.Players:FindFirstChild(queue[i]))
		else
			table.remove(queue, i)
		end
	end
	
	local server = TeleportService:ReserveServer(placeId)
	teleporting = true
	TeleportService:TeleportToPrivateServer(placeId, server, players, "Spawn", "apples")
	repeat wait() until #queue <= 0

	teleporting = false

This is a normal script in my starting place.
How would I tell my private server how much cash everyone has?