New script color wheel errors when you doing unsure math

When attempting math where the number is not sure, the color wheel errors.

Example code:

function Intensity(state)
	if state then
		return math.random()/10
	end
	return 0.2
end
Color3.new(originalColor.r + Intensity(), originalColor.g + Intensity(), originalColor.b + Intensity())
-- click anywhere in the color3 line for the error to appear

Output:

image

3 Likes