So im making a script with: GetOrderedDataStore and im saving a value of a value in a player but it keeps on giving me this error..

Heres the code that the error is happening on:

score:SetAsync(player.Name, player:FindFirstChild("Wins").Value)

Any help would be greatly appreciated!

6 comments

0

Is "Wins" an int value?

0

yes.

1

What is the error?

0

Can not store double in datastore..

0

Try making Wins an IntValue, not a NumberValue.

0

i figured it out