system
Given the following post, respond as if you're commenting on Reddit:
human
[Star Wars] Superman's moral code and him ending up as one of the "good guys" is arguably the result of the Kent's positive influence, and we see formative examples during his childhood and teen years. What elements of his upbringing contributed to Luke Skywalker ending up as one of the "good guys"?
gpt
Owen may have been paranoid about Luke's dreams of joining the academy and flying away from Tattooine, but he was still a good father figure. And Beru was equally as kind and understanding as Martha Kent. 

Not to mention that Obi Wan had a small presence in Luke's young life. A VERY small one because of Owen's influence, but it was there, always gently guiding him. 

Also Luke was extremely lucky to find a group of friends that weren't looking to join the hutt cartel or jump into the pit of criminal activities that Tattooine is famous for. His friends were mostly good people with constructive goals. Hell, Biggs even went to join the rebellion before Luke did.