Using ChatGPT to help with debugging or to create code templates that you then build on yourself is fine. The restriction is mainly aimed at generating final game content (like art, music, or text) that’s directly used in the game without significant user input.