Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How i make a music to my place?

Asked by 9 years ago

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

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 alphawolvess 1784 — 9y

1 answer

Log in to vote
1
Answered by 9 years ago
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 :)

0
Hi the function if i want is place music .0. work if i delete this? script.Parent.Touched:connect(function()?? 12345gabriel12345 15 — 9y
0
So you want me to remove the Touched event here ~ Edited UserOnly20Characters 890 — 9y
0
LOL THX BROO, Workk XDDD 12345gabriel12345 15 — 9y
Ad

Answer this question