localScale changes position too

So I have a simple character that I’m trying to scale, in the hierarchy it looks like this:

I’m scaling it with transform.localScale() but this moves the character too, from this:

To this, here you can see that the Y position changes too, and it’s not supposed to

I’ve printed the transform.position and transform.localPosition and it remains the same before and after…

If I scale the character from the inspector it works as expected:

That’s weird… Can you provide the code where you modify the scale?

It may be one of those other scripts on the root… just disable them one at a time and see if the problem goes away.