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

How do I print a Cframe in 3d View?

Asked by 8 years ago

I'm trying to print a Cframe in 3d vector view, with the position on top.

So far I have tried to condense it into a string and print numbers in patterns of 3, but it doesn't seem to work.

local Cframe = tostring(game.Workspace.Part.CFrame)
print(Cframe)
for match in string.gmatch(Cframe, "[%d.]+,[%d.]+,[%d.]+,?") do
    print (match)
end
print(Cframe)

Answer this question