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

Server Only

Increments 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 apply. Defaults to 1 if omitted.

Returns

voidNothing.
profile:Increment("Coins", 250)