How do I make sure a player can't pick up two objects at the same time?

I have tried that but I’m not very experienced in coding and didn’t manage to get it to work, I’ll try that again though thank you!