Bullet hole on tree trunk looks weird

Hello everyone, I recently made a bullet hole system for my gun using the “normal” property of Rays. However when I shoot a tree with a cylinder trunk, this happens:
image
You can see that the bullets are seemingly colliding with the exterior of the cylinder, but there’s a huge gap between the hole and the actual trunk.

Here is my code:

local bulletholepart = Instance.new("Part")
bulletholepart.FormFactor = "Custom"
bulletholepart.Size = Vector3.new(0.5, 0.5, 0.05)
bulletholepart.Anchored = true
bulletholepart.CanCollide = false
bulletholepart.Transparency = 1

local bulletholedecal = Instance.new("Decal", bulletholepart)
bulletholedecal.Face = "Front"
bulletholedecal.Texture = "http://www.roblox.com/asset/?id=2078626"

local bullethole = bulletholepart:Clone()
bullethole.Parent = game.Workspace.BulletHoles
bullethole.CFrame = CFrame.new(pos, pos + normal)
game:GetService("Debris"):AddItem(bullethole, 5)

Is there a way to fix this problem?

1 Like

Could you possibly make it so the bullets dont collide with the bush?

1 Like

I don’t think it’s colliding with the bush. I tried shooting other tree trunks that did not have objects in between, and the problem still exists.

Also my raycasting system ignores objects with cancollide off, so the bullet passes through the bush.

I don’t know what you did wrong but i can give you a tip. Line 7 adding Instance.Parent into brackets is unrecommended, better do bulletholedecal.Parent = bulletholepart