For loop not working when in combination with an IF statement

Put some workspace parts in your list and try it. Should print fail for the parts and valid for the humanoid.

Yeah, it actually seems to work that way. So… if it’s a string then it breaks it entirely.

You can probably use typeof to weed out the strings or whatever else might be in the table:

maybe typeof will tell you if its an instance and you can proceed with your if checks

1 Like