generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: How to play an audio in a certain area?

Previous Thread :: Next Thread 
awesome333444 is online. awesome333444
Joined: 13 Jun 2012
Total Posts: 13
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 is online. 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
awesome333444 is online. awesome333444
Joined: 13 Jun 2012
Total Posts: 13
26 Apr 2017 07:13 PM
I've tried it, but when i walk away (while testing) i can still hear it.
Report Abuse
MightyDantheman is not online. MightyDantheman
Joined: 06 May 2011
Total Posts: 5108
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
archisaurus is online. archisaurus
Joined: 07 Apr 2013
Total Posts: 403
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
LegomasterNiko is not online. LegomasterNiko
Joined: 27 Feb 2013
Total Posts: 1176
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 is not online. 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 is not online. YTReptile
Joined: 10 Feb 2017
Total Posts: 22
26 Apr 2017 08:16 PM
is..
Report Abuse
awesome333444 is online. awesome333444
Joined: 13 Jun 2012
Total Posts: 13
27 Apr 2017 02:56 PM
@archisaurus How? (I'm not a very experienced scripter)
Report Abuse
RuizuKun is not online. 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
MightyDantheman is not online. MightyDantheman
Joined: 06 May 2011
Total Posts: 5108
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
awesome333444 is online. awesome333444
Joined: 13 Jun 2012
Total Posts: 13
27 Apr 2017 05:30 PM
@MightyDantheman Thanks. I'll use this. :)
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image