Getting car to move

Hello, so recently I made a car system, but however, it moves badly.

What I mean by “badly” is, that it moves like it lags. (changing positions in a loop)

So, can you guys give me ideas, how I can get a car to move more smoothly and turn?

1 Like

Please post your code formatted so we will be able to assist you further! :slight_smile:

local canstop = false

while true do
wait(1)
if(canstop == true) then
	break
end
car.Position = Vector3.new(car.Position.X + 1, car.Position.Y, car.Position.Z)

end

this is what i’ve been using

Your best choice is probably to use a BodyVelocity a have the applied Velocity 1 on the X axis, this will remove the use for a while loop.

For example:

local BodyVelocity = Instance.new("BodyVelocity")
BodyVelocity.Velocity = Vector3.new(1,0,0)
BodyVelocity.Parent = car

Of course when you want to stop it you can either set the Velocity of it to 0 or :Destroy() it.

2 Likes

ill try it out ty :slight_smile: