Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

What is the difference between mouse.hit.Position and mouse.hit.P?

Asked by 5 years ago

I've seen people do things like

mouse.hit.Position

and then I have seen people do things like

mouse.hit.P

Whats the difference? Also if I was trying to find it with a server script using invokes, would I send the mouse or Mouse position?

0
No real difference, other than the name. As for the mouse, you'd send the position. TheeDeathCaster 2368 — 5y
0
Thanks, so do I need to set what p is or does it already know its position? XX_Scripta 11 — 5y

1 answer

Log in to vote
0
Answered by
clc02 553 Moderation Voter
5 years ago

Mouse.Hit is a CFrame, so really you're asking if there's a difference between CFrame.Position or CFrame.p. As for that, in the CFrame documentation only .Position is referenced explicitly in properties, .P is only referenced in two methods in their descriptions. So if you wanted to be proper I'd say use .Position, as someone looking up .P might not have an idea of what you're referencing, and the documentation wouldn't help them unless it gets updated in the future.

Ad

Answer this question