Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to make it so that I can only have 3 items equipped?

is there like an CoreGui thing to set the maxiumum tools that can be out???

Also by that I mean you know how if you play on a iphone a small one u can only have 3 tools but then when you open backpack it shows more tools and u can drag it and put it in 3 tool space

2 comments

0

Make your own backpack display.

0

^ OOF

1 answer

probably gonna be alot of mistakes but heres just how i would approach it

local wepnum = #game.Players.LocalPlayer.BackPack:GetChildren()
if wepnum > 3 then
-- do something such as kill the player

in general you would want to figure out how to order the way that things are added to the players backpack, for example you would insert the tool name into a table and the most recently added object to the table would be removed from the players backpack if the # is over 3

This discussion is preserved as it was. New answers, comments, and votes are closed.