How to make a bullet come out of nowhere and/or hits/misses me by a bit?

hey can any body show me or make me an example so that a bullet comes out of nowhere and hits me or missis me <----(random)
and every thing is all randome you dont know when the bullet comes?
thanks alot.

Screenshot 2020-06-16 at 6.11.16 AM

here ya go

i stole somone elses game to make the screen shot


he got noobed

who did ya stell it from?

but does it hit me?

the thing it shoots would either do damage or just be solid and knock you off platforms or both depending on how you want the difficulty of your game to be(I have no clue who I stole the game from)

oh haha