Local script can't access tagged instances, or children of a folder inside workspace

I would like to gain access to the table of tagged instances in the workspace, from a local script in StarterGui


this shows the models under the tag “Egg”

image
this is a print statement on the local script inside a screen gui inside StarterGui

image
this is the same print statement but on a server script inside of ServerScriptService

image
this is what is outputted from the server script

image
this is what is outputted from the local script

image

I have tried print(workspace:WaitForChild(“Eggs”):GetChildren()) on both the local and the server script but the local script again prints an empty table and the server script prints it correctly. Also if I am to print #CollectionService:GetTagged(“Egg”) on both the local script and the server script, the local script returns 0 and the server script returns 2.

Does anyone know why the local script cannot print/ access the tagged instances or the children in the folder

Thanks for any help.

1 Like

Perhaps the client simply does not have time to load? Or when the client has loaded the eggs are already destroyed.

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.