So I had this question since yesterday and I haven't gotten a proper answer, I'm making a game were you recruit allies to help you fight. I got this tool which spawns the model by its id. But I can't find out how to remove it from the backpack once you click it.
AidanTES tried to help me but.. Didn't work..
local tool = game.StarterPack.Tool -- Replace tool with the name of your tool
function(onClick)
tool:Destroy()
end
tool.Activated:Connect(onClick)

1 comment
Thank you! I noticed that it removes the tool before it spawns the npc but I put wait(1) after local function onClick ()