printconsole Synchronous
Print text using an RGB color in the console. Use a color to distinguish a category of output or emphasize a short status message. RGB components here use 0–255, unlike normalized Drawing color components.
Luau
printconsole(text: string, red: number?, green: number?, blue: number?) -> ()Parameters
| Parameter | Type | Description |
|---|---|---|
text | string | Text to display. |
red | number? | Red component from 0 to 255. Omission defaults to 255; explicit nil is rejected. |
green | number? | Green component from 0 to 255. Omission defaults to 255; explicit nil is rejected. |
blue | number? | Blue component from 0 to 255. Omission defaults to 255; explicit nil is rejected. |
Returns
()This function returns no values.
Example
Luau
printconsole("Saved successfully", 80, 200, 120)