"Mouse is no longer active" when trying to use it

I’m trying to make a tool myself, but I can’t seem to wrap my head around this specific issue:

When I’m using Mouse inside the Activated event, it seems to always disable.

function equipped(mouse: Mouse)
	print("Equipped")
	
	tool.Activated:Connect(function()
		local target = mouse.Target
		print("Target:", target)
	end)
end

Printing the Mouse before the “Equipped” print works perfectly, it just seems that when I need it most it decides not to work.

Anyone have a fix to this?

Get mouse somewhere else
I have absolutelly no idea as to why roblox even made that as since mouse is a singleton…


For more information:

Althrough be careful hence some methods is plugin security

Possible issue:

One of your plugins is disabling mouse? :thinking: