Why is using "for i,v in pairs(table)" not working

Alright, so I figured out what the problem is, but I don’t know why it happens. I only had to replace the variable “item” with “module.Metal”. I don’t know why I can’t put the “local item = module.Metal” into the MouseButton1Click function neither, but i’ll figure it out soon.