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

DataSave not saving data at all?

Asked by 6 years ago

Hello. I am experiencing so, so, so much difficulty with the datasave and the data just does not save what so ever! SCRIPT:

001game:BindToClose(function()
002    wait(30)
003end)
004 
005local DataStore = game:GetService("DataStoreService"):GetDataStore("MainCarDataStore")
006local autosavex = 60
007local playerRemoved = false
008 
009game.Players.PlayerAdded:Connect(function(plr)
010    wait(1)
011    local CamaroOwned = Instance.new('BoolValue',plr)
012    CamaroOwned.Name = "CamaroSSOwned"
013    local LamOwned = Instance.new('BoolValue',plr)
014    LamOwned.Name = "LamborghiniOwned"
015    local Audi4Owned = Instance.new("BoolValue",plr)
View all 105 lines...

Seriously i need so much help with this i have been trying for ages now to complete this. I have tried using player removing to save and that does not work at all. Please help! All help is appreciated!

1 answer

Log in to vote
1
Answered by
kapipi12 133
6 years ago

As I said to the last person asking about it, it might be complicated by Instance.new. Try another method to creating it or just do it without an instance, just create it in a folder, cause you are always inserting the new value and when you rejoin, it inserts new instead of saving last one. Hope it helped!

0
so make a folder in server storage for example. Then get the values copy them and put them in the player? RobbieTheUltraGamer 7 — 6y
1
I just said "It might be" so I don't know what funny thing is in my answer. kapipi12 133 — 6y
1
Yes, try something like that. kapipi12 133 — 6y
0
Did not work at all. RobbieTheUltraGamer 7 — 6y
Ad

Answer this question