when i run it gives me this error:
LogAbilitySystem: Error: FGameplayEffectSpec::GetMagnitude called for Data SetByCaller.Heal on Def Default__GE_Heal_SetByCaller_C when magnitude had not yet been set by caller.
For that you just need to get the gamplay ability system from the character that has the component (like in your tick function above just except from self use the character) and use that as a target