Help with connecting an if statement with a table

Hello! I am have a table of materials, shown below. I need to connect it to an if statement such as the one below, how would I do this?

local pierceableMats = {
if table.find(pierceableMats, part.Material) then
    print("i am a piercable part")
1 Like

There’s no if statement shown below. However I will assume you’re trying to check if something exists in the table.

if table.find(pierceableMats, "Wood") ~= nil then
    -- Code here
1 Like