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

How to make a script that palys an audio in-game?

Asked by 10 years ago

How do I make a script that plays an audio at the same volume that loops after it finishes where ever you go once you join the game

2 answers

Log in to vote
0
Answered by 10 years ago
game.Players.PlayerAdded:connect(function()
game.Workspace.Music:Play
end)

Settings change in music properties.

0
if you wanna put music into your game then insert a sound into workspace then check "Looped" and then set the volume to "1" and then after that insert the id of the audio then you are finished that section. next insert a local script into starter pack then type game.workspace.Sound:Play() Danielrasothetvshow -2 — 4y
Ad
Log in to vote
0
Answered by 10 years ago

Insert a sound into the workspace from the "Advanced Objects" menu. Then, click on that sound in explorer and in properties, where it says soundid, put this (without quotes) "http://www.roblox.com/asset/?id=(Asset ID of sound here)" The asset ID is the numbers at the end of a roblox link, so for example it would be like: http://www.roblox.com/Really-Cool-Sound-item?id= -> 123456789 <- . Now highlight the asset ID, copy it, and paste it in where you put the link for the asset id, so it would become: "http://www.roblox.com/asset/?id=123456789". (Without quotes). To loop it, scroll down on the sound and click the checkmark next to looped. Now, insert a localscript into StarterGUI, and put this code:

game.Workspace.Sound:Play()

Now test it, if it works, you can now have sound in your place!

Answer this question