Ad
Log in to vote
0

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

Asked by 4 days ago

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?

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) RubenKan 2583 — 4d
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. GottaHaveAFunTime 55 — 4d

Hi.

Looks like you're using an ad blocker.

That's fine...

No, it really is.

Just, I mean, we put a lot of work into this site, you know?

It would be really really appreciated if you would turn off your ad blocker for our website...

We tried really hard to make our ads as unobtrusive as possible.

If you really hate ads, would you consider a $2 donation via Patreon?

Here's the link.

We love you. We hope you love us too.

.

..

...

Now back to your regularly scheduled Scripting Helpers....

...

..

.

1 answer

Log in to vote
0
Answered by
Trolna 66
4 days ago

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)
Ad

Answer this question



Ad