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

How can I get my audio to play after 10 seconds of joining my game? [closed]

Asked by 8 years ago

I need my audio to start playing 10 seconds after some one joins my game. help needed! Please include script in your answer! thx!

Closed as Not Constructive by M39a9am3R

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
1
Answered by 8 years ago

I am not going to do it for you, you won't learn if I do that. I will walk you through it though.

game.Players.PlayerAdded:connect(function() -- When a player enters
 wait (10)                        
end)

After that you might want to Insert a new audio file using Audio = (Instance.new ("Sound", ) Make sure you put its parent

Sound has many properties. Make sure you check them out.

Sound links that will help you:

http://wiki.roblox.com/index.php?title=API:Class/Sound http://wiki.roblox.com/index.php?title=Sounds

Hope this helps.

0
I am very new to scripting. So how do I link the script to the audio? sorry but I don't know what you mean. Like I said I am VERY new to scripting DarkAssasin0 0 — 8y
0
There is something that has ID in sound. Your ID is the ID you put in that property. Try it out, I will check in the morning and if you do not get it ill walk you through it, buddy. JoshWplaysRoblox 10 — 8y
0
Mark it as answered though JoshWplaysRoblox 10 — 8y
Ad