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: What do I use to keep a ship at constant speed?

Previous Thread :: Next Thread 
iBroski is not online. iBroski
Joined: 06 Jul 2011
Total Posts: 100
21 Oct 2012 05:26 PM
So I have a model of a starship that uses BodyPosition( to keep it at a certain height,) and Gyro( to maintain stability. I don't want to use BodyThrust to propel the ship because the speed wouldn't stay the same, rather it would slowly increase.

Does anyone know what I could do to make the speed stay constant?

Ty
Report Abuse
iBroski is not online. iBroski
Joined: 06 Jul 2011
Total Posts: 100
21 Oct 2012 05:27 PM
Omg, double-post.
Report Abuse
RA2lover is not online. RA2lover
Joined: 09 Nov 2008
Total Posts: 1254
21 Oct 2012 05:32 PM
bodyvelocity
Report Abuse
ScriptBuiIder is not online. ScriptBuiIder
Joined: 02 Feb 2010
Total Posts: 31
21 Oct 2012 05:34 PM
Script:

while true do
wait()
part.Velocity = Vector3.new(100,0,0)
end
Report Abuse
iBroski is not online. iBroski
Joined: 06 Jul 2011
Total Posts: 100
21 Oct 2012 05:35 PM
I thought about BodyVelocity, but I realized that the direction isn't exactly controllable. At least, I don't know how :/

I need the thrust to go in the direction the model is facing.
Report Abuse
LieutenantSpinach is not online. LieutenantSpinach
Joined: 15 Dec 2010
Total Posts: 1
21 Oct 2012 06:13 PM
just use bodythrst
Report Abuse
RA2lover is not online. RA2lover
Joined: 09 Nov 2008
Total Posts: 1254
22 Oct 2012 10:59 AM
use lookvector to get the part's facing unit vector and multiply it by the velocity you want.
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