What do you want to achieve?
I want to load saved values to existing IntValues
What is the issue?
the saved value wont set to any of the IntValues
if success then
print(data)
smoresEaten = data.Smores.Value
TotalCash = player.PlayerAssets.TotalCash.Value
TotalWins = player.PlayerAssets.TotalWins.Value
print(playerUserId.."'s data loaded")
end
local data = {
smores = player.PlayerAssets.SmoresEaten.Value;
cash = player.PlayerAssets.TotalCash.Value;
wins = player.PlayerAssets.TotalWins.Value;
}
The data loads and passes through just fine, it just wont work when its called to be set
You’re just assigning the loaded values to variables, if you want to store them inside the value instances then you’ll need to index their “Value” properties.