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

Why won't this music play?

Asked by 10 years ago

Just to let you know I am a beginner in LUA.

while true do wait(60) script.Music.Pitch = 1 script.Music:play() end

while true do wait(100) script.Music:play() end

This is the sound in the script: http://www.roblox.com/The-Opening-MitiS-item?id=142320162

The sound will not play.

0
You should use " while wait(time) do' instead, and also you should check out preloading in the wiki. Lacryma 548 — 10y

1 answer

Log in to vote
-1
Answered by 10 years ago
while true do
wait(60)
script.Parent.Music:Play()
script.Parent.Sound.Pitch = 1
end

+1 up if this worked

Ad

Answer this question