I am confused with mouse.UnitRay, and mouse.UnitRay.Origin

Hello, I’m XXgamerisaliveXx, and I have started learning Lua in may, and I’m really confused with mouse.UnitRay, as well as mouse.unitray.Origin. Please let me know if you have any explanations.:slightly_smiling_face:

Origin is self explanatory, it’s where the mouse originally is, UnitRay is just the direction of the ray:

1 Like

Thank you, I understand it better than before.