Undocumented Glow Effect for SelectionBox

I accidentally used Color3.new (0, 255, 0) for a SelectionBox to get the green color (not the correct Color3.new (0, 1, 0)) and I got this beautiful glow effect:

local selBox = workspace.Part.SelectionBox
selBox.Color3 = Color3.new(0,255,0)
selBox.Adornee = selBox.Parent

But I saw nothing documented about this (Selection Boxes or SelectionBox).
Where can I get more information about these color effects?

4 Likes

This is an unintended consequence of the Color3 value going higher than 255. I don’t think it’s behavior you can rely on being consistent, so they wouldn’t document it.

4 Likes

I might be wrong but shouldn’t you be using Color3.fromRGB rather than Color3.new?

3 Likes

Holy moly that’s a nice effect, I hope this doesn’t get changed or maybe we get a official support for it!

3 Likes

Yes, he acknowledged this in the post. The thing is, he ended up giving the SelectionBox a Color of 0, 65025, 0 which is what caused the cool effect he mentioned in the post.

2 Likes

Also I noticed that you can control the gradual glossiness in Color3.new values for something about 350 / 256 and 430 / 256…

local selBox = workspace.Part.SelectionBox
selBox.Adornee = selBox.Parent
for c=350, 450, 1 do
	selBox.Color3 = Color3.new(0, c/256, 0)
	wait(0.1)
	print(c, c/256)
end
1 Like