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
|
  |
| 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
|
  |
| Joined: 10 Apr 2011 |
| Total Posts: 191 |
|
| |
|
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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| Joined: 10 Apr 2011 |
| Total Posts: 191 |
|
| |
|