I have a bullet collision system that I made, and it works fine, however, there’s an issue: As said in the title, bullets, when touching each other, create bullet holes unintentionally. The video below shows what happens:
The code snippet below shows how it’s handled:
bullet.Touched:Connect(function(hit)
local Part = hit.Parent:FindFirstChild("Part")
-- ...
if Part then
local bh = game.ReplicatedStorage.bulletHole:Clone()
bh.Parent = workspace.BulletHoles
bh.Position = pos
bh.CFrame = CFrame.new(bh.Position, bh.Position + normal)
bh.BrickColor = bullet.BrickColor
bullet:Destroy()
game.Debris:AddItem(bh, 5)
end
end)
I attempted to fix this by checking the part’s name when they collide, however, the bullet disregards all parts and goes through them.