Hello, I am trying to make a saving color3 value in a table with other values but I get the error “R cannot be assigned to”. Here is the part of the script with the error:
local s = saves["colourTheme"]
local R,G,B = string.split(s,"!")[1],string.split(string.split(s,"!")[2],"?")[1],string.split(string.split(s,"!")[2],"?")[2]
print(string.sub(R,1,1))--Prints "0" -- correct string
colourTheme.Value.R = tonumber(string.sub(R,1,1))
colourTheme is the color3 value. Any help will be appreciated.
Well, im a bit late with the answer but:
I used your solution and discoverd that you don’t need to divide the values by 255.
Just R, G and B are good enough.