Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

My Sound Will Not Stop When Value is 1?

local nyancat = script.Parent.ClickValue
local soundid = game.Workspace.PickAToonSongs
if nyancat.Value == 1 then 
soundid:Stop()	
end

1 comment

0

Thing is the script does not work it wont shut down my sound and i have changed nearly all the condtions

1 answer

✓ Accepted answer

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)

1 comment

0

did the trick!!!!! Thanks

This discussion is preserved as it was. New answers, comments, and votes are closed.