Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

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

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?

2 comments

0

No real difference, other than the name. As for the mouse, you'd send the position.

0

Thanks, so do I need to set what p is or does it already know its position?

1 answer

✓ Accepted answer

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.

This discussion is preserved as it was. New answers, comments, and votes are closed.