Place one command block that is set to repeat and always active with the command testfor @p[x=coordinate,y=coordinate,z=coordinate,r=radius] then place a comparator next to the command block and place another one down and set it to impulse and requires redstone, then put the command title @p title {"text":"YOUR TITLE HERE","color":"YOUR COLOUR HERE"}