Hello im trying to add a mute button for my boombox to avoid copyright music in other streams and videos can someone tell me why it mutes for everyone and fix it!?!
LocalScript
script.Parent.MouseButton1Click:connect(function(onClick)
script.Parent.Text = "Muted"
game.Workspace.Lobby.Vip_Room.DjBox_Bysayer80.Part800.Audio.Volume = 0
script.Parent.LocalScript2.Disabled = false
script.Parent.LocalScript.Disabled = true
end)
LocalScript2
script.Parent.LocalScript.Disabled = true
script.Parent.MouseButton1Click:connect(function(onClick)
script.Parent.Text = "Unmuted"
game.Workspace.Lobby.Vip_Room.DjBox_Bysayer80.Part800.Audio.Volume = 1
script.Parent.LocalScript.Disabled = false
script.Parent.LocalScript2.Disabled = true
end)

5 comments
oh ok ;D thank u
Doesn't work if i put the brick with the sound in it it will just dissapear and the audio doesnt exist
The audio is like a Dj Table
You don't put the brick in there, just the audio instance.
The problem was i made the script with new.Instance and i found out i should use no new instance so i forgot to delete parent of the audIo