I tried this script:
tool = script.Parent.Parent player = game.Players.LocalPlayer pm = player:GetMouse() tool.Equipped:connect(function(mouse) game.ReplicatedStorage.Kill:Clone().Parent = player.PlayerGui end) tool.UnEquipped:connect(function(mouse) player.PlayerGui.Kill:Destroy() end)
Careful; capitalization error. Remember that programming languages are case-sensitive. This is due to the fact that it was made to be as compact as possible, leaving less room for redundancy.
tool.Unequipped:connect(function () player.PlayerGui.Kill:Destroy() end)