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)
