GetPropertyChangedSignal() or .Changed not working on boolvalue(?)

this is my first time asking something in the forum so sorry if i make a mistake…

i’ve been trying to make a bool value be directly connected to a background song inside replicated storage, so when it’s true, the song mutes, and when it’s false, it unmutes
i tried getpropertychangedsignal as a method, but doesn’t seem to be working.
in the explorer you can see the value changes when it’s changed from another script, but doesn’t seem to trigger getpropertychangedsignal
i also tried using changed, but the same happened!

this is the script with the GetPropertyChangedSignal method

local bgm = script.Parent
local muted = bgm.Muted

muted:GetPropertyChangedSignal("Value"):Connect(function()
	bgm.Volume = muted.Value and 0 or 0.4
end)

and this is the one with the .Changed method


local bgm = script.Parent
local muted = bgm.Muted

muted.Changed:Connect(function(v)
	bgm.Volume = v and 0 or 0.4
end)

i forgot to mention but this is all local

1 Like
  1. Scripts with the Legacy RunContext does not run inside the ReplicatedStorage. LocalScripts will not run at all.
  2. Sounds do not output audio inside the ReplicatedStorage.
1 Like

thanks! i didn’t know that
as a solution i moved the song along with the boolvalue into workspace and the localscript that handles muting the song into PlayerScripts

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.