I'm doing a game in where you can pick up specific types of tools. But, how can I get a part from a WeldConstraint that's already referenced?
you can get the parts that are connected with the constraint via:
1 | WeldConstraint.Part 0 = [ Basepart or nil ] |
2 | WeldConstraint.Part 1 = [ Basepart or nil ] |
3 | WeldConstraint.Parent = [ Model/group or Basepart ] |
Basepart = Any physical part Model/Group = Any group of objects like a Model or folder object
Part0-1 can be nil if the part gets deleted, though in the past it used to still reference the deleted part. But that was a bug that hopefully got fixed!.
hope this helps!
Devblog link: WeldConstraint@developer.roblox.com