im having a issue with datastore save im a beginner in datastore scripts
the issue im having that i cant add more value example:datastorenew = oldvalue.Money +NewValue.Text i got the script
AddRobux.OnServerEvent:Connect(function(player, textboxrobux,text)
local AcountSearch = DataStore2:GetAsync(text)
local NewValue = AcountSearch.Robux + textboxrobux
DataStore2:SetAsync(AcountSearch,NewValue)
print(AcountSearch.Robux)
end)
its give the same value if some could help me ill be happy