-
What do you want to achieve?
I want the image and text in the Gui to change when clicked. This is for a mute button. -
What is the issue?
It isn’t changing at all. It successfully mutes/unmutes the audio, but doesn’t change the Gui. -
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I checked the script for obvious errors and don’t see any. I looked for solutions and only found one thing, it was a tutorial for something similar. The code was very similar, didn’t work.
Image and script below

local music = game.Workspace.Music
local muteText = game.StarterGui.MuteButton.TextLabel
local muteImage = game.StarterGui.MuteButton.TextLabel.ImageButton
script.Parent.MouseButton1Click:Connect(function()
if music.Volume == 1 then
music.Volume = 0
muteText.Text = "Unmute"
muteImage.Image = "rbxassetid://6853258454"
else music.Volume = 1
muteText.Text = "Mute"
muteImage.Image = "rbxassetid://166376559"
end
end)
If I didn’t give enough info or formatted this weird, apologies. This is my first post.


