Attribute problems

so i have a function called Combo_Change()
It is about changing the combo attribute values whenever the player has swinged their fist

but sometimes i encounter a problem is that the attributes doesnt update quick enough are there any ways to solve this?

I dont think that it takes time for attribute to change. The other code maybe taking enough time to execute causing attribute not to change. A possible solution for it could be prioritizing attributing at top of function