Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to make an ImageLabel change image when clicked?

Hello!

I'm extremely new to scripting as well as this website so I apologize if I do anything wrong.

Right now I'm trying to make a music mute button on Roblox using an imagelabel as the icon. However, I'm wondering how I can make it so, once clicked, the imagelabel becomes a different icon.

2 comments

0

not a request site. Please try yourself first.

0

you just change the DecalID

2 answers

script.Parent.MouseButton1Click:connect(function()
	--put your mute code here--
	script.Parent.Image = 0 --decal ID here--
end)

Hope this helps. Dont forget to mark as answered if this helped

2 comments

0

You are not explaining why?

0

MouseButton1Click is not a valid member of ImageLabel

This is extremely simple, first make it a image button then do this script: Script.parent.mousebutton1click:Connect(function() script.parent.image = "ïmage here:

This discussion is preserved as it was. New answers, comments, and votes are closed.