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.
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")
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.
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?