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: Script failing to run in Multiplayer

Previous Thread :: Next Thread 
JoeLuke001 is not online. JoeLuke001
Joined: 04 Oct 2008
Total Posts: 5861
09 Jun 2013 02:29 PM
I have a script which creates ambient noise throughout the level, but it fails to run in multiplayer. It works fine in singleplayer and studio mode, and I've used the Remote Error Monitor Script to try and find the problem.

local howl = script.Wind

while true do
howl:play()
wait(0.01)
end


Does it have to be a local script, or is there a different problem?
Report Abuse
dog456pop248 is not online. dog456pop248
Joined: 24 Aug 2008
Total Posts: 3977
09 Jun 2013 02:30 PM
Make the volume of the sound like 100000000000
Report Abuse
JoeLuke001 is not online. JoeLuke001
Joined: 04 Oct 2008
Total Posts: 5861
09 Jun 2013 02:34 PM
Nothing changed.
Report Abuse
JoeLuke001 is not online. JoeLuke001
Joined: 04 Oct 2008
Total Posts: 5861
09 Jun 2013 02:39 PM
Anybody?
Report Abuse
huner2 is not online. huner2
Joined: 27 Apr 2008
Total Posts: 1681
09 Jun 2013 03:17 PM
Try running it in a LocalScript and changing :play() to :Play()

~These are not the droids you are looking for~
Report Abuse
JoeLuke001 is not online. JoeLuke001
Joined: 04 Oct 2008
Total Posts: 5861
09 Jun 2013 03:37 PM
Still nothing. :(
Report Abuse
Cjslick is not online. Cjslick
Joined: 11 Jul 2009
Total Posts: 2130
09 Jun 2013 03:41 PM
Never liked localizing commands, try making it general instead of local. It should run fine then.

If you need it localized, do the same within a local script. And check to see if your commands are all in place.
Report Abuse
MeBilly8440 is not online. MeBilly8440
Joined: 27 Jul 2009
Total Posts: 2783
09 Jun 2013 03:47 PM
Try adding wait(5) to the beginning, to make sure all elements of the game are loaded in before the script runs. Also keep in mind that a player will only hear a sound if it starts playing while they're in the game.

Wiki Profile: http://wiki.roblox.com/index.php/User:Nelson
Report Abuse
JoeLuke001 is not online. JoeLuke001
Joined: 04 Oct 2008
Total Posts: 5861
09 Jun 2013 03:54 PM
Finally working.

Thanks. :)
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