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

Changing backgroundColor3 How?

I'm having trouble with this script and Its not working, am I doing it wrong?

GUI=Frame.BackgroundColor3 = Color3.new(255,45,38)

The color I want is not showing up and actually turning it white or Black instead the color I want

2 answers

✓ Accepted answer

Assuming "GUI" is already set to a GUIObject, you would have to use a period to access a property, not an equals sign. Also, in Color3.new(), the values need to be between 0 and 1. You can convert RGB to this format by dividing the values by 255:

GUI.BackgroundColor3 = Color3.new(255/255, 45/255, 38/255)

Hope this helped.

1 comment

0

Sorry i missed type it but thnks it works

You could instead use the Color3.fromRGB line instead:

GUI=Frame.BackgroundColor3 = Color3.fromRGB(255,45,38)

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