Try following their tutorials.
My youngest (15) spends hours on this. It’s not just playing the games, he can code in Lua now and creates some great 3D models.
He’s learned a bit of Python at school too.
As stated above, Scratch may be better for a 10 year old, moving on to other languages as he gets older…