UI Stroke changes sizes?

for i,v in pairs(playerGui:GetChildren()) do
        if v.Name ~= "HatchingGui" and v.Name ~= "PetsBill" then
            v.Enabled = false
            if v.Name == "PetsInv" then
                for i,n in pairs(v:GetChildren()) do
                    if n:IsA("BillboardGui") then
                        n.Size = UDim2.new(0,0,0,0)    
                    end
                end
            end
        end
    end


-- sometime later in code 

for i,v in pairs(playerGui:GetChildren()) do
        if v.Name ~= "Shop" then
            v.Enabled = true
            if v.Name == "PetsInv" then
                for i,n in pairs(v:GetChildren()) do
                    if n:IsA("BillboardGui") then
                        n.Size = UDim2.new(15,0,20,0)
                    end
                end
            end
        end
    end

Why tf does this change the scales of every single ui stroke in my game for the player. And yes this is the source of the issue when i enable this part back it happens again.

I have searched “Thickness” “UIStroke” and everything u can think of in find all already. I know that this code is the issue 100% but idk WHY it is.

Its been days and still no solution anything helps ty!

So, when the egg is opened you hide the UI by setting all the values to 0,0,0,0, why not just use the Visible property?

Also from this code snippet, it shouldn’t changed the size of the thickness of the UIStroke.
I’m guessing resizing the UI has something to do with it.

1 Like

only billboard guis get resized. this isnt MY pet system im just adding onto it. But enabled and visible would be the same basically no? Ill give it a shot right now

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