Go to the BP_TurretAIComponent and create a new variable called AttackSpeed set its type to Float and the default value to 1 then tick on instance editable.

Add the highlighted nodes shown in the image below, location at the top of the image.