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

How can I start a music in a certain time with script?

Asked by 4 years ago

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?

0
To be certain, do you want the sound to start 5 seconds in or create the sound 5 seconds before playing it? Benbebop 1049 — 4y
0
I want the sound to start in 5 seconds JadsonGamesBrasil 0 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago

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.

0
I did it, but not work. The sound is not playing JadsonGamesBrasil 0 — 4y
Ad

Answer this question