OwlProfile:Decrement(key: string, amount?: number)

Server Only

Decrements a numeric key by the specified amount, throws an error if the key isn't a number.

Parameters

key*
string
Target index path tracking a number value.
amount
number
The step value to subtract. Defaults to 1 if omitted.

Returns

voidNothing.
profile:Decrement("Coins", 50)