For i, v in pairs skipping parts?

Hello! I’m making a local script that shows these frames. However, it skips over 3 parts 70% of the time.
I would just put the frames in workspace, but I have a setting that disables the walls and it’s really hard to build.

for i, v in ipairs(workspace.Ground:GetDescendants()) do
	if v:IsA("Frame") then
		v.Visible = true
	end
end
1 Like

Never mind, I put a task.wait(1) before it, and now it works fine

The link show what’s :GetDescendants(). if you have childs in some frames, it will take this child, that’s why it’s not working, you can replace :GetDescendants() by :GetChildren(). Normal that adding task.wait(1) will solve your problem because it will stop until it find a frame, so the script doesn’t look for the frames’ childs.