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: VehicleSeat.Magnitude (?)

Previous Thread :: Next Thread 
David7700 is not online. David7700
Joined: 15 Jul 2009
Total Posts: 940
22 Jul 2011 02:25 PM
Is that what will get me the speed that is shown in the GUI, or what will?
Report Abuse
David7700 is not online. David7700
Joined: 15 Jul 2009
Total Posts: 940
22 Jul 2011 04:51 PM
Anybody?
Report Abuse
TheCapacitor is not online. TheCapacitor
Joined: 19 Jan 2011
Total Posts: 7045
22 Jul 2011 04:55 PM
Your close, your burning "like a piece of bacon. Thrown in a nuclear reactor." But what you need is BasePart.Velocity.magnitude. BaseParts include seats/vehicleseats. EXAMPLE:

print("Speed: " .. Seat.Velocity.magnitude)

_____________
Turtle power!
Report Abuse
TheCapacitor is not online. TheCapacitor
Joined: 19 Jan 2011
Total Posts: 7045
22 Jul 2011 04:56 PM
Oh wait...use this:

Speed = math.floor(Seat.Velocity.magnitude)

It will remove all the numbers after the decimal.

_____________
Turtle power!
Report Abuse
Piedude777 is not online. Piedude777
Joined: 01 Oct 2008
Total Posts: 10017
22 Jul 2011 05:34 PM
Speed = math.floor(Seat.Velocity.magnitude + 0.5)

More accurate.
Report Abuse
David7700 is not online. David7700
Joined: 15 Jul 2009
Total Posts: 940
22 Jul 2011 07:02 PM
That all makes sense now, thanks Piedude and TheCapacitor
Report Abuse
David7700 is not online. David7700
Joined: 15 Jul 2009
Total Posts: 940
22 Jul 2011 07:19 PM
Oh wait, how would I make it go like Script -> Model -> Vehicle Seat?
Report Abuse
David7700 is not online. David7700
Joined: 15 Jul 2009
Total Posts: 940
23 Jul 2011 09:57 PM
hello?
Report Abuse
David7700 is not online. David7700
Joined: 15 Jul 2009
Total Posts: 940
27 Jul 2011 07:25 PM
*Le Facepalm* I get it now.
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