# Problem with X Position and Z Size

Hey
Here is my part :

when i increase size with blue axis Z size change

but why when i change pos with blue axis X pos change and not Z ?

I can’t use my random spawn in area script with it, it’s a bug or a mistake from me ?

press Ctrl + L or Shift + L i dont really remember but it changed to local to global like the respective to the moving handles

I think is not the solution, for example i have these two parts

Properties of red part

So to put blue part to the left of part i need to do 120/2 = 60 79.042-60 = 9.042 but doesn’t work.

My calcul is correct i think…

Set your Orientation to 0,0,0 to fix this… when you change the orientation, the axis will change relative to the part, but when you move the part the axis will be global since you are moving it relative to the workspace. If you want the axis to remain the same for both Size and Position, then you have to keep the Orientation at 0,0,0.

1 Like

So i can’t do a random spawning system if part has not Oriention to 0,0,0 ?

You can, but you have to keep the axis in mind… so if you are rotating your part about the Y axis for example, then you will use the Z axis to change the size, etc., instead of Y if that is the axis you want to resize… hard to explain without a video.

If you want it to be easier, yes then spawn the orientation always at 0,0,0.

Let me know if this doesn’t make sense, i will try to make a video.

So if i understand, when i change Orientation Y axis so i need to interchanged the Z and X axis for Size ?

Sorry ill try to explain easier… if your model is a car and its length is on the X axis, you will increase its length by increasing the X value correct?.. however if you change the orientation on the Y axis, you will now need to change the car length by changing the Z axis, not the X axis like before.

Yea it’s a bit difficult but i will try to script something with that just need to find how thanks

1 Like

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