function VehicleController.Update(c,E,S)if c.vehicleSeat then E=E+Vector3.new(c.steer,0,c.throttle)if S and(onlyTriggersForThrottle and useTriggersForThrottle)then c.vehicleSeat.ThrottleFloat=-c.throttle else c.vehicleSeat.ThrottleFloat=-E.Z end c.vehicleSeat.SteerFloat=E.X return E,true end return E,false end return VehicleController

function VehicleController:Update(moveVector, usingGamepad)
	if self.vehicleSeat then
		moveVector = moveVector + Vector3.new(self.steer, 0, self.throttle)
		if usingGamepad and onlyTriggersForThrottle and useTriggersForThrottle then 
			self.vehicleSeat.ThrottleFloat = -self.throttle
		else
			self.vehicleSeat.ThrottleFloat = -moveVector.Z
		end
		self.vehicleSeat.SteerFloat = moveVector.X
		
		return moveVector, true
	end
	return moveVector, false
end

return VehicleController
