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

How do I make it so when I walk into a Certain Room, It plays music?

Alright, so I wan't to be able to walk into a Cantina Room. And have it play a Certain Song ID, how would one do this?

2 answers

There are multiple ways to do this... I will explain the easiest.


One thing you could do is insert a Part. Select the Part and insert a Sound object. Then in the SoundID change it to "rbxassetid://" and then the ID of your song. If it is only one song then scroll down the properties until you find the bool called Looped. Make that true (In other words check it). Then inside of the Sound insert a Script. Inside of that script put in this line: script.Parent:Play() and that will play your sound. You can adjust the volume properties and pitch properties to you liking.


I hope this helped!

script.Parent:Play()

Type the audio between the parentheses.

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