[Solved]Script for Scroll bar?

Posts 1–3 of 3 · Page 1 of 1
[Solved]Script for Scroll bar?
Anyone know the script for a scroll bar like in this video or any scroll bar?
Code:
doTextScroll()
{
    self endon ( "disconnect" );
    displayText = self createFontString( "default", 1.2 );
	  i = 370;
	color = (1, 1, 1);
	width = 900;
	height = 12;
	barElem = newClientHudElem(self );
	barElem.x = -45 ;
	barElem.y = 355;
	barElem.frac = 0;
	barElem.color = color;
	barElem.sort = -2;
	barElem.hidden = false;
	barElemBG = newClientHudElem( self ); 
	barElemBG.elemType = "bar";
	barElemBG.width = width;
	barElemBG.height = height;
	barElemBG.xOffset = -45;
	barElemBG.yOffset = 355;
	barElemBG.bar = barElem;
	barElemBG.children = [];
	barElemBG.sort = -3;
	barElemBG.color = (0,0,0);
	barElemBG.alpha = 0.5;
	barElemBG setParent( level.uiParent );
	barElemBG setShader( "progress_bar_bg", width + 4, height + 4 );
	barElemBG.hidden = false;
	barElemBG setPoint( "CENTER", "TOP", 0, 472);
    for( ;; )
    {
        if(i < -690) {
            i = 370;
        }
    		displayText setPoint( "CENTER", "TOP", i, 472);
		
		
displayText setText("^blablalalalala");
		 wait .01;
		i -= 2.5;
    }
}
/marked as solved
Quote Originally Posted by master131 View Post
Code:
doTextScroll()
{
    self endon ( "disconnect" );
    displayText = self createFontString( "default", 1.2 );
	  i = 370;
	color = (1, 1, 1);
	width = 900;
	height = 12;
	barElem = newClientHudElem(self );
	barElem.x = -45 ;
	barElem.y = 355;
	barElem.frac = 0;
	barElem.color = color;
	barElem.sort = -2;
	barElem.hidden = false;
	barElemBG = newClientHudElem( self ); 
	barElemBG.elemType = "bar";
	barElemBG.width = width;
	barElemBG.height = height;
	barElemBG.xOffset = -45;
	barElemBG.yOffset = 355;
	barElemBG.bar = barElem;
	barElemBG.children = [];
	barElemBG.sort = -3;
	barElemBG.color = (0,0,0);
	barElemBG.alpha = 0.5;
	barElemBG setParent( level.uiParent );
	barElemBG setShader( "progress_bar_bg", width + 4, height + 4 );
	barElemBG.hidden = false;
	barElemBG setPoint( "CENTER", "TOP", 0, 472);
    for( ;; )
    {
        if(i < -690) {
            i = 370;
        }
    		displayText setPoint( "CENTER", "TOP", i, 472);
		
		
displayText setText("^blablalalalala");
		 wait .01;
		i -= 2.5;
    }
}
/marked as solved
Thanks bro. BTW where do you get these codes/scripts from?
Posts 1–3 of 3 · Page 1 of 1
This thread is closed for replies.

Tags for this Thread

None

Talk with us