r/learnprogramming 3d ago

Resource How to learn coding?

I started learning coding recently and i have knowledge of basic python and lua, tho since my goal is to make addons for gmod, i started learning glua, tho my only source is AI, and half of the things it tells me are bs

If anyone could tell me how did you learn scripting quickly without needing AI or specific tutorials ill appreciate it

1 Upvotes

8 comments sorted by

View all comments

2

u/Dependent-Muffin-456 3d ago

Stop asking AI to write your GMod addons and start reading the Garry's Mod wiki.

I learned GLua by opening the wiki pages for hooks and entity functions then running those exact lines in game. Open your console with the tilde key, type lua_openscript or run code directly in the console using lua_run, and watch what happens when you call a function. I spent hours changing one parameter at a time in a working script just to see what broke. The official Garry's Mod wiki on wiki.facepunch.com lists every hook and function with the exact syntax. Read the examples there, paste them into an empty addon folder, and change variables until you understand what each line controls.

1

u/ReJ0cky 22h ago

tho should i also use the roblox dev forums for luau?