Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

I'm currently making a game, does anybody know how to reduce the max inventory space?

Asked by 3 years ago

I'm currently making a game, but am unsure on how to reduce the max inventory space to 1. I have tried searching on the internet, but haven't found anything. Does anybody know how I can reduce the max inventory space to 1?

1 answer

Log in to vote
2
Answered by 3 years ago

My solution would be to check when a child is added to the player's backpack (https://developer.roblox.com/en-us/api-reference/event/Instance/ChildAdded) and if there is already something in the backpack, put the tool back into the workspace or whatever you need to do with it. That's how I would do it but I'm sure there are many other ways if this way doesn't work for your game.

Just know there's no setting for it, you have to manually script a system for this.

Ad

Answer this question