local color = Color3.fromRGB(128, 0, 255) --color3 or integer here local floor = math.floor local fromInt = function(integer) local int = tonumber(integer) return Color3.fromRGB(floor(int/256^2)%256,floor(int/256)%256,floor(int)%256) end local toInt = function(col) return tostring(floor(col.r*255)*256^2+floor(col.g*255)*256+floor(col.b*255)) end --if it's a integer then the function should be fromInt --if it's a color3 then the function should be toInt print(toInt(color)) setclipboard(toInt(color))