i really woundering if it is possible to make a script that i cant have more then 1 tool in the backpack?
✓ ANSWER ACCEPTED
is it possible to max inventory slots?
1 answer
✓ Accepted answer
example local tool_A = script.Parent local player = game.Players.LocalPlayer
tool_A.Equipped:connect(function() player.Backpack.tool_B:Destroy() --if you do not want other tools to destroy or dissapear then say its new parent = game.Workspace
end)
This discussion is preserved as it was. New answers, comments, and votes are closed.

7 comments
Yes you would just use http://wiki.roblox.com/index.php?title=API:Class/Instance/ChildAdded . As this is so simple to do im not going to make a scritp :P
i cant understand how that will do so i cant have more then one tool in the backpack
This event will fire when a tool is added to the player backpack, simply discard the tool if there is one present in the players backpack
ya, Okay but i dont know how to change that in the script
Can you post the script?
i mean i dont know what i have to change so if a tool is added then it just discards it with the childAdded script
The childAdded event will give you the tool that is being adde as its paramater, check that there is no tools in the backpack then add/delete the tool.