How do I make my vehicle move up and down using Bodyvelocity and Cframes?

I’m trying to make a vehicle where you can travel by using your mouse to point and to go up and down using keys.

Example of how it moves forward:

		seat.BodyGyro.CFrame = CFrame.new(seat.Parent.Body.Position, mouse.Hit.LookVector * 1000)
		if w then
			seat.BodyVelocity.Velocity = seat.CFrame.LookVector * 100
		elseif s then
			seat.BodyVelocity.Velocity = seat.CFrame.LookVector * -100

The script is a localscript inside the player’s startercharacterscript.

1 Like

you can do to go down
seat.BodyVelocity.Velocity = seat.CFrame.UpVector * -100
and to go up
seat.BodyVelocity.Velocity = seat.CFrame.UpVector * 100

1 Like

I guess I’m bad at reading the API.

1 Like