Help with CFrame:ToOrientation()

just wondering if this piece of code:

local y = EnemyData.CFrame:ToOrientation() 

can return just the y value without using a variable. so,

local y = EnemyData.CFrame:ToOrientation() 

would return the y of that instead of the x that it usually does

EnemyData.CFrame:ToOrientation()  --- Would return in the order of x,y,z.
                                  --- I want it to return in the order of y; x or z; x or z.
                                  --- Also want to not use it in a variable.

you can just do local _, y, _, since that’s how you define unused variables.

1 Like

thanks for the help! forgot about unused variables!

1 Like

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