Melee attack with collision shape

Hi, I’m new to coding, and I need help making a melee attack, I can’t find a good tutorial that uses Godot 4.2 so can someone tell me how to make a melee attack (collision type)

Maybe this tutorial can help: