Paint
Contains functions for controlling the color of a paintable Entity.
Functions
setColor(color)
Applies the specified color.
Parameters
- color — The {{Color}} to apply.
Example
Set to red the color of a Magic platform entity.
function onStart()
local red = Color.new(255,0,0)
Paint.setColor(red)
end
Result
resetColor()
Reverts to the default Color.
Example
Reset the color of a Magic platform entity after 2 seconds.
function onStart()
local green = Color.new(0,255,0)
Paint.setColor(green)
Task.wait(2)
Paint.resetColor()
end