Hello, I’m new to scripting and just made a script for entering and exiting a building. When you enter a building the script will make the wind volume silent, and when you exit it to outside, it will make it loud again.
The issue I’m having is that when someone enters the building, it silences the sound for everyone including the people still outside, I want it to silence only for the person that went inside, but I don’t know how to do that.
you will have to create a localscript, and use the same code, and the localscript should be where the script was.
and I do not recommend you to use basepart.Touched(), it is really unreliable, if someone goes inside the building and resets, the script still thinks it is inside the building, because it never touched the part to get out.
You will need a LocalScript, Still, You should not use Touched, Because, first you’re not adding a debounce, so if the player moves it will run the script