I have a mute radios button in my game that works and mutes radios BUT it mutes all radios including yours,
how do i make it so that it mutes other radios but not yours so you can hear your music?
i can provide the script
local enabled = true
script.Parent.Visible = true
function onClick()
script.Parent.Sound:Play()
if enabled == false then
enabled = true
game:GetService(“SoundService”):FindFirstChild(“Radios”).Volume = 0.4
script.Parent.Text = “Mute Radios”
else
enabled = false
game:GetService(“SoundService”):FindFirstChild(“Radios”).Volume = 0
script.Parent.Text = “Unmute Radios”
end
end
script.Parent.MouseButton1Down:connect(onClick)
You can add a value into every radio that holds the owners name, if the name is equal to the local players name then don’t mute it.
so would i have to make a value and put in a script that determines the radios holder
also all radios are connected to one soundgroup
meaning i dont mute them individually
You can also use CollectionService over values but this is more complicated.
i found a soulution no need to reply anymore
what was your solution? I’m also stuck at something like that
You could use a loop, but everytime it goes through a player, it checks if the players name is equal to the local players name