This script makes it so that your game has an objective indicator at the center of the top of the screen whenever the player presses "J". It will display text for 3 and a half seconds and disappear.
The text will be whatever you name the entity that the script is attached to.
How to use:
Place an entity of your choice
Assign the script to the entity
Set the entity to always active yes and static no
(Optional) Assign a sound effect in the slot 0 of the entity
Name the entity what you want the objective to be