Well, I'm doing a subtitle of a music in Roblox, but I don't know how to preload a music, and I was thinking that I can just put "wait (5)" on music's script, but I failed... I want know how can I start a music in a certain time with script?
COMMUNITY QUESTION
How can I start a music in a certain time with script?
1 answer
Using wait would work just fine. Try this:
Put a script into ServerScriptService
Put the sound into the script you just made
Now put this script into the ServerScriptService script:
local Sound = script.Sound -- Change "Sound" to the name of the sound inside of this script
wait(5)
Sound:Play()
This is really as simple as it gets. Be sure to change the properties of your sound to what you like.
1 comment
0
I did it, but not work. The sound is not playing
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
To be certain, do you want the sound to start 5 seconds in or create the sound 5 seconds before playing it?
I want the sound to start in 5 seconds