Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do I make a tool that deletes itself if deselected?

I'm making a inventory GUI but I want the tools to delete themselves 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.