ID change images

I want to change every imageLabel with the id “1” to an id of “2”

I’ve tried using every script I’ve seen on google and it doesn’t work please help me since I have a game I need to edit and I need to change all the ids and there are like millions of them with the same value.

Nvm found a solution after using AI and it took me an hour lol.

local imageId = "rbxassetid://1234567890" -- change this to the asset ID of the image you want to use

local function changeImages(obj)
    for _, child in pairs(obj:GetChildren()) do
        if child:IsA("ImageLabel") then
            child.Image = imageId
        end
        changeImages(child)
    end
end

changeImages(workspace)

Use “is iv in pairs” I think.