How to deserialize color3

i tried doing

local t = Color3.fromRGB(10,20,30)
print(t.X) and also print(t[1])

but it didnt work

You aren’t really deserializing anything. However Color3 is not Vector3, so there is no XYZ. But instead RGB. So you want t.R for the red component, t.G for the green component, and t.B for the blue component.

2 Likes