I'm making a inventory GUI but I want the tools to delete themselves if deselected...
COMMUNITY QUESTION
How do I make a tool that deletes itself if deselected?
1 answer
Easy.
Use the Deselected event.
tool = --put tool reference here
tool.Deselected:connect(function()
tool:Destroy()
end)
Good luck; and please consider leaving me an upvote!
This discussion is preserved as it was. New answers, comments, and votes are closed.
