Mufazl
(Mufazl)
#1
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
sonic_848
(killer)
#3
It’s deprecated but I believe its position
1 Like
Mufazl
(Mufazl)
#4
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.
Mufazl
(Mufazl)
#6
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
Mufazl
(Mufazl)
#8
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
system
(system)
Closed
#9
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.