How would I use LoadNumber to set a NumberValue's Value to whatever it was saved, but then if there are no Load Stats then it sets the Value to 10? I need this for my RPG system I'm coding. So far what I have:
gold.Value = plr:LoadNumber(goldKey) or 10
It does Load the value correctly, but it sets it to 0 rather than 10.

2 comments
Okay, so I would have to insert a new BoolValue named "NotNew", and set it's value to false? How would I get it so that it would set to true once the player gets the free gold? Also, are the quotations marks after the "Load" needed, because mine worked fine without the ""s.
Yes, the quotations are needed, because LoadNumber expects a string. If you do not use those it will look for a variable called goldKey which does not exist. You can save the BoolValue by doing plr:SaveBoolean("NotNew", true)