How can I access Motor6D's Part0 and Part1 properties

Right now I’m looping through all of the characters descendants. When It goes through a motor6d, I try to get its Part0 and Part1.

the Part0 and part1 return as nil

local Part0 =  motor6D.Part0
local Part1 = motor6D.Part1

print(Part0:GetFullName())
print(Part1:GetFullName())

but in game the part0 and part1 have something inside
image

1 Like

Instead of making a variable of Part0 and Part1 try just making a variable of the Motor6D and printing motor6D.Part0

The code you provided worked well for me. Perhaps you parented the object incorrectly in your script?

Output:
image

Code:
image

Explorer:

nvm I think I got it, I just needed to wait for the things to load in