-
What do you want to achieve?
I would Like to get the Orientation Z Value of this weld.
-
What is the issue?
I don’t know how.
-
What solutions have you tried so far?
I have tried doing it myself with no success along with looking on the devform.

Also getting it to pring Weld.C0.Rotation.Z will just always print 0 no matter what the value in.
1 Like
Try:
x,y,z = weld.C0:ToOrientation() — returns values in radians, in order of orientation
2 Likes
Use Weld.C0:ToOrientation(), which returns X, Y, and Z degrees separatly. You can get the third value like this:
local _, _, z = Weld.C0:ToOrientation()
1 Like
How can I get it to print the degree of the angle rather than the radians?
Edit:
Nevermind its just math.deg()
system
(system)
Closed
5
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.