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

I want to make a script that plays a song from YouTube, so can somebody help me with that? [closed]

Asked by 10 years ago

I want my place to be able to bring up a GUI that can play this song. I don't want it to play automatically, but I want a button that says "Play Song" that can play the song.

Closed as Not Constructive by evaera

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

4 answers

Log in to vote
1
Answered by 10 years ago

You can't get a song from youtube playing in your place. The only way to add your music is upload a sound to ROBLOX for 100 R$. (<Too much) Then, you have to get a sound from basic objects. Put this is the soundID of the sound: 'http://www.roblox.com/asset/?id=(ID here)' Then you can create a GUI button script for exemple:

script.Parent.MouseButton1Click(function()
    script.Disabled = true -- Disables the script
    local sound = script.Parent.Parent.Music -- Exemple of your sound location
    sound:Play()
    wait(10) -- Exemple time
    sound:Stop() -- Sound stops
    script.Disabled = false -- Re-enables the script
end)

Remember, this is an exemple. You can do this different.

Ad
Log in to vote
0
Answered by 10 years ago

Linking songs or sound/videos from youtube is not available yet. Try buying audio for it, 120 seconds of it.

Log in to vote
0
Answered by 10 years ago

You have to go to a MP3 file maker website. You simply put in the link of the audio from Youtube you want, then it will generate a MP3 file. From there you have to buy the audio on ROBLOX for 100 R$.

Log in to vote
-1
Answered by
Tesouro 407 Moderation Voter
10 years ago

Find a Midi version of it and use this system in your game: http://www.roblox.com/MIDI-Player-8-7-BETA-Better-Instrument-Creation-place?id=189859

(why is that -1 in my answer? it's an alternative option, very good btw)