Hello, would i make a exception table, it would be for a Touched event because it spawns parts on my that have the touched in them? I need the table to keep them from harming me.
local whitelist = { Part = true; Brick01 = true; Handle = true; } script.Parent.Touched:connect(function(hit) if not whitelist[hit.Name] and not whitelist[hit.ClassName] then print("ok") else print("no") end end)