I myself learned lua multiple ways, I had a friend who was teaching me lua at the time, and another friend who I was learning lua with, and I still am now, in fact, i’m teaching him.
But to start off, you probably would want to go no bigger than a small derma menu, just displaying the simple vgui elements, to make sure you get the hang on position relative to screen, and size and layout.
That’s how I started off, then creating simple SWEP’s that do different things depending on your level of imagination, and what you are capable of.
I then went on to make a simple admin modification ( not a release worthy one, just a simple test for myself to learn from ) using DComboBox and the for loop to include players, this also got me used to using usermessages and console commands.
I then created an exp system based on kills, and how well you are achieving, this was pretty easy, using the HUD to display key information for it all, including an EXP bar, this got me used to using the math strings such as math.clamp, math.floor and math.fmod, but much more as well.
It’s really simple to do stuff in lua if you know how to, but some people have a different learning curve, based on what you want to be able to do.
Hope that was helpful, have a fun time coding
It’s probably because you do not have anything running the function, like a derma menu or something? just create a derma menu, and create a button, and then do:
[lua]DButton1.DoClick = function()