local data = game.StarterGUI.PlayGUI.Frame.Attributes.BlockData1 data.BackgroundColor3.b = 0 data.BackgroundColor3.r = 85 data.BackgroundColor3.g = 225 this is what i did but its not working its saying b cannot be assigned to that's it the color im trying to make is green
✓ ANSWER ACCEPTED
What is the easiest way to change the backroundcolor3 in a gui?
1 answer
✓ Accepted answer
You can easily convert an RGB to a Color3 value using Color3.fromRGB. Simply enough, all you have to do is type the desired values into the parenthesis. Here's an example, and good luck with your game!
local Frame = Instance.new("Frame")
Frame.BackgroundColor3 = Color3.fromRGB(85, 225, 0)
-- This will set the color to the shade of green you wanted.
1 comment
0
thx alot
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
it would be easier if you used a lua block (~~~~~~~~~~~~~ ~~~~~~~~~~~~~~)
Easier for people to read that is