How can I fix this?

I am trying to make it to where if there is a object inside of the player that haves a Name that is one of the strings in This Table then the code would run but when I test it nothing happens even if I do everything right can you please help me?

Table:
Screenshot 2024-12-06 174924

Code:
image

1 Like

Change the if to

if table.find(Table, v.Name) then
3 Likes

It worked thanks! I also just realized I posted this topic in the wrong section of the forums💀

1 Like

Please mark @SOTR654’s post as the Solution.

1 Like

I cant because I posted this topic in the wrong section

1 Like