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

How to change GUI colour through script?

script.Parent.MouseButton1Down:Connect(homeButtonClick)

function homeButtonClick ()
	script.Parent.Parent.screen.BackgroundColor3 = Color3.new(252,0,9)
end

It is not working. Every time I click the button I get: attempt to call a nil value

Any fixes?

1 comment

0

would you mind showing a picture of the explorer? attempt to call a nil value usually occurs when something doesn't seem to exist

1 answer

Maybe try script.Parent.Parent.screen.BackgroundColor3 = Color3.fromRBG(252,0,9)

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