Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How would I access DataStore Uni.?

Asked by
HexC3D 830 Moderation Voter
10 years ago

How would I be able to load DataStore Value on a different game but Same Universe?

z = game.Workspace.Value
ds = game:GetService("DataStoreService"):GetGlobalDataStore() 
ds:SetAsync(z.Value) -- How would I load this value e.e

I know How to save but loading it on a different game(same Universe) is giving me problems, how would I do this? I've Tested this but it just won't load and I don't know why. z is a IntValue btw..

0
THis is CLOSED and I'm not accepting anymore answers because I had to figure it out on my own, q,q So is the repost HexC3D 830 — 10y

1 answer

Log in to vote
-1
Answered by 10 years ago

Please post your full code, if this is the code, here are a few things

1 - What is z standing for? You MUST define z or it just wont do anything, example

ds = game:GetService("DataStoreService"):GetGlobalDataStore() 
z = game.Workspace.HexC3D
ds:SetAsync(z.Value) -- How would I load this value e.e

That's just an example but you need to define it for it to work.

0
This is now what I MEAN!!! HexC3D 830 — 10y
0
You can't Save a Model It's does not have a VALUE, btw. HexC3D 830 — 10y
0
It's an example obviously, i know that. I was just stating you need to define z before you can have it looking for a Value string. TwoSlhue 5 — 10y
0
Yeah, but my question is on how to access is in Universes. HexC3D 830 — 10y
0
in Universe's* HexC3D 830 — 10y
Ad

Answer this question