Extremely inacurate mouse positions/raycasts

I want to make a weapon holding system, using ik, the server script does allat, its just that mouse.hit is the furthest from accurate, i tried using raycasts and got the same result, any way to fix this

--local script

script.Parent.Parent.Equipped:Connect(function(mouse: Mouse) 
	UIS.InputBegan:Connect(function(input, processed)
		if input.UserInputType == Enum.UserInputType.MouseMovement then
			script.Parent.MouseEvent:FireServer(player:GetMouse().Hit.Position)
		end
	end)

	UIS.InputChanged:Connect(function(input, processed)
		if input.UserInputType == Enum.UserInputType.MouseMovement then
			script.Parent.MouseEvent:FireServer(player:GetMouse().Hit.Position)
		end
	end)
end)

Also, whys the gun always pointing down?

i accidentally didnt set worldpos

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.