LookVector does not work correctly

Good morning developers !!
I’ve been trying for a while to find a solution to this problem, which is that I only modify the LookVector but it goes to the corner of the map, this is my script:

local Services = {
	Players = game:GetService("Players");
	ReplicatedStorage = game:GetService("ReplicatedStorage");

local RemoteEvents = Services.ReplicatedStorage:WaitForChild("RemoteEvents")
local DriveVehiclesRemote = RemoteEvents:WaitForChild("DriveVehicles")

DriveVehiclesRemote.OnServerEvent:Connect(function(Player, Car, DirecctionX, DirecctionZ)
	local PrimaryPartCar = Car.PrimaryPart
	local BodyPosition = PrimaryPartCar.BodyPosition
	local BodyGyro = PrimaryPartCar.BodyGyro
	BodyPosition.Position = PrimaryPartCar.CFrame.LookVector * DirecctionZ * 5
	BodyGyro.CFrame *= CFrame.Angles(0, math.rad(DirecctionX), 0)

This is the result:

Any solution? :thinking:

1 Like

Try adding the Position of the Car’s PrimaryPart with the other stuff?

BodyPosition.Position = PrimaryPartCar.Position + (PrimaryPartCar.CFrame.LookVector * DirecctionZ * 5)

In this way it no longer goes to the corner, although it offers a strange movement, in the same way what I ask works already, this movement I think is rotational, thank you very much!