Advertisement
Guest User

Untitled

a guest
Aug 21st, 2019
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. local t = [==[{{argument}}]==]
  2. if t:len() > 0 then
  3. surface.CreateFont("\xFF\xFF\xFF", {
  4. font = "Impact",
  5. size = 999
  6. })
  7.  
  8. local mat = Matrix()
  9. hook.Add("HUDPaint","\xFFmlg_text\xFF", function()
  10. surface.SetFont("\xFF\xFF\xFF")
  11. local x = ScrW() / 2 - (surface.GetTextSize(t)/2) + math.cos(CurTime()*3) * 40
  12. local y = 100 + math.sin(CurTime()*2) * 40
  13. local pos = Vector(x,y,0)
  14. mat:SetAngles(Angle(0,math.sin(CurTime()/1.2)*10,0))
  15. mat:SetTranslation(pos)
  16. surface.SetTextPos(0,0)
  17. cam.PushModelMatrix(mat)
  18. for i=#t, 1, -1 do
  19. surface.SetTextColor( HSVToColor((CurTime()*200+i*7)%360,1,1) )
  20. surface.DrawText(t[ #t - i + 1 ])
  21. end
  22. cam.PopModelMatrix()
  23. end)
  24. else
  25. hook.Remove("HUDPaint","\xFFmlg_text\xFF")
  26. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement