Script not properly working?

This script is intended to copy the bullet hole model, and when it does, it works the first time. The second time, apparently the bullet hole model that is to be cloned from doesn’t exist??

local bulletHole = script:WaitForChild("BulletHole"):Clone(); bulletHole.Parent = workspace; bulletHole.Anchored = true; bulletHole.Position = raycastResult.Position; bulletHole.CFrame = CFrame.lookAt(hit, hit + raycastResult.Normal);
1 Like

Could we see the entire code?
What is hit and raycastResult?

Also, I suggest:
1.Creating / cloning the instance.
2.Editing its properties.
3.Parenting it.

(script removed for security purposes)

local bulletHole = script:WaitForChild("BulletHole")
local bulletHoleClone = bulletHole:Clone();
--Assign properties to 'bulletHoleClone' here.
debris:AddItem(bulletHoleClone, 3)