Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Can DataStoreService store a Color3.fromRGB() value?

Your question body must be at least 20 characters long. Think of more to say! can it tho?

1 comment

0

I don't think you can, but you can save it as a table, like: {r,g,b} and then convert on load

1 answer

✓ Accepted answer

You can't save a userdata value to a datastore. You could easily convert it into a string or a table just like how Leamir described.

local Color = Color3.fromRGB(255, 255, 255)
local Serialized = {Color.R, Color.G, Color.B}

local Deserialized = Color3.fromRGB(unpack(Serialized))

This discussion is preserved as it was. New answers, comments, and votes are closed.