Transferring data over teleport

I am making a tower defence style game, and players select the map they want to play on in the lobby, then teleport to the match place with their party. However I need to be able to transfer the data of which map they selected between the places, and I have no idea how to do this. I know that teleport service comes with some way of transferring data but I have heard that that is client sided, and so unsecure. What method should I use to transfer the data. (not asking for scripts, just the general approach I should take).

2 Likes

Please any help would be greatly appreciated

you can add a teleportData to TeleportService:Teleport

isn’t that client-sided and unsecure though?

oh i didnt read that part

you could also store every player’s loadout in a datastore and then access the datastore in the other places (since datastores save between places but not between games)

Save the map choice on the server, include it in the teleport data, and load the map on arrival to keep data secure and ensure the correct map loads.

Currently what I decided on is to use teleport data, then after an intermission period, by the end of which most players should have loaded, I get the teleport data from each player with what the map is. Normally they should all say the same map, but in case of an exploiter changing it to a different one, it goes with the majority.

thats also a good idea, if my current one fails this is what I will do thanks :slight_smile: