backupRoswaal has moved to roswaal.app. These pages are a backup copy.Go to roswaal.app

ClampLuau✎

Math node.

Pending review

Clampnumber0Value0Min1Max
  • the language itself, so it works in Roblox and in Lune
  • pure — no execution pins, wire it anywhere
  • names its result — Result name in the Inspector is the local it binds, and a Declare Local reading that result makes a second one: see Variables and locals

Inputs

  • Value:number= 0
  • Min:number= 0
  • Max:number= 1

Outputs

  • result:number

What it compiles to

luau
print(math.clamp(0, 0, 1))

Not reviewed yet