Basically I want the player to donate 1% of their cash only... I tried down here but got the error "attempt to perform a arithmetic on field 'Cash' (a userdata value)"
local data = player.PlayerData --this works local increment = 0.01 --1% of their money local donationValue = data.Cash * 0.01 --this is the line giving the error by the way print(donationValue)
"Cash" is an instance. Your trying to multiply an instance. Arithmetic doesn't work that way. To get the VALUE held BY THE VALUE, it must be "Cash.Value"