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

is it possible to max inventory slots?

i really woundering if it is possible to make a script that i cant have more then 1 tool in the backpack?

7 comments

0

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

0

i cant understand how that will do so i cant have more then one tool in the backpack

0

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

0

ya, Okay but i dont know how to change that in the script

0

Can you post the script?

0

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

0

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.

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.