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

Script works on studio but not in roblox?

local Stoper = script.Parent
local Sound = game.Workspace.Sound
function onClick()
    Sound.Volume = 0
	Sound:Remove()
end
Stoper.ClickDetector.MouseClick:connect(onClick)

I've tried putting in a LocalScript but it still doesn't work! any help will be appreciated Thanks.

1 answer

I don't know why, but volume with sound is...broken. Try stopping the sound.

local Stoper = script.Parent
local Sound = game.Workspace.Sound
function onClick()
    Sound:Stop()
    Sound:Remove()
end
Stoper.ClickDetector.MouseClick:connect(onClick)

1 comment

0

Unfortunately it didn't D: Thanks for helping though, I appreciate it.

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