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.
COMMUNITY QUESTION
Exception tables
1 answer
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)
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
ClassNames or Names?