Help with making a part look a certain direction

Hello!
I am currently making bullet holes for a gun of mine, it works and makes them, but it only looks in one direction, how would I get it to go forward base on the direction the player is facing?
Here is my code(server-side)

function module.makeHole(hitPart, realBullet)
	print("worked")
	print(realBullet.CFrame.lookVector)
	print("its a part")

	wait(.1)
	realBullet.Size = realBullet.Size * Vector3.new(1, 1, 0) + Vector3.new(0, 0, hitPart.Size.X * 2)
	wait(.1)

	realBullet.Size = Vector3.new(6.667, 1.224, 0.98) --7.536, 0.169, 0.216
	
	
	local success, newUnion = pcall(function()
		return hitPart:SubtractAsync({realBullet})
	end)

	if success and newUnion then
		newUnion.Position = hitPart.Position
		newUnion.Anchored = true
		newUnion.Parent = game.Workspace
		-- Remove original parts
		hitPart:Destroy()
		realBullet:Destroy()
	end
end

try using

Cframe.lookAt(part.Position,target.Position)
1 Like