fork download
  1. -- your code goes here
  2. surface.CreateFont( "mystyle", {
  3. font = "Arial",
  4. extended = false,
  5. size = 20,
  6. weight = 500,
  7. blursize = 0,
  8. scanlines = 0,
  9. antialias = true,
  10. underline = false,
  11. italic = false,
  12. strikeout = false,
  13. symbol = false,
  14. rotary = false,
  15. shadow = false,
  16. additive = false,
  17. outline = false,
  18. } );
  19.  
  20. point = 1
  21. FreeTime = true
  22. function freetime()
  23.  
  24. end
  25. function wizardry()
  26.  
  27. hook.Run("HUDPait", "wizardry", function()
  28. hook.Remove("HUDPaint", "freetime")
  29. draw.DrawText("wizzardry", "mystyle", 24, 270, color_white )
  30. end)
  31. end
  32.  
  33.  
  34. function classesBox() -- Box thing function
  35. draw.RoundedBox(3, 5, 250, 350, 60, Color(0,0,0,200));
  36.  
  37.  
  38.  
  39.  
  40.  
  41. if point == 1 then
  42.  
  43.  
  44. timer.Create("freetime", 10, 1, function()
  45. hook.Run("HUDPaint", "freetime", function()
  46. hook.Remove("HUDPait","wizardry")
  47. draw.DrawText("FREETIME RELAX ! ", "mystyle", 24, 270, color_white )
  48. end)
  49. point = point + 1
  50. end)
  51. end
  52. if point == 2 then
  53.  
  54. timer.Create("wizardry", 10, 1, function()
  55. wizardry()
  56. point = point - 1
  57. end)
  58.  
  59.  
  60.  
  61.  
  62. end
  63. end
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72. hook.Add("HUDPaint", "BoxWithClasses", classesBox);
  73.  
  74.  
Runtime error #stdin #stdout #stderr 0s 2840KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
lua: prog.lua:2: attempt to index global 'surface' (a nil value)
stack traceback:
	prog.lua:2: in main chunk
	[C]: in ?