float
Floating-point number. Same Luau emit as int and double.
Syntax
Section titled “Syntax”float name = value;Parameters
Section titled “Parameters”None.
Return value
Section titled “Return value”A value of type float, emitted as number.
Luau emit
Section titled “Luau emit”number
Description
Section titled “Description”observable float becomes NumberValue. Use for speed, alpha, damage with fractions.
Example
Section titled “Example”float speed = 16.5;Emits:
local speed: number = 16.5