#Mute button not muting
16 messages · Page 1 of 1 (latest)
local on = script.Parent.Mute.On
local off = script.Parent.Mute.Off
on.MouseButton1Click:Connect(function()
on.Visible = false
off.Visible = true
game.StarterGui.MusicHolder.SoundGroup.Volume = 0
end)
off.MouseButton1Click:Connect(function()
on.Visible = true
off.Visible = false
game.StarterGui.MusicHolder.SoundGroup.Volume = 0.5
end)
this is the code i have
😭 dawg
what is off ?
or on
these
are they gui
button ?
local on = script.Parent.Mute.On
local off = script.Parent.Mute.Off
local volume = game.PlayerGui.MusicHolder.SoundGroup.Volume = .5
volumetoogle.MouseButton1Click:Connect(function()
if volume == .5 then
volume = 0
on.Visible = true
off.Visible = false
else
volume = .5
on.Visible = false
off.Visible = true
end)
rename the button that get clicked here to
volumetoogle
try using :Stop() instead
didn't know that was a thing