Item.type issues - Javascript (SOLVED)

Hello, could someone help me please?
What is wrong with my code? I do not understand…

I’ve checked everything like 50 times and I still don’t understand what’s wrong … :confused:


I just fixed it, it was because I put item.type == “coin” and it should only be if (item) in the same way I find it to be a bug, I only put if (item) and it worked

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