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: I need help with something.

Previous Thread :: Next Thread 
RoblotXRB is not online. RoblotXRB
Joined: 16 Nov 2014
Total Posts: 2068
13 Jan 2017 04:31 AM
I know how to make a on touch local sound for my RPG game. So the theme changes. So if I'm in like a peaceful land, the ambient will be peace. But If I enter a Hellzone. It'll be firey ambient, but only applies for who touched the brick. The problem is. I don't know how to stop previous local sounds from playing. HALP


Report Abuse
RoblotXRB is not online. RoblotXRB
Joined: 16 Nov 2014
Total Posts: 2068
13 Jan 2017 04:32 AM
For E.G

Peace village: Theme is peaceful

-Touches a brick/level door to a Goblin Cave- -Music turns into intense drumming, but the peaceful music is mixed in-


Report Abuse
Lucas_Lua is not online. Lucas_Lua
Joined: 18 Jun 2008
Total Posts: 7521
13 Jan 2017 04:34 AM
You have to call :Stop() on the sound that is still playing. Deleting it would also work.

I would use an object value or something like that to keep track of what music is currently playing, so that different scripts and sounds have to check the value to watch for overlap.
Report Abuse
RoblotXRB is not online. RoblotXRB
Joined: 16 Nov 2014
Total Posts: 2068
13 Jan 2017 04:44 AM
Cause the only one that can hear music is the one that touch the brick. So is the stop command gonna stop for us all. I need one working for local sounds


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