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

How to make a song play in a certain area?

Asked by 7 years ago

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

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. omeybabyface 140 — 7y
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. User#11440 120 — 7y
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. KingLoneCat 2642 — 7y

2 answers

Log in to vote
0
Answered by 7 years ago

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.

Ad
Log in to vote
-3
Answered by
Notwal 2
7 years ago

Put the sounds in PlayerGui so they play locally

Answer this question