String to ancestry path

I would like to store the “.Sectors.Sector7G.PartH” as a relative ancestry path that can stored before a model is made and then used on it.
Think ModelWhenMade.Sectors.Sector7G.PartH with the .Sectors.Sector7G.PartH being stored beforehand.

  1. stores the .Sectors.Sector7G.PartH some how

  2. some time, the model is made

  3. access the model using the relative ancestry path

I’m not sure what you’re asking fully, but for getting entire path of an object, you can use :GetFullName() and it will return something like game.Workspace.Part, etc.

If you want a relative one, then I’m pretty sure you can split the string via the dots, and then rearrange the objects from there.

Obj:GetFullName()

will always be something like

service.Path

If you call it on a service not accessible through game[service], it will return Instance.

What you’re trying to do can’t be done this way since it’ll error immediately if that object doesn’t exist, and break.

Try to use another approach, like fire a BindableEvent when the last child loads, or use WaitForChild("string name") to yield till it exists.