It seems you are a beginner, so let's do this slowly.
First thing (not necessarily part of the answer): the :Remove() method is deprecated, use :Destroy() instead.
Ok, now the answer.
Probably (since you didn't give details) that CTGUI is inside StarterGui. The StarterGui is where everything in the screen will be loaded when the player respawns, so that CTGUI can't be placed there, you need to place it directly to the PlayerGui.
Also, that while wait() domakes absolutely no sense there. It is a infinite loop in the middle of a function that will be used only once, so you can discard it.