How can I get it so that a sound plays in a certain radius and then gets softer as you get farther away from it. If it were in a part and I got next to it I would here the sound.
✓ ANSWER ACCEPTED
How can I get it so that a sound plays in a certain radius?
1 answer
✓ Accepted answer
http://wiki.roblox.com/index.php?title=Sounds
By using the script below, you don't have to worry about preloading.(To my knowledge, since it is created on startup, it is loaded. Please correct me if my thinking is incorrect.)
local sound = Instance.new("Sound")
sound.SoundId = "http://www.roblox.com/asset/?id=159688676" --Change the last numbers of the link to the id of your audio.
sound.Parent = script.Parent
sound:play()
If you need more help, feel free to PM me on Roblox!
I forgot to mention to put the script as a parent of a part, how silly of me!
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
I think if you put it in the brick, it will play from that brick only, and then it will automatically do that. I'm not sure though.