I get no errors or anything. When I click to mute it nothing happens. Please help!
local MusicPlaying = game.Players.LocalPlayer:WaitForChild("MusicPlaying")
local LobbyMusic = workspace.LobbyMusic:GetChildren()
local GameMusic = workspace.LobbyMusic:GetChildren()
while true do
wait()
if MusicPlaying == true then
wait(0.05)
for key, v in next, LobbyMusic do
print(v.LobbyMusic)
if v.IsA("Sound") then
print(v.Sound)
v.Stop()
end
end
end
end
while true do
wait()
if MusicPlaying == true then
wait(0.05)
for key, v in next, GameMusic do
if v.IsA("Sound") then
v.Stop()
end
end
end
end

1 comment
Is this in a local or server script?