Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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

1 answer

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.

3 comments

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

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.

0

Mark it as answered though

This discussion is preserved as it was. New answers, comments, and votes are closed.