In which scenario would I use the :GetMouse() within a script?

I’m not sure which category my question would lie in however I decided to put it here.

I’m aware of what :GetMouse() does but I don’t know when to use it. May you scripters elaborate on that?

There are many uses honestly. It’s mostly used when creating ranged-weapons, to get the position of the cursor on the screen converted into a CFrame (Mouse.Hit) and fire a bullet towards it. Another use is to get the position of the cursor in 2D, so as a Vector2, sometimes used to create custom pointers or to position GUIs near the cursor.

3 Likes