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

Is there anyway to set max and min audio distance?

Asked by 8 years ago

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?

0
Is the sound inside of a part? User#11440 120 — 8y
0
no supamaster888 28 — 8y

1 answer

Log in to vote
2
Answered by 8 years ago

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.

Ad

Answer this question