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.