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 add local music?

Previous Thread :: Next Thread 
vigitossj2 is not online. vigitossj2
Joined: 04 Feb 2012
Total Posts: 263
05 Jun 2017 11:22 PM
I am trying to find an efficient way to add music into my game depending on what area you are in. There are many methods like Region3(), Invisible blocks, ect, but each has there own flaws. I tried Region3, but when I used FindPartsInRegion3(), it wouldn't work. Any ideas?
Report Abuse
GodShowsTheWay is not online. GodShowsTheWay
Joined: 27 Oct 2014
Total Posts: 7180
05 Jun 2017 11:34 PM
FilteringEnabled and create sounds with LocalScript?


Report Abuse
GodShowsTheWay is not online. GodShowsTheWay
Joined: 27 Oct 2014
Total Posts: 7180
05 Jun 2017 11:34 PM
omg ignore my post i misunderstood what you were asking


Report Abuse
OhSoMoody is not online. OhSoMoody
Joined: 20 Dec 2015
Total Posts: 139
05 Jun 2017 11:41 PM
Depends on the layout of your scene a bit. If you keep it confined in large squares...the most efficient method may be to simply check the X/Z coordinates of your player and hard-code it. Check on 1sec intervals...
Report Abuse
Storm_Cloud is not online. Storm_Cloud
Joined: 13 Mar 2008
Total Posts: 709
05 Jun 2017 11:49 PM
Put the music in the characters head and put a hitbox around every area that changes the soundID everytime you enter asid area


EVERY🎃NE HAIL T🎃 THE PUMPKIN SONG
Report Abuse
vigitossj2 is not online. vigitossj2
Joined: 04 Feb 2012
Total Posts: 263
10 Jun 2017 01:23 AM
Using blocks seem a bit unprofessional though, no offense.
Report Abuse
MLGnoob4Life is not online. MLGnoob4Life
Joined: 15 Nov 2016
Total Posts: 49
10 Jun 2017 01:25 AM
Just make a script into a part of the area's floor that says:

function ontouch()
game.Workspace.Sound:Play()
end
script.parent.touched:connect(ontouch)
Report Abuse
Storm_Cloud is not online. Storm_Cloud
Joined: 13 Mar 2008
Total Posts: 709
10 Jun 2017 07:58 PM
The only way to designate that you've entered a new area is with a hitbox triggering or with coordinates and one is way more effective than the other


EVERY🎃NE HAIL T🎃 THE PUMPKIN SONG
Report Abuse
Weirdraidercs35 is online. Weirdraidercs35
Joined: 14 May 2015
Total Posts: 2275
10 Jun 2017 08:07 PM
magnitude and sounds in the plr's playergui


im a mlg
Report Abuse
vigitossj2 is not online. vigitossj2
Joined: 04 Feb 2012
Total Posts: 263
14 Jun 2017 12:11 PM
that doesn't work but besides the fact, I am doing Region3 at the exits and entrances, works well so far, thanks for all your help.
Report Abuse
Wunder_Wulfe is online. Wunder_Wulfe
Joined: 13 Sep 2016
Total Posts: 8356
14 Jun 2017 12:12 PM
local character = {mycharacter}
print(workspace:IsRegion3EmptyWithWhiteList(region,character))
Report Abuse
Wunder_Wulfe is online. Wunder_Wulfe
Joined: 13 Sep 2016
Total Posts: 8356
14 Jun 2017 12:14 PM
nvm theres no whitelist version, has to be an ignore list :(
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