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

Keeping a sound limited to a certain spot?

Hey. I can't find any you tube tutorials on this. I just need to know how to make it so when a song is played, it can only be heard from a certain distance away, and not the entire server. Thanks!

2 answers

This has nothing todo with scripting. Theres a property called maxdistance

http://wiki.roblox.com/index.php?title=API:Class/Sound/MaxDistance

If this helped then select it as the answer

3 comments

0

I think he meant differen

0

t zones. lmao I accidentally clicked post. Anyway, what he should do is use Region3

0

Still does not change it, I can still hear it everywhere. Wiki said that if the sound is global or ambient, then it will be heard throughtout the game,. So how do I turn off the global thing? Idk where to find it

This is a pretty easy problem to fix. To do it make sure you have the properties and explorer windows out. In the explorer, click the sound you want to set the max distance of. In properties, scroll to Data, then MaxDistance. Click the text box next to where it says MaxDistance, and then type the number of studs that you should be able to hear the sound from.

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