Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to make an ImageLabel change image when clicked?

Asked by 6 years ago

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.

0
not a request site. Please try yourself first. WideSteal321 773 — 6y
0
you just change the DecalID tonyv537 95 — 6y

2 answers

Log in to vote
1
Answered by
SpiralRBX 224 Moderation Voter
6 years ago
Edited 6 years ago
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

0
You are not explaining why? WideSteal321 773 — 6y
0
MouseButton1Click is not a valid member of ImageLabel goreacraft 1 — 5y
Ad
Log in to vote
0
Answered by 4 years ago

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

Answer this question