Mouse.Target ignores local player

For some reason mouse.Target deals with the LocalPlayer as a ghost, so when I click it and try to print the target it returns the thing behind the LocalPlayer, how to fix this?

local mouse = player:GetMouse()

tool.Activated:Connect(function()
	local target = mouse.Target
	print(target) -- treats localplayer as a ghost, but other players/npc normally

Is the player .Locked by any chance? I don’t usually use mouse.Target as I opt for raycasting but you could try checking that the LocalPlayer’s Character isn’t locked.

1 Like

I think its always like this and happens for everyone

1 Like

No it’s not locked, and from c_PRO answer I think I have to move to raycasting