Hey, I have been trying to create a checkpoint GUI box that pops up for about 3 seconds to say the player hit a checkpoint, and then disappear. i have been messing around with this for days and looking at other people's ideas for turning GUIs off, to no avail. i already have the checkpoint GUI pop up when i run into a collider, Im now only having trouble turning it off. this was my last failed attempt, mostly due (i believe) to the yield object not working in the GUI function:
It's much simpler and more efficient if you enable and disable the script as appropriate. You should make the script disabled in the inspector by default, so it's only enabled when you call the ShowGUI function with the time you want it to be displayed.