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 » Scripting Helpers
Home Search
 

Re: Audio Change Not Working?

Previous Thread :: Next Thread 
SLPM is not online. SLPM
Joined: 02 Apr 2010
Total Posts: 33349
10 Sep 2014 01:46 PM
Problem: When I play the game the script works fine, but when I click the button to trigger the function nothing changes, the path is completely fine I've looked numerous times. For some reason the original audio continues to play instead of stopping and being changed. Output says nothing.



Script:

script.Parent.Sound.SoundId = "http://www.roblox.com/asset/?id=168199452"
script.Parent.Sound:Play()
function casual(casual)
script.Parent.Sound:Stop()
script.Parent.Sound.SoundId = "http://www.roblox.com/asset/?id=152179601"
script.Parent.Sound:Play()
end
script.Parent.Background.ChooseLeader.Choice1.Action.MouseButton1Click:connect(casual)

Report Abuse
SLPM is not online. SLPM
Joined: 02 Apr 2010
Total Posts: 33349
10 Sep 2014 01:48 PM
Nevermind..... apparently putting a useless wait() between soundid changer and :play() fixes the problem -.-

<-> Want to be a game developer? Here's how: http://www.roblox.com/Forum/ShowPost.aspx?PostID=145171798 <->
Report Abuse
vlekje518 is not online. vlekje518
Joined: 10 Apr 2011
Total Posts: 191
10 Sep 2014 01:51 PM
no 2 line siggies
Report Abuse
SLPM is not online. SLPM
Joined: 02 Apr 2010
Total Posts: 33349
10 Sep 2014 02:07 PM
Not my fault links are too long :(



<-> Want to be a game developer? Here's how: http://www.roblox.com/Forum/ShowPost.aspx?PostID=145171798 <->
Report Abuse
vlekje518 is not online. vlekje518
Joined: 10 Apr 2011
Total Posts: 191
10 Sep 2014 02:08 PM
hmm
try this


<-> Want to be a game developer? Here's how: Forum/ShowPost.aspx?PostID=145171798 <->
Report Abuse
vlekje518 is not online. vlekje518
Joined: 10 Apr 2011
Total Posts: 191
10 Sep 2014 02:08 PM
oops i ment


<-> Want to be a game developer? Here's how: /Forum/ShowPost.aspx?PostID=145171798 <->
Report Abuse
SLPM is not online. SLPM
Joined: 02 Apr 2010
Total Posts: 33349
10 Sep 2014 02:09 PM
k Good idea, thanks.

<-> Want to be a game developer? Here's how: /Forum/ShowPost.aspx?PostID=145171798 <->
Report Abuse
vlekje518 is not online. vlekje518
Joined: 10 Apr 2011
Total Posts: 191
10 Sep 2014 02:10 PM
Thank you a lot sir.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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