Argument 1 is missing or nil?

You can write your topic however you want, but you need to answer these questions:
I need to figure out how to fix the error belowt; I really don’t know what the issue is. Basically this is just a module where it equips armor to a player.

The script:


I’m pretty sure the line circled in red is the main issue but it might be something else (the error didn’t really specify which line). Tell me if you find the actual error because I’m not sure.

I’ve looked up solutions to this issue but most of them didn’t help.

Help appreciated.

The error is telling you that the argument you gave (armor) is nil. Try printing it to check if it is.

Ok so I printed it and it is indeed nil but I don’t know why

Nvm figured out why it had something to do with how I fired the event

Please mark a solution so people know it is solved.

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