The title explains it. Thanks!

9 comments

2

I think that's the more precise we can get, as its the only way on getting the mouse target position

0

Alright. I will see if anyone else can tell me othervise

0

wise*

0

Note: You can edit your comment by clicking on its text

0

Oh wow, thanks!

0

Can you elaborate? What do you mean more precise? I don't think that exists? Mouse.Hit is the CFrame of the Mouse in 3D space. Mouse.Hit.p is the Vector3 position of the CFrame in 3D space. It's pretty precise. 

0

FYI, Mouse.Hit.p is deprecated, use Mouse.Hit.Position (or CFrame.Position)

0

hey, there is a way using userinputservice and making a ray and then extending it and stuff, let me find a link to it.

0

https://developer.roblox.com/en-us/api-reference/function/Camera/ScreenPointToRay at the bottom it shows a code sample of how to use it for mouse.hit.position. The ScreenPointToRay draws a ray, however that ray is limited length so we just amke a new normal ray to replace itm