dialog box

I want to write a script in my Game So if I collide to an object, a new dialog box appears which gives some message and turns off If I click somewhere on screen.

All of that is covered right here: Learn

I suggest first figuring out how to have stuff happen when there’s a collision.
Then figure out how to do dialogue.
Then figure out having stuff happen when you click the mouse.
The order isn’t really important, but understanding them individually will go a long way.