Skip to content

float

Type

Floating-point number. Same Luau emit as int and double.

float name = value;

None.

A value of type float, emitted as number.

number

observable float becomes NumberValue. Use for speed, alpha, damage with fractions.

float speed = 16.5;

Emits:

local speed: number = 16.5

int · double