math.Clamp(number, number, number)

shared
Clamps a number between two values.

Arguments

Returns

  • number The number clamped between the two values.

Examples

math.Clamp – Clamps a number between two values.