So, I’ve been working on a game lately, and in my game I added a mute button. But for some reason, when I went into the game, I got an error message saying, Volume is not a valid member of Model.
Oh and here’s the code for the mute button that I always use for the mute button:
local music = game.Workspace.Sunscreen
script.Parent.MouseButton1Click:Connect(function()
if music.Volume == 0.5 then
music.Volume = 0
end
end)
Please help. Because I have no idea about what is going on, because I always use this code for my mute buttons.
Thanks.