How to fix mouse is no longer active

So when I do script.Parent.Equipped:Connect(function(Mouse)) I use it to send a argument to the server but if I un-equip and re-quip then I can still do what I need but it just shows error message that the mouse is no longer active

Try doing

local Mouse = player:GetMouse()

Then do the

script.Parent.Equipped:Connect(function(Mouse))