So how do you make the sound play then after it end, stop for a few second, then play, and so on.
COMMUNITY QUESTION
how do you make a sound play then stop then play then stop?
3 answers
This should help.
wait(time)
script.Parent.yoursound.Playing = true
wait(time)
script.Parent.yoursound.Playing = false
end
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.

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