When I click the button to toggle it, it does nothing My hierarchy is workspace>Furniture>Radio>Sign>SurfaceGui>TextButton>LocalScript
script.Parent.MouseButton1Click:connect(function()
if script.Parent.Parent.Parent.Parent.Music.Volume == 0.8 then
script.Parent.Text = ('(OFF)')
script.Parent.Parent.Parent.Parent.Music.Volume = 0
else
script.Parent.Text = ('(ON)')
script.Parent.Parent.Parent.Parent.Music.Volume = 0.8
end
end)

1 comment
You need to put the SurfaceGui into the StarterGui and Adornee to the Part