“To play a joke” in Chinese is 开玩笑 (kāi wánxiào).
我开玩笑。
I'm kidding.
Example sentence from Tatoeba (CC BY 2.0).