So, I am trying to write a script where the script's parent gradually grows or gets smaller. I have something that works, but I know there has to be an easier way to do this. (It is something where you do + or something.) Anyway, here is what I am currently using:
script.Parent.Size = Vector3.new(20, 1, 80)
wait(.05)
script.Parent.Size = Vector3.new(21, 1, 80)
wait(.05)
script.Parent.Size = Vector3.new(22, 1, 80)
wait(.05)
script.Parent.Size = Vector3.new(23, 1, 80)
wait(.05)
script.Parent.Size = Vector3.new(24, 1, 80)
wait(.05)
script.Parent.Size = Vector3.new(25, 1, 80)
wait(.05)
script.Parent.Size = Vector3.new(26, 1, 80)
wait(.05)
script.Parent.Size = Vector3.new(27, 1, 80)
wait(.05)
script.Parent.Size = Vector3.new(28, 1, 80)
wait(.05)
script.Parent.Size = Vector3.new(29, 1, 80)
wait(.05)
script.Parent.Size = Vector3.new(30, 1, 80)
Instead of me having to go in one by one changing the x, y, or z values, is there a way where I can just say something like "+1" and it adds 1 to whatever the current X value is? Thanks

2 comments
You can add to any value here, why just X?
This was just to fit the question, but yes you can use any Vector3 object.