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:
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?