What is the sentence for 'to play a trick'?

Joe played a trick on Samantha. The class played a trick on the teacher. Let's play a trick on Dad! Kids, no playing tricks on the neighbors!