game.shootConfetti function not working

I tried the game.shootConfetti function as follows to produce confetti, but it did not work.
→Usually you can use the F key to bring it up.

game.shootConfetti('playerId')

Am I using it incorrectly?
I would appreciate it if you could let me know.