of     1   

robloxboy54
#139506529Monday, July 07, 2014 5:48 AM GMT

debounce=false script.Parent.ClickDetector.MouseClick:connect(function () if debounce==false then debounce= true script.Parent.BrickColor = BrickColor.new("Bright red") script.Parent.Parent.Sound:Play() script.Parent.Parent.Sound.Volume=.5 else script.Parent.BrickColor= BrickColor.new("Bright green") script.Parent.Parent.Sound.Volume=0 debounce=false end end) Ok so instead of making the volume go to 0 all the time, how do I pause the sound so it'll stop going while the sound isn't playing?
GanjaGrower420
#139506975Monday, July 07, 2014 5:54 AM GMT

Im not the best scripter but try debounce=false script.Parent.ClickDetector.MouseClick:connect(function () if debounce==false then debounce= true script.Parent.BrickColor = BrickColor.new("Bright red") script.Parent.Parent.Sound:Play() script.Parent.Parent.Sound.Volume=.5 else script.Parent.BrickColor= BrickColor.new("Bright green") script.Parent.Parent.Sound.Pause() debounce=false end end)
Inexorability
#139507068Monday, July 07, 2014 5:56 AM GMT

sound:play() sound:stop()
GanjaGrower420
#139507132Monday, July 07, 2014 5:57 AM GMT

meh I was close enough.
GanjaGrower420
#139507178Monday, July 07, 2014 5:57 AM GMT

debounce=false script.Parent.ClickDetector.MouseClick:connect(function () if debounce==false then debounce= true script.Parent.BrickColor = BrickColor.new("Bright red") script.Parent.Parent.Sound:Play() script.Parent.Parent.Sound.Volume=.5 else script.Parent.BrickColor= BrickColor.new("Bright green") script.Parent.Parent.Sound.Stop() debounce=false end end)
Inexorability
#139507264Monday, July 07, 2014 5:58 AM GMT

debounce=false script.Parent.ClickDetector.MouseClick:connect(function () if debounce==false then debounce= true script.Parent.BrickColor = BrickColor.new("Bright red") script.Parent.Parent.Sound:Play() script.Parent.Parent.Sound.Volume=.5 else script.Parent.BrickColor= BrickColor.new("Bright green") script.Parent.Parent.Sound:Stop() debounce=false end end)
Sasayaki
#139507330Monday, July 07, 2014 5:59 AM GMT

Um there is also sound:pause()
GanjaGrower420
#139507405Monday, July 07, 2014 6:00 AM GMT

See I was correct XD
GanjaGrower420
#139507461Monday, July 07, 2014 6:01 AM GMT

I think Sound.Stop() stops the sound all together while Sound.Pause() doesn't start the sound over.
robloxboy54
#139508367Monday, July 07, 2014 6:12 AM GMT

Alright thanks guys!

    of     1