Best way to learn GDScript is to get used to Godot's documentation. Once you get the grip, is all about ctrl+click methods/rmb+click items within the IDE to solve any doubt. Besides, Godot's Discord server has an amazing community with two channels ready for beginners to drop questions all day long; and pro coders answer fast.
I feel that "ChatGPT-ing" life, in general, is a pretty lazy way of believing that others will think the hard part for you. Criteria is a valuable tool. If you don't know what or why you are doing what you are doing, trusting such tool will give you more problems than solutions.