|
| 21 Jan 2013 03:33 PM |
I put a script in a sound named BackRoundMusic, and BackRoundMusic is in Workspace
In the script I put:
while true do script.Parent:Play() wait(1) end
It continues to play in Solo and Studio mode, but won't play in a running server. Why doesn't it play? |
|
|
| Report Abuse |
|
|
| |
|
|
| 21 Jan 2013 03:43 PM |
| Does anyone know what is going on with it? |
|
|
| Report Abuse |
|
|
| |
|
|
| 21 Jan 2013 03:50 PM |
"Play" just makes it start.
What you're looking for is actually a property of any sound called "Looped". Check that box (or set it to true via scripting) and it'll loop all by itself, zero scripting involved. |
|
|
| Report Abuse |
|
|
|
| 21 Jan 2013 03:51 PM |
| But it is already on looped |
|
|
| Report Abuse |
|
|
|
| 21 Jan 2013 03:54 PM |
In solo, studio, and build the script I made works without problem. But when you go into a running server, it won't work. It automatically plays itself. So when you enter, you hear it |
|
|
| Report Abuse |
|
|
|
| 21 Jan 2013 03:57 PM |
Make sure that the sound is on workspace so everyone can hear it. Then play it from there...
~ṡсɾïρτïṉģ hεlρεɾṡ ۩ lυαlεαɾṉεɾṡ ④ øƒвќṃṿј~ ღ ▂▃▅▆█ρεώḋïερïε☄сυτïερïε█▆▅▃▂ღ 【▬】 |
|
|
| Report Abuse |
|
|
|
| 21 Jan 2013 04:00 PM |
The sound is on workspace.
The sound is looped.
while true do script.Parent:Play() wait(1) end
is the script.
It COMPLETELY works in Solo, build, and edit mode.
But not in a running server.
This is what is driving me nuts. |
|
|
| Report Abuse |
|
|
|
| 21 Jan 2013 04:03 PM |
| Please someone know this.... |
|
|
| Report Abuse |
|
|
|
| 21 Jan 2013 04:07 PM |
Ok. I put this extra part in the script to see if the script is running.
while true do game.Workspace.MusicIndicator.BrickColor = BrickColor.new("Really red") game.Workspace.BackRoundMusic:Play() wait(1) end
and the brick turns red in studio, build, play mode. but the music only works in studio and build
wth |
|
|
| Report Abuse |
|
|
|
| 21 Jan 2013 04:13 PM |
The indicator turns red if the script is running, not if the music is working... Though that DOES tell us that the script does reach that point fine.
Can you post things from Output? It might help a good bit. If you don't have it open, click "View" and click on "Output" to open a window similar to Explorer and Properties. |
|
|
| Report Abuse |
|
|
|
| 21 Jan 2013 04:17 PM |
Nvm....
I put a Touch brick that activates the music when walked through
I put this brick at the very entrance so when they walk through it the music pretty much starts as soon as I can get it
A pretty good solution to the problem |
|
|
| Report Abuse |
|
|
|
| 21 Jan 2013 04:21 PM |
| In that case, you may want to have the script disable itself moments later to keep it from stacking sounds... even though that's what I got when I tested your script at the start. |
|
|
| Report Abuse |
|
|
crouton04
|
  |
| Joined: 07 Jul 2010 |
| Total Posts: 4459 |
|
| |
|