In this post, I'm talking about the CFrameValue
value, not just the theoretical value set inside of scripts.
I've checked the wiki, but since the most recent update, it's largely useless when it comes to learning about these more obscure RBX.Lua items. I'd like to know the following things --
How do I store values inside of them?
(0, 0, 0)
, Cframe.new(0,0,0)
, or something else?Position
property?What do they return exactly (format and value form) when called upon?
Where in my code should I put a reference to it in order for it to register?
Cframe.new(cframevalue.Value)
or just set the Cframe I'm looking to change to = cframevalue.Value
?What are their limitations, if any? (within obvious reason)
If there's anything else you might deem important, please let me know -- even though I'm a generally proficient scripter, I love to be as informed as possible about subjects I know little about.
Thank you for reading, and I look forward to finding what this obscure little element does!
A CFrame value still does store CFrames, But you dont actually see them in the Property Window. If you are to store a CFrame inside of one, it must be a type of CFrame rather than Vector3 or Vector2. It will store ALL the CFrame stuff any CFrame has, Including rotation. To set it you could do.
workspace.CFValue.Value = Part.CFrame
or for a specific Position:
workspace.CFValue.Value = CFrame.new(0,10,0)
and it will work. Yes you can do something like
part2.CFrame = workspace.CFValue.Value
instead of doing
part2.CFrame = CFrame.new(workspace.CFValue.Value)
I hope this answered your question.