What you will need
An item granter
First of all, grab a zone and out it in the area in which where you want the player to lose what they have in their inventory.
Then, grab a checker and click on the “Check #1” dropdown and set it to these settings(I will be using a quantum portal for my example):
Then, grab an item granter and set it to the item you put in the checker.
This is what the item granter’s settings should look like:
Now, wire these devices like this:
And now, this is what the final product should look like(Don’t mind the wire in the bottom left).
And there you have it!