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

How to make a song play in a certain area?

I need help making a song play in one area. help please

3 comments

0

You could put a block in that area and when they touch it have the song play, but when they leave that area, stop the song. Do a Touched event, then an TouchEnded when player leaves the area.

0

I'm not for sure, but it would seem that recently they added a max/min sound distance. If that doesn't work, there are alternative methods.

0

It's not a good idea to make a touch ended event to stop the song because Roblox will mistake the person moving for a touch ended event. I'd suggest he checks for the distance between the part and the torso using magnitude. If the person gets farther then 1 unit of magnitude then remove the song.

2 answers

Put the sound in Workspace, inside a part. Inside the Sound you have MinDistance and MaxDistance - they adjust how many studs away can hear the sound.

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