Talk:Music: Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>Tgp1994
No edit summary
>Tgp1994
No edit summary
(No difference)

Revision as of 01:20, 20 August 2008

Any sounds not included with the Roblox client won't work this way. You have to upload them to the site, a feature not supported. ---Mr Doom Bringer 13:12, 2 July 2008 (CDT)

Testing

I did things a little differently, instead of doing things as the page said, I simply took a free music box, and cut out the the script from the music box into a new brick, copied the brick, started a new map, and pasted in the brick. The 'sound' object needed the SoundId. Voilà, it worked, maybe a little differently than the page's example. You can make whatever size and shape play music. However, with this method, you know ahead of time whether or not your music works  ;) :

local s = Instance.new("Sound")

s.Name = "Sound"
s.SoundId = "3f6768818ccb1e1490bd8c95bd9846a7" -- Indiana Jones Theme, I think
s.Volume = 3
s.Looped = true
s.archivable = false

s.Parent = game.Workspace

wait(0)

s:play() 

MINDRAKER 19:06, 19 August 2008 (CDT)

Possible feature

Yes, I would like it if roblox made a feature where we could link to a remote site containing our sound, then when someone joins, the sound is automatically downloaded to their temp files. This may, however, be a problem, since that server hosting the sound may go down. I guess that would be another error to make for the output, saying: Sound file cannot be acquired, 404 error. Or something like that.