Hey, so I’m trying to get this audio inside my tool to play and then cut off in a distance, but considering its directly under the tool and not inside neither base-part or attachment it plays for the entire server.
I’ve tried to put the audio inside the base-part with the script but it won’t play when that’s the case for some reason, i’ve also tried to configure the rolloff function but that only works if it’s inside either base-part or attachment. Am I doing something wrong? Any help is appreciated, thanks.
The script wont play the audio inside the handle (it will try to run the line to play the audio when LMB is clicked but it wont run the audio), nor will it play if you put the audio inside the handle under the script.
thats because you need to update the line of code that plays the audio so that the script can find the proper location of the audio. Putting it under the handle is fine but you need to update that line of code so that it works. Like this:
script.Parent.Handle.boom:Play()
Then you can play with the rolloff min and max distance so that it cuts off at your preferred distance
(Also, some people are saying you need Region3 but u really don’t. Its very complicated to use that and it could work but it is just too advanced for what ur trying to achieve)
I tried to do this yesterday, the code will run, but it is unable to find the audio to play even though it is right there. This is the same if the script is outside the Handle or inside.
I’d highly suggest parenting this to a handle, even if it doesn’t have one, you need to give it either an attachment or handle, otherwise it’ll be globally playing.