just as the title says how can i save a color3 value?
i tried to save it as a whole but it says data store can not save dictionaires .
i have not seen any clear solution in google
can anyone please provide a clear script?
just as the title says how can i save a color3 value?
i tried to save it as a whole but it says data store can not save dictionaires .
i have not seen any clear solution in google
can anyone please provide a clear script?
encode the dictionary to a json format first then save it, then just decode it if you want to load it
thank you very much for your help but as i said there isnt any clear solution can you please provide a clear script
thanks for the help so far ill be reading that
i just found the solution its pretty easy you just need to save indivitual rgb values
like this
local data =
{
["Red"] = Red;
["Green"] = Green;
["Blue"] = Blue;
}
and in local script
local Colors =
{
Data.Red,
Data.Green,
Data.Blue,
}
script.Parent.BackgroundColor3 = Color3.new(Colors[1], Colors[2], Colors[3])
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.