POC: How do I remove a tool from one's backpack after use?
IDEA: For instance, if one finds a key and touches a door, the door will open (transparency = 1, can collide = false), but the key is still in the user's inventory. Also, how do I delete the door rather than typing more lines of code?
NOTES: I was told from a friend that I should use tool:Delete(), but I do not know how to use it because my script does work completely. I've also seen Part:Delete(), but there's always an error that I do not know how to fix.
script.Parent.Touched:connect(function(p) if p.Parent.Name == "CopperKey" then script.Parent.Transparency = 1 script.Parent.CanCollide = false end end)
OVERALL: -How do I write the script when a certain tool touches a brick, the tool deletes itself from the user's inventory? -How do I delete the part?
Closed as Not Constructive by Ziffixture
This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.
Why was this question closed?