Code E.D. is a 3D puzzle game where the player must write code to solve the puzzles. The game comes fully equipped with an integrated development environment (IDE) that supports native Lua debugging, auto-complete, quick help and code snippets to name a few. It's designed for people who never coded before with easy-to-follow tutorials as the levels progress. By the end of the game, you would have learned Lua programming basics. And, it's free.
https://jaywee1115.itch.io/code-ed