I want to make a script that changes the color of an ImageLabel when you click the "open" TextButton, and when you click another TextButton that closes the GUI, I want the ImageLabel's original color to show again. I have the first part of the code that changes the ImageLabel when you click the open TextButton, but I do not know how to change the ImageLabel's color back to normal after you click the close TextButton.
Thanks for your help everyone!
Here is the code I have:
script.Parent.MouseButton1Click:connect(function()
script.Parent.ImageLabel.BackgroundColor3 = Color3.new(0,170,0)
end)
-- This makes the ImageLabel's color change when you click the "open" TextButton.
script.Parent.MouseButton1Click:connect(function() script.Parent.ImageLabel.BackgroundColor3 = Color3.new(0/255,170/255,0/255) end)
And if you're using an ImageLabel just for background colors, then just use Frames...