Hi,
So ive got a small section of code here which is the start of my while loop
while wait() do
for i, descendant in pairs(workspace:GetDescendants()) do
This in essence works fine, however i would like the file path to be workspace.Map.Palace:GetDescendants()) do . However the catch is, the model I have named ‘Map’ only spawns into the Workspace about 20 seconds into the game when my game map is chosen (Therefore when in my game lobby it will come up with the error of Map isn’t a valid member of workspace)
So my question is, how can i rewrite this to call on the descendants of ‘Palace’ but only when the Map model has been added to the workspace? Tried a few different methods but haven’t seemed to get it working so far.
Hope that makes sense
Would this have any advantage in terms of taking up less server memory as compared to the method above ? (aka is it better on the server to do it that way?)