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

How to remove a item from a players inventory?

Asked by 8 years ago

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

Please help. Thanks

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. OldPalHappy 1477 — 8y
0
In the rules, I'm pretty sure you have to have some code. We need to see effort of trying to script it. Smaltin 46 — 8y

1 answer

Log in to vote
0
Answered by
Smaltin 46
8 years ago

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
0
Thanks :) DevOverr 15 — 8y
0
No problem. Smaltin 46 — 7y
Ad

Answer this question