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

How do I make the Background color of a GUi change correctly?

I have tried -

function onClicked()
	script.Parent.BackgroundColor3 = Color3.new(121, 121, 121)
script.Parent.MouseButton1Click:connect(onClicked)

And the color ended up being - (30855, 30855, 30855)

1 answer

✓ Accepted answer

You must diving by 255 to get a 0 - 1 value

function onClicked()
    script.Parent.BackgroundColor3 = Color3.new(121/255, 121/255, 121/255)
end
script.Parent.MouseButton1Click:connect(onClicked)

1 comment

0

Thank you :D

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