|
| 22 Sep 2013 11:41 PM |
I made a music brick that contains a legit Sound audio file and contains a script that has only one line of code, which plays the music.
The problem is that the music can only be heard in Edit mode. Why is this? I checked it in Build mode, and it is obviously Playing but I can't hear it. |
|
|
| Report Abuse |
|
|
|
| 22 Sep 2013 11:41 PM |
| (If this belongs in Scripting Help or Technical Issues then please redirect) |
|
|
| Report Abuse |
|
|
| |
|
tahu157
|
  |
| Joined: 16 Nov 2008 |
| Total Posts: 15045 |
|
|
| 23 Sep 2013 10:12 AM |
How long is the sound?
You can't hear a sound unless you are there for the very beginning of the sound.
The sound starts playing at time T, so If you join at time T+1, then you won't hear the sound until it is finished playing and starts over again.
So if you have a long sound, like a song, and you miss the start, then you won't hear anything until the sound has finished.
Try waiting awhile and see if you can hear the sound after the time the sound normally takes to play has passed. Or you could make the sound wait awhile before playing so that you don't miss the start in the first place. |
|
|
| Report Abuse |
|
|
|
| 23 Sep 2013 04:02 PM |
You actually answered my question I have been storing for a few weeks!
I recommend that this thread should be posted in Scripting Helpers because you don't build music! |
|
|
| Report Abuse |
|
|
tahu157
|
  |
| Joined: 16 Nov 2008 |
| Total Posts: 15045 |
|
|
| 23 Sep 2013 06:45 PM |
You don't script sounds either.
Any "how to" questions that are not about a script belong in BH. |
|
|
| Report Abuse |
|
|
|
| 23 Sep 2013 09:13 PM |
I'm doing everything right... so i'm wondering if i'm doing something that is only available for Edit mode only?
Recap: in Edit mode, the music plays correctly and loops normally. In Build/Play, it doesn't do anything. It claims its Playing but there is no audio. |
|
|
| Report Abuse |
|
|
tahu157
|
  |
| Joined: 16 Nov 2008 |
| Total Posts: 15045 |
|
|
| 23 Sep 2013 09:27 PM |
Hmm.
You said you are using a one line script? Presumably:
script.Parent:Play()
Try using this instead:
while (true) do wait (3) script.Parent:Play() wait(1) script:destroy() end |
|
|
| Report Abuse |
|
|
|
| 23 Sep 2013 09:31 PM |
I rewrote the script to include "while true do"/"end" and "script.Disable" (ONCE the music starts playing).
It doesn't work, but i'll try out your idea. |
|
|
| Report Abuse |
|
|
tahu157
|
  |
| Joined: 16 Nov 2008 |
| Total Posts: 15045 |
|
|
| 23 Sep 2013 09:36 PM |
If you have already tried running it in a loop, then my script won't change anything.
I'm not sure what to tell you. |
|
|
| Report Abuse |
|
|
|
| 23 Sep 2013 09:39 PM |
| Not sure if this is a Roblox issue or just not scripted correctly |
|
|
| Report Abuse |
|
|
tahu157
|
  |
| Joined: 16 Nov 2008 |
| Total Posts: 15045 |
|
|
| 23 Sep 2013 09:41 PM |
Some other people have complained about this problem recently.
I haven't experienced it myself, but you are not the only one. |
|
|
| Report Abuse |
|
|
|
| 23 Sep 2013 09:42 PM |
Can someone please help? (oh btw thanks @above for the attempted help)
I have tried everything I can but its not working. If anyone can get a Mod, they can probably see to the issue with better knowledge. |
|
|
| Report Abuse |
|
|