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
 

Music won't play

Previous Thread :: Next Thread 
ICURobotics is not online. ICURobotics
Joined: 14 Oct 2011
Total Posts: 2607
15 Sep 2013 03:35 PM
In solo, it will play.

But on-line, it doesn't play at all. I even put a 5 second delay so that the music has time to load before my character shows up. Does the delay need to be longer or is there something wrong with the script

local s = Instance.new("Sound")
wait(5)
s.Name = "Loading Schala"
s.SoundId = "http://roblox.com/asset/?id=5985787"
s.Volume = 1
s.Looped = true
s.archivable = false

s.Parent = game.Workspace

wait(5)

s:play()
Report Abuse
drahsid5 is not online. drahsid5
Joined: 13 May 2011
Total Posts: 3937
15 Sep 2013 03:39 PM
lol, a 5 second delay? just use game.Players.PlayerAdded:connect(function(player)
    player:WaitForDataReady()

When life gives you lemons, Squirt 'em in your eyes. - Drahsid5
Report Abuse
ICURobotics is not online. ICURobotics
Joined: 14 Oct 2011
Total Posts: 2607
15 Sep 2013 03:59 PM
I see a red dotted line. That means there is an error.
Report Abuse
ICURobotics is not online. ICURobotics
Joined: 14 Oct 2011
Total Posts: 2607
15 Sep 2013 04:02 PM
Nothing works
Report Abuse
Brycemlns is not online. Brycemlns
Joined: 28 Jan 2008
Total Posts: 216
15 Sep 2013 04:04 PM
500 - Internal server error.
There is a problem with the resource you are looking for, and it cannot be displayed.

That's why.
Report Abuse
ICURobotics is not online. ICURobotics
Joined: 14 Oct 2011
Total Posts: 2607
15 Sep 2013 04:06 PM
If it can't play, why does it work on studio?
Report Abuse
ICURobotics is not online. ICURobotics
Joined: 14 Oct 2011
Total Posts: 2607
15 Sep 2013 04:55 PM
4 play on enter scripts later, it works. The thing is, I don't know which one.
Report Abuse
drahsid5 is not online. drahsid5
Joined: 13 May 2011
Total Posts: 3937
15 Sep 2013 05:30 PM
local s = Instance.new("Sound", Workspace)

When life gives you lemons, Squirt 'em in your eyes. - Drahsid5
Report Abuse
ICURobotics is not online. ICURobotics
Joined: 14 Oct 2011
Total Posts: 2607
15 Sep 2013 05:32 PM
No need. But i'll track this thread for later reference.
Report Abuse
R8N is not online. R8N
Joined: 07 Aug 2013
Total Posts: 1164
15 Sep 2013 05:44 PM

function PlayR8N()
local Sound = Instance.new("Sound",workspace)
Sound.Name = "Loading Schala"
Sound.SoundId = "rbxassetid://5985787"
Sound.Volume = 1
Sound.Looped = true
wait()
Sound:Play()
return Sound
end

for i=1,10 do -- Load please
PlayR8N():Destroy()
wait()
end
PlayR8N()
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