Color3 & Vector3 Lua Environment
Vector3
vector3.new(x, y, z)
vector3.new(x, y, z)local vec = vector3.new(10, 5, 0);vector3.zero()
vector3.zero()local origin = vector3.zero();vector3.one()
vector3.one()local scale = vector3.one();vector3.unit_x()
vector3.unit_x()vector3.unit_y()
vector3.unit_y()vector3.unit_z()
vector3.unit_z()vec.x, vec.y, vec.z
vec.x, vec.y, vec.zArithmetic Operations
vec:length() / vec:magnitude()
vec:length() / vec:magnitude()vec:squared_magnitude()
vec:squared_magnitude()vec:dot(other)
vec:dot(other)vec:cross(other)
vec:cross(other)vec:normalize()
vec:normalize()Color3
color3.new(r, g, b)
color3.new(r, g, b)color3.from_rgb(r, g, b)
color3.from_rgb(r, g, b)color3.from_hex(hex)
color3.from_hex(hex)color3.from_hsv(h, s, v)
color3.from_hsv(h, s, v)color3.random()
color3.random()color3.rainbow(hue)
color3.rainbow(hue)Static Presets
col.r, col.g, col.b
col.r, col.g, col.bArithmetic Operations
col:lerp(target, alpha)
col:lerp(target, alpha)col:to_string()
col:to_string()Last updated