First of all if you're just trying to detect a projectile hitting an entity you don't need to use entity die just use projectile hit entity
Secondly in your if statement instead of doing bullets dot includes do projectile.type Id. includes then bullets as I have found that now works and the other way doesn't for some reason secondly don't use run command use the built-in API method Which can be found here https://learn.microsoft.com/en-us/minecraft/creator/scriptapi/minecraft/server/screendisplay?view=minecraft-bedrock-stable @vital raft