Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How would I make a script where it saves data from one game to multiple places in the game?

I have a game that has multiple places in it(Because of the min map size of the world & keep lag down) How would I make a script that would save data to all the places?

2 comments

1

you're going to need to put all places in the same Game Universe, Then their DataStoreService is shared (the same across all the games in the same universe)

0

Basically what I did (Because I just solved this exact problem today) was make a datasavescript that saves data and copy and paste the whole script on every place. It worked for me, but it may not for you.

1 answer

Use the datastore feature. It's used as a database for points, coins, well really anything that is a integer.. Use the Wiki for help. [Use the datastore feature. It's used as a database for points, coins, well really anything that is a integer.. Use the Wiki for help. Use the datastore feature. It's used as a database for points, coins, well really anything that is a integer.. Use the Wiki for help. [Use the datastore feature. It's used as a database for points, coins, well really anything that is a integer.. Use the Wiki for help. http://wiki.roblox.com/index.php?title=Data_store Ex:

local DataStoreService = game:GetService("DataStoreService")
local playerExperienceStore = DataStoreService:GetDataStore("PlayerExperience")
 
local playerExperience = 0
pcall(function()
	playerExperience = playerExperienceStore:GetAsync("player_1234")
end)

This discussion is preserved as it was. New answers, comments, and votes are closed.