Change Button's Color onClick doesn't work

Greeting, I’m Abd! I’m a UI Designer and a Beginner Scripter, I’m trying to script my Application Center!
Can someone check what is the wrong in my script?

script.Parent.MouseButton1Click:Connect(function()
	local Answer = script.Parent.Parent.Answer1
	print("You got the Question 1 correct, Keep up.")
	Answer.BackgroundColor3 = Color3.new(85, 255, 127)
end)

Screenshot from the Application:

2 Likes

You’re using Color3.new() wrong. I believe you mean Color3.fromRGB()

1 Like

Thanks you, It works. :sparkling_heart:

1 Like