onlyZeroArgsUse Color3.fromRGB() instead of new Color3(). new Color3() uses floats [0-1] and performs worse than Color3.fromRGB() which uses [0-255]. Only 'new Color3()' or 'new Color3(0, 0, 0)' are allowed.Color3 Constructorsmall-rules/no-color3-constructorBan new Color3(...) except new Color3() or new Color3(0, 0, 0). Use Color3.fromRGB() instead.
new Color3(r, g, b) takes floats from 0 to 1. Color3.fromRGB(r, g, b) takes 0 to 255. The float version
is easier to get wrong and it’s slower. The engine converts internally. Just use fromRGB.
This bans new Color3(...) unless it’s new Color3() or new Color3(0, 0, 0). Those are fine. Auto-fixes
the rest to fromRGB. If a component isn’t a literal number it’ll still flag it (set
reportUnknownComponents to false if that bugs you).
onlyZeroArgsUse Color3.fromRGB() instead of new Color3(). new Color3() uses floats [0-1] and performs worse than Color3.fromRGB() which uses [0-255]. Only 'new Color3()' or 'new Color3(0, 0, 0)' are allowed.useFromRGBUse Color3.fromRGB() instead of new Color3(). new Color3() uses floats [0-1] and performs worse than Color3.fromRGB() which uses [0-255].This rule accepts one options object after the severity.
new Color3(255);After auto-fix
Color3.fromRGB(255, 0, 0);Color3.fromRGB(255, 128, 64);