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
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Need help.

Previous Thread :: Next Thread 
LordTayls is not online. 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 is not online. LordTayls
Joined: 27 Apr 2010
Total Posts: 82
08 Apr 2014 08:14 AM
B1
Report Abuse
LordTayls is not online. LordTayls
Joined: 27 Apr 2010
Total Posts: 82
08 Apr 2014 09:35 AM
B2
Report Abuse
NeonRiver is not online. NeonRiver
Joined: 12 Feb 2013
Total Posts: 4936
08 Apr 2014 09:38 AM
[ Content Deleted ]
Report Abuse
LordTayls is not online. LordTayls
Joined: 27 Apr 2010
Total Posts: 82
08 Apr 2014 11:10 AM
B3
Report Abuse
chris046 is not online. 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
Introducted is not online. Introducted
Joined: 09 Feb 2013
Total Posts: 836
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 is not online. 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
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