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)
Well.... why is this in workspace? all uis objects have to be put in the StarterGui
service in order for them to work, and since they are local, you gotta use a local script not a server script (a server script is pretty much the normal script you use most of the times)