Seeing as you're still bumping:
(in the seats)
repeat wait() until #script.Parent:GetConnectedParts() > 0
maxSpeed = 10
turnRate = 0.5 ( full turns per second, i think, not 100% sure)
dampening = 50
while wait() do
local steer = script.Parent.Steer
local throttle = script.Parent.Throttle
local v = script.Parent.Velocity
local x,y,z = v.x,v.y,v.z
local speed = Vector2.new(x,z).magnitude
local speedincrease = (maxSpeed*throttle - speed) / dampening
script.Parent.Velocity = script.Parent.Velocity + script.Parent.CFrame.lookVector * speedincrease
script.Parent.RotVelocity = Vector3.new(0,math.pi*turnRate*steer,0)
end
If that mess doesn't work I'll change it to use BodyInstances later, :D |