Argument 1 missing or nil when using FindFirstChild?

So I’m making a trading system but I get this error where it says Argument 1 missing or nil. The line it errors on is above what the mouse is hovering over:


This is really confusing and for more context this is where I set “requestingPlayerName”

And this is where we FireClient in a server script:

Any help is appreciated, thanks!

1 Like

Can you print out the requestingPlayer?
If it’s nil, then make sure that it exists. Be careful of the scope of the variables.

Make sure the otherPlayerName is actually a string and the TradeRequestEvent fires properly.

1 Like

Try printing requestingPlayerName to see if it’s actually nil. Reminder that the first argument is always the player associated with the RemoteEvent.

1 Like