for _, v in pairs(workspace.Ducks:GetChildren()) do local mesh = v:FindFirstChildOfClass("MeshPart") local part = v:FindFirstChildOfClass("Part") if (mesh and mesh.Transparency < 0.1) or (part and part.Transparency < 0.1) then repeat task.wait() game:GetService("Players").LocalPlayer.Character:PivotTo(v:GetPivot()) fireclickdetector(v:FindFirstChildOfClass("ClickDetector")) mesh = v:FindFirstChildOfClass("MeshPart") part = v:FindFirstChildOfClass("Part") until (mesh and mesh.Transparency > 0.05) or (part and part.Transparency > 0.05) end end