What is CFrame.p

HI DEVS,

the tittle says it all

5 Likes

CFrame.p gives you the X,Y,Z coordinates of the CFrame without the rotational components

3 Likes

so it only gives me the position

The position of the CFrame, please do some research before posting!

CFrame (roblox.com)

i did research but as you can see it doesn’t say CFrame.p

5 Likes

What’s the difference between BasePart.CFrame.p vs BasePart.Position

I’m not very good at explaining things but its kinda the same but Position uses Vector3

CFrame takes place as a CFrame value, with both positional & rotational XYZ values

CFrame.p/CFrame.Position however is a Vector3 value, with only the positional XYZ values

6 Likes

so CFrame.p returns a vector3 position?

I believe so, looking at the reference that Ryna sent earlier

CFrame.p is equivalent to CFrame.Position and they return the exact same thing, but CFrame.p is deprecated and you should not use it for any code you’re going to write.

3 Likes

what do you mean? and why cant i use it?

In the past, this property was used, but now it’s deprecated. Google what deprecation means.

2 Likes

Think of the term “deprecated” as like a burnt piece of bacon

  • Even though it’s burnt, it’s still bacon; just that it barely holds up to its flavor

  • Most people don’t like/recommend having burnt bacon

(I swear 750 people are gonna yell at me for using this analogy)

42 Likes

i understand now since i am a bacon hair lol

5 Likes