I have a part with a ClickDetector. How do I make it so that when a player clicks this brick, the tool 'Cola' is removed from their hotbar? Thanks.
script.Parent.ClickDetector.MouseClick:connect(function(player) game.Workspace:WaitForChild(player.Name):FindFirstChild("Cola"):Destroy() end)
Script in the part NOT the click detector