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

GetDataStore is not a valid member of GlobalDataStore, what is it you know?

Asked by 5 years ago
Edited 5 years ago

Thx you ;) im you understand)))

1 answer

Log in to vote
1
Answered by 5 years ago

You're calling :GetDataStore() on a DataStore object in functions SaveData1 and SaveData2. You already got the datastores from the DataStoreService in the first few lines and defined them as variables moneyData and swingsData so all you have to do is moneyData:SetAsync(playerid, value)

Ad

Answer this question