I want to play a sound globally but with a maxdistance.
When I typed “Sound.MaxDistance” “MaxDistance” was crossed out in the autocomplete, but I could still click it (its not red-underlined or anything)
I couldn’t see an error.
Script:
local Sound = script.Parent.Parent.Register1.Particle.Sound
Sound.MaxDistance = 15
Sound:Play()
Sound.Ended:Wait()
Sound:Stop()
Only thing I can think of is making sure the sound is a direct child of a part, meaning that if “Particle” is a ParticleEmitter, I do not think this will work, and you’ll have to move the Sound to an actual 3D part in order for MaxDistance to work properly.