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

How to enable audio when touched part?

For example, if there is a part, and a player touches it, and the whole server hears the audio (music ID) Thank you!

1 answer

Put the Sound instance in workspace

function onTouched(hit)


game.workspace.sound:Play()  --Its finding the "Sound" in workspace and making it play.


end

script.Parent.Touched:connect(onTouched)

2 comments

0

Thank you very much!

0

No problem.

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