Hi,
The reason it’s not working is due to the tilesprite not having physics attached.
I’m not sure if this will work but I found some information from this link:
The suggested method:
this.floor = this.add.tileSprite(0, 508, 764, 65, 'floor').setOrigin(1);
this.physics.add.existing(this.floor);
Hopefully that should work