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

how do you make a sound play then stop then play then stop?

So how do you make the sound play then after it end, stop for a few second, then play, and so on.

3 answers

This should help.

wait(time)
script.Parent.yoursound.Playing = true
wait(time)
script.Parent.yoursound.Playing = false

end

1 comment

0

ok thanks, i am building a school game so it will help with the bell. thanks sooo much

This Would Play It Forever. If You Want That Too.

while true do --DJH_100
	local beep = script.Parent:FindFirstChildOfClass("Sound") --Finds The Sound. 
	local timer = 1 --Sets How Much To Wait.
	beep:Play()--Play
	wait(timer)--Wait
	beep:Stop()--Stop
	wait(timer)--Wait'
	--Repeats
end
audio = script.Parent
cooldown = 5

while true do
	audio.Playing = not audio.Playing
	wait(cooldown)
end

the simplest out of them all

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