Is Mouse.Hit Deprecated?

Exactly as the title says. I’m not talking about Mouse.Hit.p, as that’s obviously been replaced by Mouse.Hit.Position, I mean the entirety of Mouse.Hit.

If the answer’s yes, how are you supposed to get the player’s mouse in 3D space?

Short answer no, if it was then the DevHub would say it.

Get the mouse position using UserInputService, make a raycast using the camera from the mouse position and check if it hits or not.

no but its not recommended for new works

this is what roblox says

if you want to know how to get the hit position without mouse i show how to do it here:

3 Likes