So I’m currently working on a script that removes a certain item from the players backpack which is required to do other things in the script, but I need to make sure the player unequips the tool.
Having a lot of trouble trying to add a system to unequip the tool in the script.
Here’s the script which I have so far. I’m just having trouble trying to make the person unequip the tool.
local toolstoremove = {
"tool",
}
local backpack = player.Backpack
for i=1,#toolstoremove do
local tool = backpack:FindFirstChild(toolstoremove[i])
if tool then
tool:Destroy()