generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: How to play things in order?

Previous Thread :: Next Thread 
cooldaniel234 is not online. cooldaniel234
Joined: 21 Aug 2010
Total Posts: 921
10 May 2017 10:23 PM
Suppose you have a table

Table = [444,333,222,111]


How do you make run each audio in order and not randomly?


Report Abuse
Cyrakohl is not online. Cyrakohl
Joined: 09 Nov 2014
Total Posts: 3197
10 May 2017 10:25 PM
Imo i suggest randomly.


R$10,012
Report Abuse
128Gigabytes is not online. 128Gigabytes
Joined: 17 Apr 2014
Total Posts: 3616
10 May 2017 10:27 PM
by just looping through the table
Report Abuse
qqtt991 is online. qqtt991
Joined: 14 Dec 2007
Total Posts: 1387
10 May 2017 10:47 PM
Something like this maybe?


idTable = [444,333,222,111]
local soundPlayer = Instance.new("Sound", someParent)

for _,audioId in pairs(idTable) do
soundPlayer.Content = "rbxassetid://"..audioId
soundPlayer:Play()
wait(soundPlayer.TimeLength)
end


Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image