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 » Scripting Helpers
Home Search
 

Re: Music doesn't keep playing

Previous Thread :: Next Thread 
Undefined98 is not online. Undefined98
Joined: 17 Dec 2009
Total Posts: 2597
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
Undefined98 is not online. Undefined98
Joined: 17 Dec 2009
Total Posts: 2597
21 Jan 2013 03:36 PM
help?
Report Abuse
Undefined98 is not online. Undefined98
Joined: 17 Dec 2009
Total Posts: 2597
21 Jan 2013 03:43 PM
Does anyone know what is going on with it?
Report Abuse
Undefined98 is not online. Undefined98
Joined: 17 Dec 2009
Total Posts: 2597
21 Jan 2013 03:49 PM
...
Report Abuse
DaneelOlivaw is online. DaneelOlivaw
Joined: 14 Apr 2012
Total Posts: 661
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
Undefined98 is not online. Undefined98
Joined: 17 Dec 2009
Total Posts: 2597
21 Jan 2013 03:51 PM
But it is already on looped
Report Abuse
Undefined98 is not online. Undefined98
Joined: 17 Dec 2009
Total Posts: 2597
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
Jonah13249 is not online. Jonah13249
Joined: 09 Oct 2009
Total Posts: 2105
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
Undefined98 is not online. Undefined98
Joined: 17 Dec 2009
Total Posts: 2597
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
Undefined98 is not online. Undefined98
Joined: 17 Dec 2009
Total Posts: 2597
21 Jan 2013 04:03 PM
Please someone know this....
Report Abuse
Undefined98 is not online. Undefined98
Joined: 17 Dec 2009
Total Posts: 2597
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
DaneelOlivaw is online. DaneelOlivaw
Joined: 14 Apr 2012
Total Posts: 661
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
Undefined98 is not online. Undefined98
Joined: 17 Dec 2009
Total Posts: 2597
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
DaneelOlivaw is online. DaneelOlivaw
Joined: 14 Apr 2012
Total Posts: 661
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 is not online. crouton04
Joined: 07 Jul 2010
Total Posts: 4459
21 Jan 2013 04:23 PM
Background..
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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