Hello fellow devforum users! I was wondering if it is possible to carry stats from game to game. For example: Say I made a simulator game, one player had 100 coins, then I made a sequel to said simulator. How exactly could I carry that players 100 coins to the games sequel? If it is even possible at all.
You can’t transfer data from game to game, but by making badges for like 100 coins, 1000 coins, 10000 coins (and so on) you can detect from the other game that you have the badge, and check if the player have already recived the money, if not then give them the amount
but this is a bad method of doing it (to my knowledge at least)
You can technically transfer data from one experience to another but it’s a hacky solution and is better than just badges. You can use TeleportService and DataStoreService.
TeleportService:Teleport() allows you to include data when you run it on the server, which can then be read by the game you teleport the user to. You could use this for example to send DataStore values from Game A to Game B. You can read the documentation on TeleportService here for a better understanding: TeleportService | Documentation - Roblox Creator Hub
You should implement secure data encryption for that method and verify that it’s that user’s data as it’s unsecure and people can just set thier TeleportData, so you should always verify it first.
Absolutely, I should’ve mentioned this in my original response. (OP - This can be as simple as including a variable only known server side on game A when teleporting which is then checked on the server of game B. If it doesn’t match up precisely you should have a system in place to void the TeleportData. Using a server side only variable adds a layer of security to ensure that teleports are legitimate and unaltered by exploiters)