Did i type this right?

im doing a sort of tool whitelist, but i dont know if i wrote it well. Its not working in game and get no errors. If you could help me, I would appreciate it. Thank you.

tool.Name == table.find(AllowedAxes,tool.Name)

Table.find() will give you a index basically, if the value is found then do x,
what you should do is `if AllowedAxes[tool.Name] then``

1 Like

it doesnt work:

if tool:IsA(‘Tool’) and AllowedAxes[tool.Name] and tool.Hitting.Value == true then

can you show the full script? to see everything

1 Like

I apologize, my method works for dictionaries but for regular list, it is what you meantioned,
but you must change it to (if table.find(AllowedAxes,tool.Name))

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.