BGE play animation in other object using button
You need to play the action at the text rather than the button.

For inter-object communication I suggest to activate a message actuator e.g. with subject "button clicked".

On receipt of the message "button clicked" the text object can start playing the action.