Score Progress Bar Question

I’m using plane(simple) as score bar. I want to increase score bar as player gains points. How to increase score bar size to only one side of x-axis?(I tried to use GUITexture but when I change resolution GUITexture goes off screen. Plane changes size as Screen resolution changes so I decided to use simple plane as its 2D Game)

If you want to adjust the size of a GameObject (like your plane) at run-time you need to adjust the transform.localScale values. If you need to expand it in the x-direction, you would use transform.localScale.x to assign a new size. Be warned, this will likely cause your plane to increase in both -x and +x, so you’ll need to readjust the position too (which should be easy enough).