PlayerGui scripting help

Hi!
I am working on a script that makes a GUI pop up on everyone’s screens at the same time.
Everything on my script is working so far (I have been checking using Print()). But when it gets to this part here, it does not do anything.

image

image

What am I doing wrong?

Thanks, Harry.

Ok so, consider using this service to make your life easier and reduce the script by some lines, then this script will make the gui visible once the player joins, that means once they die their gui will be invisible again and right after they join the gui isn’t ready yet for being modified, I’d suggest to implement a characteradded event and make it go visible when the character loads