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

How to remove a item from a players inventory?

Basically I need help to remove a item once the player has received a certain level.

Please help. Thanks

2 comments

0

Is the item a tool? If the player has the tool equipped, the tool will be in their character, otherwise it will be in the player's backpack.

0

In the rules, I'm pretty sure you have to have some code. We need to see effort of trying to script it.

1 answer

✓ Accepted answer

Put this in a LocalScript inside StarterGUI.

plr = game.Players.LocalPlayer
level = plr.Level --Change this to wherever you get level.
lvl = 1 --Level where it gets removed.
if level >= lvl then --Insert your trigger here, mine is an example.
plr.Backpack.TOOLNAME:Remove() --Replace TOOLNAME with your tool that needs to be removed.
end

2 comments

0

Thanks :)

0

No problem.

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