|
| 01 Oct 2015 03:28 AM |
i can't go on youtube (my parents won't let meh) so i can ask here,
HOW DO U PUT MUSIC IN UR GAMES? and how do u make playlists? I'm looking to make a Peacful sound for 'the Friend canopy' COMING SOON! |
|
|
| Report Abuse |
|
|
|
| 01 Oct 2015 05:05 AM |
I don't think this is the place for you to ask but, you just go on ROBLOX Librariry by: Clicking -Develop up where games and catalog etc are then click librariry which will pop up(if something else comes up, go down until you see a small sentence reading -Go to develop page-) then on librairy choose sound, when you find the sound you want, copy the umbers on the end for example http://www.roblox.com/Forum/AddPost.aspx?PostID=17529026 copy the numbers.After that go to your game, insert an instance named sound, in that sound, go on properties and paste your numbers from before in. For making it play at specific times, you will need slight scripting knowledge. |
|
|
| Report Abuse |
|
|
|
| 01 Oct 2015 04:47 PM |
| How do insert the music once i have it? Where in Roblox studio? ill have a look around. |
|
|
| Report Abuse |
|
|
|
| 02 Oct 2015 02:39 AM |
Insert a "Sound" instance. Go to -View, then on view click "Advanced Objects", when it pops up, in the search bar of the Advanced Object pop up, search "Sound", when you see sound insert it to your game. Then go back to view and open -Properties
In properties insert those numbers i told you to get into "SoundId:" for example When im in properties, i find SoundId i then insert: 12345678(< Not a real code, just the numbers i told you to find) And then set "Looped" to true, if you want it to play again and again, specially wanting it to play when something happens requires slight scripting knowledge.
If you didn't understand that, use this script, and parent it to workspace:
snd = Instance.new("Sound", game.Workspace)
if snd
then snd.SoundId = "Your numbers here, aka Id"
snd.Looped = true snd:Play()
end
end -- This script will loop it forever, no selection whatsoever.
|
|
|
| Report Abuse |
|
|
|
| 02 Oct 2015 02:44 AM |
And you can't find "Advanced objects" in view sorry, just right click the upper panel "The one with all the tools etc, right click empty space. And then click "Advanced Objects" And then follow my other guide from there. You can also change the pitch, he volume etc in sounds properties.
snd = Instance.new("Sound", game.Workspace)
if snd
then snd.SoundId = "Your numbers here, aka Id"
snd.Looped = true snd:Play()
end --Oops two ends, sorry.
Good luck! |
|
|
| Report Abuse |
|
|
|
| 02 Oct 2015 03:28 AM |
And for playlist, i assume you want it to play your songs randomly, instead of looping one sound?
sndmodel = game.Workspace.MyPlaylist
function onEnterSnd() local loadsnd = sndmodel:GetChildren() local choosensnd = math.random(#loadsnd, 1) choosensnd:Play()
choosensnd.Ended:connect(onEnterSnd)
end
game.Players.PlayerAdded:connect(onEnterSnd)
--Haven't tested sorry. |
|
|
| Report Abuse |
|
|
|
| 02 Oct 2015 03:55 AM |
I tested just now, sorry for mistake, again.
--Assumes you have a model named MyPlaylist in workspace
sndmodel = game.Workspace.MyPlaylist
function onEnterSnd() local loadsnd = sndmodel:GetChildren() math.random(tick()) local choosensnd = loadsnd[math.random(1,#loadsnd)]
choosensnd:Play()
choosensnd.Ended:connect(onEnterSnd)
end
game.Players.PlayerAdded:connect(onEnterSnd) --Change event to when you want the music player to play, when a brick is touched, mouse is clicked etc, by changing the even "PlayerAdded", but then you have to know some scripting.
Final post and Good luck! |
|
|
| Report Abuse |
|
|
| |
|
|
| 03 Oct 2015 08:38 AM |
Just go on my profile and use the model"MyPlaylist" which i made. And then insert your own sounds. Will play random sounds whenever you enter your place. |
|
|
| Report Abuse |
|
|
| |
|