Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

This Mouse is no longer active, how to fix?

Ummm? What is the bug?

Error: 17:42:52.670 - This Mouse is no longer active 17:42:52.672 - Stack Begin 17:42:52.673 - Script 'Players.Player1.Backpack.Pistol.Gun_Script', Line 361 17:42:52.675 - Stack End

Line 361:

Character.Torso.Neck.C0 = CFrame.new(0, 1.5, 0) * CFrame.Angles(math.asin((Mouse.Hit.p - Mouse.Origin.p).unit.y), 0, 0)

All

	Camera.Changed:connect(function()
		if (Camera.Focus.p - Camera.CoordinateFrame.p).magnitude < 1 and Equipped then
			Mouse.TargetFilter = workspace
			Character.Torso.Neck.C1 = CFrame.new()
			Character.Torso.Neck.C0 = CFrame.new(0, 1.5, 0) * CFrame.Angles(math.asin((Mouse.Hit.p - Mouse.Origin.p).unit.y), 0, 0)
		end
	end)

1 answer

This Mouse is no longer active usually happens when you are using a HopperBin, if you are, you need to use tools. Otherwise, why not update it by RenderStepped? It won't error if you do it right, and it will also update correctly for what I think you are trying to go for.

This discussion is preserved as it was. New answers, comments, and votes are closed.