So I am working on a music mute button but I want it to use images rather text and I don't know how to make it go to a different image then back to the original image I've been on the Roblox discord trying to get help but the best thing I could do with help is this
script.Parent.MouseButton1Down:connect(function()
if script.Parent.image == 'rbxgameasset://Images/Better Unmute'
then
script.Parent.image = 'rbxgameasset://Images/Speaker'
else
script.Parent.image = 'rbxgameasset://Images/Better Unmute'
end
Im new to coding so please don't hate. The main image is the Speaker but I want it to change to The Unmute once clicked. And once the unmute is clicked I want it to go back to the Speaker.

2 comments
The script seems perfectly fine. The only issue I can see is you haven't typed the asset id right. It's "rbxassetid"// your image id here"
You can view the image from toolbox, right click it and just paste the URL for faster work.