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

How do I make a audio switcher part? [closed]

Asked by 9 years ago

I plan to make something where when you go to a different level it plays different audio and I already have a part that plays audio but not I need to know how to make a part to stop audio playing. If you can tell me how to make a part to make audio stop playing or switch music than either one is fine.

Closed as Not Constructive by Goulstem, ImageLabel, and NotsoPenguin

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
shayner32 478 Trusted Moderation Voter
9 years ago

Something like this might work:

local sound = the.directory.to.audio.object

function stopaudio()
    sound:Stop()
end

script.Parent.Touched:connect(stopaudio)

Ad