Question is wack, but here it is..

How do I make this mute radio button work when you're in the menu? I tried and this is my final code before giving up.

game.ReplicatedStorage.MuteRadio.OnServerEvent:Connect(function(player)
	local Sound = player.Character:WaitForChild("RadioMesh"):FindFirstChild("Sound")
	Sound.Volume = 0
		local hand = game:GetService("ServerStorage"):WaitForChild("Radio"):FindFirstChild("RadioMesh")
		local char = player.Character 
	hand.Parent = char
	hand.Sound.Volume = 0
end)d
end)

ALL of this is in a StarterGUI in a script which has a remote that fires in it. The player who is in the menu is removed so idk if that changed anything. If you mute radio you can't hear your own radio but you still can (idk about others yet). Idk what I'm doing and attempted to do what I just did up there.

Update: I moved all of the code into a workspace script.. Remote fires when a mute button has been clicked. Doesn't mute (from how I tested) still.

3 comments

0

So does the code you posted mute only your own radio or it doesn’t even do that?

0

Why is your server script in StarterGui? You should put it in workspace or ServerScriptService.

0

It doesnt work in StarterGUI? Man I hate making these kind of scripts.