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

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

Asked by 10 years ago

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

Log in to vote
0
Answered by 10 years ago

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!

Ad
Log in to vote
0
Answered by 10 years ago

script.Parent:Play()

Type the audio between the parentheses.

Answer this question