local nyancat = script.Parent.ClickValue local soundid = game.Workspace.PickAToonSongs if nyancat.Value == 1 then soundid:Stop() end
I would use a Changed() event.
Here:
local nyancat=script.Parent.ClickValue local soundid=game.Workspace.PickAToonSongs nyancat.Changed:connect(function() if nyancat.Value==1 then soundid:Stop() end end)