How Do I make a sword attack

this.load.spritesheet(‘Kenny’,’/Actions.png’,{ frameWidth: 50, frameHeight: 37});
How can I make a sword attack using this?

I think you need to make an animation, which would play after pressing a key and the check if you hit something. Also you could probably upload here the spritesheet itself, maybe than I would be able to help you more with some example code.