So, I made a button that mutes in-game music if clicked...well...it's supposed to, anyways. The BUTTON works, but the function doesn't. I have a feeling I need to remake the script that mutes music. Any tips? Thanks!
Here's the script.
local Gui = script.Parent
local Player = script.Parent.Parent.Parent
local button = script.Parent.MouseButton1Clicked
local Char = Player.Character
Gui.ButtonMouse1Clicked:connect(button)
function button ()
ToggleMute ()
end
ToggleMute = Gui.MouseButton1Clicked:connect()

1 comment
Please provide your script so we can address your issues and help you fix it. Not make an entirely new script for you.