How can I get one color channel from a Color3?

So I was working on a script that would serialize complex data types, but I realized that I didn’t really know how to get a single color channel from a Color3 value. How would I go about splitting the R, G, and B values?

color.r, color.g, color.b. It’s that easy.

2 Likes

All Roblox data types have useful properties, constructors, and methods that you can see on the wiki, for future reference.

6 Likes