Could you try changing
player.DataStore.Coin1.Value = data.Coin1
player.DataStore.Coins2.Value = data.Coin2
to
local DSFolder = player:WaitForChild("DataStore")
DSFolder:WaitForChild("Coin1").Value = data.Coin1
DSFolder:WaitForChild("Coins2").Value = data.Coin2
Quite the contrary! I almost went crazy trying to make the native DataStore work and now with DataStore2 I have everything working … The code is clean, reduced and mainly the rescue system is reliable. Just looking at which bestseller games currently using Datastore2, it’s no wonder …
AMX13F3AM
(Amx_Dev)
August 7, 2020, 2:19pm
#24
ok,im sorry about that, how about you briefly explain how it works and we can learn?
1 Like
Very easy to learn, just read the examples there: DataStore2
1 Like
I think it’s better to choose DataStore 2, I just know that this is going to be very complex but it’s life. Nothing seems to work in this script
AMX13F3AM
(Amx_Dev)
August 7, 2020, 2:21pm
#27
Btw @rogeriodec_games Do you know about ContextActionService?
1 Like
Have you tried this?
Could you try changing
player.DataStore.Coin1.Value = data.Coin1
player.DataStore.Coins2.Value = data.Coin2
to
local DSFolder = player:WaitForChild("DataStore")
DSFolder:WaitForChild("Coin1").Value = data.Coin1
DSFolder:WaitForChild("Coins2").Value = data.Coin2
Do that at the PlayerAdded section
yes just that it still doesn’t work
Your help was still worth it. Thanks.
1 Like
It was difficult to understand at first but now everything works as I want.