Making Action choosing thing in first person with mouse lock

I need a thing to choose actions in first person while mouse is locked. I noticed a game with a thing similar to what i want.

Heres example: Example - YouTube
Heres the game it was recorded from: MURDER - Roblox
just hold ‘Q’ and move mouse to choose action

I think i will need to make so my mouse is no longer locked on, but make it invisible (easy to do)
Then i need to somehow check to which object mouse is closest to, but i have no idea how to check it. Any ideas? Or other ways to make it?

The easiest way would just be checking if the mouse moves up, down, left, or right

1 Like