|
| 07 May 2015 05:08 PM |
I nead a sound script for my game.
I would nead one that plays song one after another and that it comes from a certain block and once it comes to the end of the last song it would start ower. Can anyone help me ? |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 07 May 2015 05:50 PM |
| Can anyone help me please? |
|
|
| Report Abuse |
|
|
JDLENL
|
  |
| Joined: 23 Dec 2009 |
| Total Posts: 1109 |
|
|
| 07 May 2015 05:51 PM |
I nead a sound script for my game.
I would nead one that plays song one after another and that it comes from a certain block and once it comes to the end of the last song it would start ower. Can anyone help me ?
___________________________________
First, insert the sounds into the block and set their pitch/volume/ID. Now, look at their duration. Make note of that number.
--script
sound = 1 while true do if sound == 1 then workspace["Sound Block Name Here"]["Name Of First Sound"]:Play() wait(Duration of First Sound) sound = 2 elseif sound == 2 then workspace["Sound Block Name Here"]["Name Of Second Sound"]:Play() wait(Duration of Second Sound) sound = 3 elseif sound == 3 then workspace["Sound Block Name Here"]["Name Of Third Sound"]:Play() wait(Duration of Third Sound) sound = 1 end
--end script
Ought to do it. |
|
|
| Report Abuse |
|
|
|
| 07 May 2015 05:51 PM |
I nead it for the game im working on (It is playabe alredy). I have a bar in there, and i have speakers, and i want to play some music in there, thats why i nead it. |
|
|
| Report Abuse |
|
|
|
| 07 May 2015 06:04 PM |
So i did what you sad but there is no sound at all
sound = 1 while true do if sound == 1 then workspace["Speaker1"]["Sound1"]:Play() wait(113.92) sound = 2 elseif sound == 2 then workspace["Speaker1"]["Sound2"]:Play() wait(106.37) sound = 3 elseif sound == 3 then workspace["Speaker1"]["Sound3"]:Play() wait(108.068) sound = 1 end
Did I do somthing wrong? |
|
|
| Report Abuse |
|
|
|
| 07 May 2015 06:08 PM |
| Is Speaker1 a model, and, Did you label the sounds "Sound1" "Sound2" and "Sound3"? |
|
|
| Report Abuse |
|
|
|
| 07 May 2015 06:09 PM |
| Speaker1 is not a model, and yeah i put the sound's inside the brick and named them Sound1,2,3- |
|
|
| Report Abuse |
|
|
|
| 07 May 2015 06:12 PM |
| And i tryed the script in the part, and in workspace and none worked. |
|
|
| Report Abuse |
|
|
|
| 07 May 2015 06:25 PM |
| Any ideas why its not working? |
|
|
| Report Abuse |
|
|
| |
|
|
| 07 May 2015 06:59 PM |
| I mean, want a link to a model for it? |
|
|
| Report Abuse |
|
|
| |
|
| |
|