So I’m trying to set the new vehicle cframe to the old cframe but set the X and Z rotation to 0 but it doesn’t work:
local function spawnNewVehicle(player, parent, vehicle, oldCFrame)
local newVehicle = vehicle:Clone()
newVehicle:PivotTo(oldCFrame * CFrame.fromEulerAnglesYXZ(0, math.rad(oldCFrame.LookVector.Y), 0)) <--------
newVehicle.Parent = parent
end