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

How do u loop a song? [closed]

Asked by 9 years ago

This is how i looped mine but its still not working! and i waited 5 secs.

wait(5)


local musicholder = Instance.new("Model")
musicholder.Parent = game.Workspace
musicholder.Name = "MusicPlayingModel"


local musicplayer = Instance.new("Sound")
musicplayer.Parent = game.Workspace.MusicPlayingModel
musicplayer.SoundId = "http://www.roblox.com/asset/?id=182079456"
musicplayer.Looped = true


musicplayer:Play()
0
Did the Audio play at all? Did you leave the Studio while it was playing? Was there any errors? These questions are important. As you may not have known, Line 10 is NOT necessary! 'Instance.new' has a second, optional Argument! Also, getting the Model from the Workspace is not necessary, and is not needed, get the Model from it's Variable! TheeDeathCaster 2368 — 9y
0
Isn't there a loop setting on the sound object? This isn't even a scripting question. EzraNehemiah_TF2 3552 — 9y

Closed as Not Constructive by EzraNehemiah_TF2 and Redbullusa

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?

1 answer

Log in to vote
0
Answered by 9 years ago

Sounds have a loop property. Just toggle it to true before playing them.

0
He did that in the code already. :P TheeDeathCaster 2368 — 9y
Ad