script.Parent.MouseButton1Click:connect(function(onClick)
script.Parent.BackgroundTransparency = 0.5
script.Parent.Parent.Inv2.BackgroundTransparency = 0.7
script.Parent.Parent.Inv3.BackgroundTransparency = 0.7
script.Parent.Parent.Inv4.BackgroundTransparency = 0.7
script.Parent.Parent.Inv5.BackgroundTransparency = 0.7
end)
I put this in another button, but when I click it it doesnt make Inv1 go back to 0.7

7 comments
I justeditted my answer with some more stuff that needs to be implement so yeah.
It's almost the same, just add the part I made inside the first if statement. I editted mine also.
thanks :)
it doesnt work :/
editted to another thing of why it isnt working
Well, try debugging with the print function. Check te values of p.Inv1 and find out if they're all connected well. Check if it sees the mouse click etc.
I have made one edit now. It works as is, just long in my eyes