So I am trying to reset the player mouse icon when the tool gets destroyed.
When the player dies, the destroying event does not fire.
local player = game.Players.LocalPlayer
local mouse = player:GetMouse()
local tool = script.Parent.Parent
local mouseIcon = icon
tool.Equipped:Connect(function()
mouse.Icon = mouseIcon
end)
tool.Unequipped:Connect(function()
mouse.Icon = ""
end)
tool.Destroying:Connect(function()
print("Destroyed") -- does not print
end)