So what you are saying is your hats animation does not appear to turn transparent while running but in idle it works? Make sure to check all the the frames to make sure you put the same transparent effect on all the parts of the hat.