Cframe.p, what does this mean? (toolbox code reviewing)

Hello, I’m just reviewing toolbox items and I came across this line of code here

local currentrotation = dust.CFrame - dust.CFrame.p

It doesn’t create a variable anywhere else in the script where its set as “p”.

what does “.p” mean? I count find anything on the Roblox documentation.
Please help lol

1 Like

Deprecated property for CFrame use CFrame.Position.

1 Like

It’s deprecated but I believe its position

1 Like

oh okay so it used to be a thing but got removed?

but technically it still works?

You shouldn’t use deprecated properties. It mostly likely was a name change for stylistic choices of the Engine, and it probably still works.

Oh alright. but lets say I wanted to get the position. What would be the best way to grab it instead of using this deprecated way?

Use CFrame.Position. Keep in mind most deprecated items could be eventually removed from the Engine resulting in your code becoming obsolete.

2 Likes

Alright, So Cframe.Position isn’t deprecated and is safe to use? Correct?
(you can like the post for yes)

Thank youuuuuu<3

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.