GUI Button change Image GUI

Hello!

I am trying to make a GUI where if you press the button it changes the other GUI image and I can’t figure it out, any help is appreciated!

Hi bud4fuzz,

I am not sure I understand what you’re trying to do, but I hope I got it right.
If you’re trying to make a gui button change the image in an image label, here’s what you can do.

1 - Create a local script inside your gui button

2- Type this in :

script.Parent.MouseButton1Click:connect(function(player)
	script.Parent.Parent.ImageLabel.Image = "rbxassetid://your id goes here"
end)

This will change the image label’s image to the image you have selected.
Note : In my example I am assuming that your button & image label are both inside of a the same frame.

Good luck & I hope this helps.

7 Likes

Yes it helped alot! but is there anyway it connect to image label without it being in the same frame?

Send a screenshot of your workspace so we can see where the GUI and the frame is positioned, please.