Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local t = [==[{{argument}}]==]
- if t:len() > 0 then
- surface.CreateFont("\xFF\xFF\xFF", {
- font = "Impact",
- size = 999
- })
- local mat = Matrix()
- hook.Add("HUDPaint","\xFFmlg_text\xFF", function()
- surface.SetFont("\xFF\xFF\xFF")
- local x = ScrW() / 2 - (surface.GetTextSize(t)/2) + math.cos(CurTime()*3) * 40
- local y = 100 + math.sin(CurTime()*2) * 40
- local pos = Vector(x,y,0)
- mat:SetAngles(Angle(0,math.sin(CurTime()/1.2)*10,0))
- mat:SetTranslation(pos)
- surface.SetTextPos(0,0)
- cam.PushModelMatrix(mat)
- for i=#t, 1, -1 do
- surface.SetTextColor( HSVToColor((CurTime()*200+i*7)%360,1,1) )
- surface.DrawText(t[ #t - i + 1 ])
- end
- cam.PopModelMatrix()
- end)
- else
- hook.Remove("HUDPaint","\xFFmlg_text\xFF")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement