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

I want the volume of a sound to be at a certain distance. Help!?

Asked by 8 years ago

Is there any way that if I put the sound in the Part and script it in a way that If a player goes in the space(Part ---> Stretched to a certain distance, and non-collidable) the music starts playing ONLY inside the space(Part) . HELP. Please! P.M: If you can type the script and just paste it in the comments , that would be a great help, because i'm not a great scripter

2 answers

Log in to vote
0
Answered by 8 years ago

I understand. There is no script required here! When you insert the Sound into the Part, Go into the properties of the Sound and Edit the Max Distance and Min Distance. The defaults are 10000 and 10. There is a lot more you can edit.

Ad
Log in to vote
0
Answered by 8 years ago
Edited 8 years ago

I believe you don't need any script to do this.

Under the Sound properties you have 2 values which are 'MinDistance' and 'MaxDistance'.

If you adjust these to the range you want a player to hear the sound, that should work.

:)

0
thank you AlexStorms 21 — 6y

Answer this question