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

My mute button script isn't muting the song, any help?

Asked by 5 years ago
Edited 5 years ago

I made a mute button and used this script but it doesn't seem to work. Any ideas?

local sound = script.Parent.Parent.Sound

local muted = false



script.Parent.MouseButton1Click:Connect(function()

if muted then

sound.Volume = 0.3

muted = false

script.Parent.Text = "Mute"

else

sound.Volume = 0

muted = true

script.Parent.Text = "Muted"

end

end)
0
Any errors? VVickedDev 54 — 5y

Answer this question