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 » Scripters
Home Search
 

Gradual Speed Up

Previous Thread :: Next Thread 
Geckoco is not online. Geckoco
Joined: 28 Sep 2014
Total Posts: 536
17 Jan 2016 09:44 AM
I am trying to make a train. I need to make the train have a stepped speed up.
This is my current script

script.Parent.down.MouseButton1Click:connect(function()
for i=1,10 do
game.Workspace.TehTran.Speed.Value = game.Workspace.TehTran.Speed.Value-i
end
end)
script.Parent.up.MouseButton1Click:connect(function()
for i=1,10 do
game.Workspace.TehTran.Speed.Value = game.Workspace.TehTran.Speed.Value+i
end
end)


Place: http://www.roblox.com/games/342018497/Choo-Choo#




Boop Boop Boop... BEEP
Report Abuse
centraltrains is online. centraltrains
Joined: 18 May 2010
Total Posts: 1331
17 Jan 2016 09:46 AM
Put a
Wait()
in all the iterations.


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