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

Trying to set values with a database can anyone help?

Asked by 8 years ago

Can anyone tell me what I did rouge in this?

01local DataStoreService = game:GetService('DataStoreService')
02local Con = script.Parent.Con
03local Storage = Con.Storage
04local Prim = Con.Prim
05local Sec = Con.Sec
06local Key = game.Players.LocalPlayer.userId
07-- Slots
08local DSS1 = DataStoreService:GetDataStore('Slot1')
09local DSS2 = DataStoreService:GetDataStore('Slot2')
10local DSS3 = DataStoreService:GetDataStore('Slot3')
11local DSS4 = DataStoreService:GetDataStore('Slot4')
12-- Prim
13local Primm = DataStoreService:GetDataStore('Prim')
14-- Sec
15local Secc = DataStoreService:GetDataStore('Sec')
View all 23 lines...
0
What's the issue? Uglypoe 557 — 8y
0
It wont save the data when the player leaves Credit_worthy -2 — 8y
0
or getting the data Credit_worthy -2 — 8y

1 answer

Log in to vote
2
Answered by 8 years ago

This video that I watched earlier really helped me out. You can change and meld the script into what you need: > https://www.youtube.com/watch?v=Nfm-CtRUNqk

Ad

Answer this question