I am currently trying to make a game in which the player teleports to a different place to play a certain map. After either winning or losing the map they should be teleported back to the main one. Every game they win gives them a certain amount of points.
Is there a way of using DataStores to globally save their points?
I want to do this in the most efficient way possible.
You can use DataStores between places as long as the places are under the same game. So if you make the player teleport to the map and then check if they won you can retrieve the Datastore for “Wins” and update it and it will update for all places so including the main one. In my opinion, you can use DataStore2 to achieve this even easier!
I might be wrong about the page above. Since I don’t have access to Studio, try testing a normal data store in an universe. Add something from the starting place followed up by reading the output from the other place.
I believe if your places aren’t under one universe (which it sounds like they are but for the sake or argument) you’d need to use http service and a server. But yes if your places are in a single universe then you can access via DataStores. Just make sure to save each players data fully when they leave. (seems obvious)
DataStores are global to your game by default. Any place in your game using DataStores has access to the same partition of data. Places not part of the same game require an external server to accomplish data transferring.
Also, for the sake of clarifying terminology since I see there’s a bit of misconception here, I’ll just add a quick little game glossary.
To be honest, at one point I was considering using an external API anyway as web development is my thing. The only con would be if the hosting I used was down meaning players data wouldn’t save.