How can I make this alert slide in from the left ( it is 4 pixels from the left of the screen ) and stop when it is 4 pixels in like in the picture? I have seen a few threads but they are mostly examples of scrolling text and I can’t seem to get it to stop at a certain point.
local FarLeft = 0;
hook.Add(“HUDPaint”, “Scrolling Text”, function()
FarLeft = (FarLeft + ScrW()/8 * FrameTime()) % ScrW();
draw.DrawText(“Hello World”, “ScoreboardText”, FarLeft, 50, Color(255,255,255,255),1);