Does the part you are referencing just change the name or does it literally just disappear?
Also
top:WaitForChild(part).Parent = zchunkmodel:WaitForChild(xtree):WaitForChild(ztree)
top:WaitForChild(part).Name = top:WaitForChild(part).Position.Y
–the second line won’t work because you already changed the parent of the part