Why do other sounds play when a value is changed besides this one sound? Whenever the value is changed the sound does not play when it is supposed to
Script:
alarmactivated = script.Parent.Parent.AlarmActivated
speaker = script.Parent.Speaker
strobe = script.Parent.Strobe
sl = script.Parent.SL
alarmactivated.Changed:Connect(function()
if alarmactivated.Value == true then
sl.Enabled = true
speaker.Sound:Play()
else
speaker.Sound:Stop()
sl.Enabled = false
end
end)