I want clicking the play button in my game menu to change its background color to black and to change the background color of the other tabs in the menu to dark grey. I don't understand why this isn't working.
function onButtonClick()
script.Parent.BackgroundColor3.r = 0
script.Parent.BackgroundColor3.g = 0
script.Parent.BackgroundColor3.b = 0
script.Parent.Parent.Home.BackgroundColor3.r = 45
script.Parent.Parent.Home.BackgroundColor3.g = 45
script.Parent.Parent.Home.BackgroundColor3.b = 45
script.Parent.Parent.Store.BackgroundColor3.r = 45
script.Parent.Parent.Store.BackgroundColor3.g = 45
script.Parent.Parent.Store.BackgroundColor3.b = 45
script.Parent.Parent.Transfers.BackgroundColor3.r = 45
script.Parent.Parent.Transfers.BackgroundColor3.g = 45
script.Parent.Parent.Transfers.BackgroundColor3.b = 45
script.Parent.Parent.Club.BackgroundColor3.r = 45
script.Parent.Parent.Club.BackgroundColor3.g = 45
script.Parent.Parent.Club.BackgroundColor3.b = 45
script.Parent.Parent.Parent.PlayFrame.Visible = true
end
script.Parent.MouseButton1Click:connect(onButtonClick)
