I’m trying to print the orientation of a part for debugging purposes.
This is an example of the code I’ve tried using:
print(Part.Orientation)
print(Part.Rotation)
It errors saying either “attempt to index nil with ‘Orientation’” or “attempt to index nil with ‘Rotation’”
I just wanna know how I can get the rotation of a part.
1 Like
That would mean the Object you are trying to check doesnt exist, nil
means nothing (no value), and attempting to index nil
would just mean you are trying to say nil.Orientation
or nil.Rotation
, which doesnt work.
3 Likes
Bro I’m such an idiot. You literally just saved my game, thanks!
3 Likes
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.