debounce = false
timething = 0
local toh = "Unrefined Iron"
script.Parent.Touched:Connect(function(hit)
if debounce == false then
end
if hit.Name == toh then
if timething == 3 then
hit:Destroy()
timething = 0
end
local cl = workspace["Copper Ore"]["Unrefined Iron"]:Clone()
cl.Parent = script.Parent.Parent.Parent
timething = timething + 1
end
end)
All of the destroying the iron works perfectly after three consecutive hits, but, it never clones the refined material into the players backpack. Ir prints no errors.

3 comments
Edited question to modify inappropriate identifiers - kids are watching
hmm? it's supposed to be times - hit... it is totally appropriate.
but i guessssss i get where you need to moderate -.-