Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I made a sound replay over and over again?

Asked by 8 years ago

I'm making this for my Star Wars Game.

2 answers

Log in to vote
0
Answered by 8 years ago

<path>.Sound.Looped = true

Ad
Log in to vote
0
Answered by 8 years ago

There's a properly called Looped in each sound. Enabling it will make it loop until the Stop function is called on it.

For example :

audio:Play() --Plays the audio.
wait(1337) -- Audio will keep looping for 1337 seconds.
audio:Stop() -- Stops the audio.

Answer this question