Help with :PivotTo

I’m making a car game, which also has a garage feature where the player can tune their car. For this, I need the car to move to the position and orientation of a part in the garage (green), but it doesn’t move to the desired position.


Code that sets the position:

					if Player.PlayerGui:WaitForChild("SelectedCar").Value then
						Player.PlayerGui:WaitForChild("SelectedCar").Value:PivotTo(CFrame.new(
								workspace.GarageCarHook.Position.X,
								workspace.GarageCarHook.Position.Y,
								workspace.GarageCarHook.Position.Z
							)
						)
						Player.PlayerGui:WaitForChild("SelectedCar").Value:PivotTo(CFrame.Angles(
								workspace.GarageCarHook.Rotation.X,
								workspace.GarageCarHook.Rotation.Y,
								workspace.GarageCarHook.Rotation.Z
							)
						)
						Camera.CameraSubject = Player.PlayerGui:WaitForChild("SelectedCar").Value
					end

Have you checked the GarageCarHook’s position? try printing that and see if it matches your green box’s position