I wanted to know how I could make this script so 2 songs play at once but then 1 sound pauses and destroys itself.
local click = workspace.DONOTCLICK
function onClick()
click.ClickDetector:Destroy()
local sound = Instance.new("ound")
sound.SoundId = "http://www.roblox.com/asset/?id=184417888"
sound.Parent = game.Workspace.Baseplate
sound:play()
wait(5)
local sound = Instance.new("Sound")
sound.SoundId = "http://www.roblox.com/asset/?id=174983259"
sound.Parent = game.Workspace.Baseplate
sound:play()
wait(5)
ound:pause()
wait(115)
sound:pause()
sound:Destroy()
end
click.ClickDetector.MouseClick:connect(onClick)
I want sound 184417888 to stop playing after 5 seconds and destroy itself but sound 174983259 to remain playing.
