Converting a CFrame to a string but only the x, y, and z components of the CFrame

Hey guys, so I’m trying to convert a CFrame into a string, but only the X, Y, and Z position components. I used tostring() to convert the ENTIRE CFrame into a string, but I only want the X, Y, and Z position, and I’m not too sure how I would do that. Help pwease.

Ok so while waiting for 4 minutes I tried some other random stuff, and managed to figure it out. I’m not too sure if this is the most efficient way though, so please give suggestions if possible.
Anyways, I converted each of the individual x, y, and z components to a string with tostring(), but I joined each of the individual CFrame with ‘…’. Example:

tostring(object.CFrame.X)..tostring(object.CFrame.Y)..tostring(object.CFrame.Z)

The most efficient way of doing this would be

tostring(object.CFrame.X .. object.CFrame.Y .. object.CFrame.Z)
1 Like

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