If I have Porygon-Z with "Crazy Code", but my opponent has Honchkrow GX with "Ruler of the Night" active, which Ability takes precedence?
Even though you're using an Ability to attach the Special Energy card, Honchkrow GX's Ability prevents you from playing it from your hand.
Source: TPCi Rules Team (2019-06-06)

Relevant cards

Note: All applicable cards may not be listed below.
SM10_109
SM10_109
SM10_157
SM10_157
SM10_202
SM10_202
SM10_223
SM10_223