Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How i make a music to my place?

When the music ends another begins, I have two separate songs that are the same PLZ Help Thx

1 comment

0

You're requesting, this is not a request site. For future reference, please try coding a script or ask "Can I be given an example to play music in my game?". You're suppose to learn here, not request

1 answer

✓ Accepted answer
Music = 132041251--Replace this with Audio Id
	local Audio = Instance.new("Sound", game.Workspace)--This create the sound and put it inside of workspace
	wait(1)
        Audio.PlayOnRemove = true-- I believe this stop the song after it has been finished
	Audio.SoundId = "http://www.roblox.com/asset?id="..Music--SoundId
	Audio:Play()-- Plays the Sound

If you have any question please feel free to post it down below and also I helped you solve your problem then please accept my answer and upvote it :)

3 comments

0

Hi the function if i want is place music .0. work if i delete this? script.Parent.Touched:connect(function()??

0

So you want me to remove the Touched event here ~ Edited

0

LOL THX BROO, Workk XDDD

This discussion is preserved as it was. New answers, comments, and votes are closed.