Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

How to I get the X,Y,Z position of a C0?

Asked by 9 years ago

I have tried stuff like

lspos = ls.C0
rspos = rs.C0
lspos = ls.C0.Positon
rspos = rs.C0.Position
lspos = ls.C0.CFrame
rspos = rs.C0.CFrame

rs = right shoulder ls = left shoulder

1 answer

Log in to vote
0
Answered by
BlueTaslem 18071 Moderation Voter Administrator Community Moderator Super Administrator
9 years ago

The C0 property of a JointInstance is a CFrame.

We can see (above link) that CFrames have a p property which is a Vector3 which has the x, y, and z properties you are looking for.

(Note that this position will be in the object space of one of the parts)

0
will this work for angels? User#600 0 — 9y
0
angles*? User#600 0 — 9y
0
Be more specific . . . What does "work" mean in this context? BlueTaslem 18071 — 9y
0
will it be able to get the values of the angles? User#600 0 — 9y
0
That isn't more specific. BlueTaslem 18071 — 9y
Ad

Answer this question