vastqud
|
  |
| Joined: 10 Sep 2011 |
| Total Posts: 2464 |
|
|
| 08 Oct 2016 03:00 PM |
wait(3) local speed = 54 local dir = script.Parent.primary.CFrame.lookVector local dir2 = dir.Z local vel = dir2*speed local vel2 = -vel local bv = script.Parent.primary.BodyVelocity bv.Velocity = Vector3.new(0,-2,vel2) script.Parent.primary.Velocity = Vector3.new(0,-2, vel2)
this car script works, it makes it go forward, but if the car falls off of a cliff or something, it's hardly affected by gravity and very slowly floats back down to the ground. also, the car sometimes starts to point upward, so i had to add -2 velocity to the Y value. does anyone know how to fix this? i would like for the car to only point straight, and not float as it falls off cliffs. |
|
|
| Report Abuse |
|
vastqud
|
  |
| Joined: 10 Sep 2011 |
| Total Posts: 2464 |
|
| |