Most efficient way to deal with userids and imagelabels

Provided my example above if you wanna check that out.
Please note I haven’t tested it so I don’t entirely know if it will work.

1 Like

Could you explain this more? I tried this implementation but it still does not work.

You can with one local script within instance and then loop through each child within the instance:

for i, v in pairs(script.Parent:GetChildren()) do
	--This will loop through each child within the
	--frame instance
	
	if v:IsA("TextLabel") then --Check if the instance is a "TextLabel" then
		--You can now interact with the one TextLabel
		--Your TextLabel is the variable "v"
	end
end

image

2 Likes

Sorry for the late reply. The loop goes through each object parented to the frame and checks if it’s a TextLabel, from there, you can interact with the object. @alphajpeg pretty much summed it up.

2 Likes

Thank you guys for the support, I have finally got it sorted.

1 Like