First of all, raycasting only accepts Vectors and not CFrames, second do in your first argument a.Position
1 Like
There is no need in doing .LookVector there
1 Like
Wow. Thank you sooo much!! It worked.
No problem, btw we only do .LookVector and .Unit in the Second Argument (direction) cuz both are Unit Vectors
1 Like
And unit vectors have a magnitude of 1, so a unit vector would look for example something like this Vector3.new(0.89, 0.9, 0.94)
1 Like
So, summary: CFrame and Vector3 are the same thing. Except that CFrame has position and orientation. When you’re using CFrame.Angles(), the order is Z, Y, X. If you want something to face something use lookAt. The function Raycast only accepts Vector3, not CFrame. Whitelist will avoid everything except that table whereas Blacklist is the opposite. Thanks!!