How do I change the background colour of a gui

I am trying to change the colour of my frame and I’m having a problem

button.MouseButton1Down:Connect(function()
	Sprint:FireServer()
	button.BackgroundColor3(84, 166, 94)
end)

In the output it says

Players.JadtrugamingYT1.PlayerGui.SprintButton.Run.LocalScript:7: attempt to call a Color3 value
end)
1 Like

button.BackgroundColor3 = Color3.new(84, 166, 94)

Ok thank you I will try it :smile:

You need to do this (this is for every color change)

button.BackgroundColor = Color3.fromRGB(84, 166, 94)

Here’s an article about Color.

1 Like