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
|
  |
| Joined: 15 Jul 2009 |
| Total Posts: 940 |
|
| |
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 22 Jul 2011 05:34 PM |
Speed = math.floor(Seat.Velocity.magnitude + 0.5)
More accurate. |
|
|
| Report Abuse |
|
|
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
|
  |
| 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
|
  |
| Joined: 15 Jul 2009 |
| Total Posts: 940 |
|
| |
|
David7700
|
  |
| Joined: 15 Jul 2009 |
| Total Posts: 940 |
|
|
| 27 Jul 2011 07:25 PM |
| *Le Facepalm* I get it now. |
|
|
| Report Abuse |
|
|