Desperately Need Help with Grade 9 Static Electricity
Great question. If you can rule out magnetism (based on the material of the foil and the material of the screw under the brass plating, or by demonstrating that there is no force on the foil when the PVC pipe is not charged), you are seeing the effect of induced electric charge on the screws. They are electrically neutral overall, and when they are surrounded by the negative charge of the PVC pipe, electrons in the screw are repelled slightly inward from the surface, leaving positive charge at the surface. This is called polarization. The resulting electric forces are strongly concentrated near the screw, and since the foil is negatively charged, it is attracted to the screw.
Why does the foil bounce when it touches the screw? The electrons of the foil are attracted to the screw, and some of those electrons flow onto the screw at the contact point. You then have a slight positive foil, which is repelled by the screw.
You can test this explanation: The foil should be positively charged after it bounces from the screw, and then it should be attracted to the negatively charged pipe.
I would guess that the screws are secretly grounded through a hidden conducting path inside the wood block and the table. Maybe the table is wet, maybe there are metal wires inside the block, I don't know the exact setup, but I think there is some grounding path. This means that they stay at zero potential, no matter what you do to the PVC. So when you charge up the PVC tube, the screws accumulate a large amount of charge to keep their potential zero in the tube background.
The induced charge on grounded screws is much larger than the induced polarization on isolated screws, and the pointiness of the screw will lead to huge local fields near them, and will explain your observation. If this is the case, putting big books beneath the block should de-ground the screws.
For this explanation to work, the screws don't have to be completely grounded. It is enough if you have the screws go all the way through the wood, and rest the block so that the screws touch a metal table. In this case, the metal will act as a not-so-infinite ground, and will supply charge to the semi-grounded screws. You can fix this by mounting the block on top of a dry book.
To test any of these explanations, you can just hold up the block yourself without touching the screws, and rub, and see if you still get the large charge on the screw.