Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Why wont this work? Audio Scripting...

So basically I'm trying to make music play on my game and I want the songs in order... For example song A plays, wait .5, then plays song B... And I have been stuck on this for about an hour

local a = Instance.new("Sound")

a.Name = "NHL 94 Theme Song"
a.Pitch = 1
a.SoundId = "http://www.roblox.com/asset/?id=150167727"
a.Volume = 1
a.Looped = false
a.archivable = false

local b = Instance.new("Sound")

b.Name = "Malo Mart Theme Song"
b.Pitch = 1
b.SoundId = "http://www.roblox.com/asset/?id=172027274"
b.Volume = 1
b.Looped = false
b.archivable = false

b.Parent = game.Workspace

wait(.1)

a:play()

wait (72)

b:play()

1 comment

0

Beginers mistake :(

1 answer

✓ Accepted answer

You need a capital P for Play.

local a = Instance.new("Sound")

a.Name = "NHL 94 Theme Song"
a.Pitch = 1
a.SoundId = "http://www.roblox.com/asset/?id=150167727"
a.Volume = 1
a.Looped = false
a.archivable = false

local b = Instance.new("Sound")

b.Name = "Malo Mart Theme Song"
b.Pitch = 1
b.SoundId = "http://www.roblox.com/asset/?id=172027274"
b.Volume = 1
b.Looped = false
b.archivable = false

b.Parent = game.Workspace

wait(.1)

a:Play()

wait (72)

b:Play()

This discussion is preserved as it was. New answers, comments, and votes are closed.