Mouse direction being inconsistent

I’m trying to get the direction of wherever the mouse is facing, but it is rather inconsistent with both of the methods I’ve shown below, is there another way for this?

local direction = (mousePos - character.HumanoidRootPart.Position).Unit --1st method


local direction = (Mouse.UnitRay.Direction) --2nd method

local newPos = direction * maxProjectileReach
remote:FireServer(newPos, blahblahparameters)
1 Like

Direction is not position, if you want to convert it add the position of the humanoid root part.

But wouldn’t that prevent me from getting the position I desire on where my mouse is?

Ah nevermind, it works. Thanks!

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