So im making a story game and i was wondering after the players beat the game the get +1 wins and then get teleported back to the lobby how do i make it so when they get teleported back the lobby +1 win will save and show the amount of wins a player has
Use a DataStore
so other places in a same Universe can get and modify the value of a DataStore Name.
how do i access the same datastore from another game?
You can copy the name of the DataStore
-- Place 1
local MyDataStore_Place1 = DataStoreService:GetDataStore("Story-Wins")
-- Place 2
local MyDataStore_Place2 = DataStoreService:GetDataStore("Story-Wins")
It doesn’t matter if they are not the same in variables as long as they are the same in Syntax in GetDataStore()
parameters
Im a bit confused idk how to use data store really well