|
| 14 Apr 2017 09:43 PM |
| I've been trying to play an audio in this little warehouse using Sound and i set the MaxDistance to 1 and the Volume to 0.5 yet i can still hear that audio when i walk around the game. There is an audio playing outside too. Help pls? I think in my involve scripting so thats why i posted it here. |
|
|
| Report Abuse |
|
|
devHoodie
|
  |
| Joined: 04 Nov 2008 |
| Total Posts: 30332 |
|
|
| 14 Apr 2017 09:49 PM |
Put it inside a part.
r+://487783315r+://467523707r+://215869124 |
|
|
| Report Abuse |
|
|
|
| 26 Apr 2017 07:13 PM |
| I've tried it, but when i walk away (while testing) i can still hear it. |
|
|
| Report Abuse |
|
|
|
| 26 Apr 2017 07:16 PM |
What did you do exactly? If you put a sound object inside of a part, it will play sound from the patented part. Or are you trying to get music per zone?
~MightyDantheman~ |
|
|
| Report Abuse |
|
|
|
| 26 Apr 2017 08:05 PM |
honestly just create the audio in a localscript and play it when they go inside and when they go outside change it to the other audio or pause it
|
|
|
| Report Abuse |
|
|
|
| 26 Apr 2017 08:09 PM |
| Do two parts, When one is touched and you go in a diffent area you have it stop playing. |
|
|
| Report Abuse |
|
|
YTReptile
|
  |
| Joined: 10 Feb 2017 |
| Total Posts: 22 |
|
|
| 26 Apr 2017 08:15 PM |
Use magnitudes. you can do
local mag = (workspace.Audio.Position - workspace.Player.Character.Torso.Positiong).magnitude
while true do if mag == 10 then volume == 10 (dont know volume configurations lol) elseif mag == 9 then volume == 9
(and so on..) end
and so on.. If it errors figure it out.. I just made that out of the blue after scripting for like 7 hours. My brain if fried...
|
|
|
| Report Abuse |
|
|
YTReptile
|
  |
| Joined: 10 Feb 2017 |
| Total Posts: 22 |
|
| |
|
|
| 27 Apr 2017 02:56 PM |
| @archisaurus How? (I'm not a very experienced scripter) |
|
|
| Report Abuse |
|
|
RuizuKun
|
  |
| Joined: 20 Jan 2016 |
| Total Posts: 1133 |
|
|
| 27 Apr 2017 03:27 PM |
IS your Game FE???
I made something like this before
use Touched and TouchEnded
if your game is FE then you need to use RemoteEvents
RuizuKun |
|
|
| Report Abuse |
|
|
|
| 27 Apr 2017 03:40 PM |
I made this a long time ago (recently updated it to fix something). I'm not sure if it's what you're looking for, but here you go anyways. https://www.roblox.com/library/347986986/Area-Sound-Kit-v3-0
Note: You can look through the scripts to see how it works. If this is not what you're looking for, please explain yourself in more detail.
~MightyDantheman~ |
|
|
| Report Abuse |
|
|
|
| 27 Apr 2017 05:30 PM |
| @MightyDantheman Thanks. I'll use this. :) |
|
|
| Report Abuse |
|
|