local music = game:GetService("SoundService"):WaitForChild("LobbyMusic") local button = script.Parent local volume = music.Volume local muted = volume == 0 local function update() music.Volume = muted and 0 or volume button.Text = muted and "Music: off" or "Music: on" end button.Activated:Connect(function() muted = not muted; update() end) update()