Signals could do it. Connect the node here:
Self.connect(“body_entered”, self, “on_body_entered”)
And then put your event here, assuming the player object is called “player”:
If body.name == “player”:
# your text event
My logic is a bit messy but that should be enough to get you there. There is also a plugin named Dialogic that can help specifically with the effect you are looking for.