How to know a part is welded to an anchored part?

How do i know if a part is connected to an anchored part like how the roblox physics detect if parts are welded to an anchored part using :SetNetworkOwner(…) and it errors, how does roblox do that?

2 Likes

you can check their part1 in motor6D like

----part1 in Motor6D is the part that is connected to.
if Part.Motor6D.Part1.Anchored == true then
  print("its anchored")
end
1 Like

Sorry that errors since theres no motor6d on any of the building’s parts
image

if its weld then it should be like this

---- change part to your actual part
local weld = Part:FindFirstChildWhichIsA("Weld")

if weldPart1.Anchored == true then
  print("its anchored")
end
1 Like

image

for I,V in pairs(Part:GetConnectedParts(true)) do
	if V.Anchored then
		print("Assembly is anchored")
		break
	end
end
print("Assembly is not anchored")
8 Likes