LordTayls
|
  |
| Joined: 27 Apr 2010 |
| Total Posts: 82 |
|
|
| 08 Apr 2014 07:41 AM |
s=game.Workspace.Space_Mountain_Cart Launch=script.Parent r=game.Workspace.part
function onTouched(Launch) wait(1) game.Workspace.Countdown.Part.Countdown:Play() wait(11) game.Workspace.Launch_Part.Launch.Disabled = false wait(0) game.Workspace.Countdown.Part.LaunchSound:Play() wait(2) game.Workspace.Launch_Part.Launch.Disabled = true wait(10) end
Launch.Touched:connect(onTouched)
The sound echoes then plays again after it has played once. |
|
|
| Report Abuse |
|
|
LordTayls
|
  |
| Joined: 27 Apr 2010 |
| Total Posts: 82 |
|
| |
|
LordTayls
|
  |
| Joined: 27 Apr 2010 |
| Total Posts: 82 |
|
| |
|
NeonRiver
|
  |
| Joined: 12 Feb 2013 |
| Total Posts: 4936 |
|
| |
|
LordTayls
|
  |
| Joined: 27 Apr 2010 |
| Total Posts: 82 |
|
| |
|
chris046
|
  |
| Joined: 20 Jul 2008 |
| Total Posts: 31 |
|
|
| 08 Apr 2014 11:47 AM |
| Could it be that the script is "firing off", or activating multiple times? Remember that on collide bricks and collision activated events thats really possible. From past experience just stepping on a brick like that could fire off 30 times without jumping. Try to make a "debounce" or an if else statement that says it will only activate when a boolean, or true/false value, is true. Once activated it will be turned false until the end of the function, when you then put the value of the boolean to true. Hope this is helpful. |
|
|
| Report Abuse |
|
|
|
| 08 Apr 2014 12:27 PM |
s=game.Workspace["Space Mountian Cart"] Launch=script.Parent r=game.Workspace.part
?? function onTouched(Launch) wait(1) game.Workspace.Countdown.Part.Countdown:Play() wait(11) game.Workspace.Launch_Part.Launch.Disabled = false wait(0) game.Workspace.Countdown.Part.LaunchSound:Play() wait(2) game.Workspace.Launch_Part.Launch.Disabled = true wait(10) end
Launch.Touched:connect(onTouched) |
|
|
| Report Abuse |
|
|
LordTayls
|
  |
| Joined: 27 Apr 2010 |
| Total Posts: 82 |
|
|
| 08 Apr 2014 01:12 PM |
| I'm new to scripting not sure what that is. |
|
|
| Report Abuse |
|
|