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

Is there anyway to set max and min audio distance?

Im asking this because as far as I know roblox disabled max and min audio distance so you cant just do Sound Properties and mix and max distance. So is there any other way to do it via script or anything.

I tried in a script

game.Workspace.Sound:Play()
game.Workspace.Sound.MaxDistance = 20
game.Workspace.Sound.MinDistance = 20

but that didnt do anything so I think that that way wont work so is there any other way to do it apart from going into the sounds properties or doing the script above?

2 comments

0

Is the sound inside of a part?

0

no

1 answer

This could be achieved by playing the sound locally and constantly adjusting the volume of the sound depending on the player's magnitude from the sound source. Hopefully this helps.

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