If a spell that’s copied has an X whose value was determined as it was cast, the copy will have the same value of X. The same is true for an ability that’s copied and an X whose value was determined as the ability was activated.