So, I don’t put my gui’s inside startergui, instead I just use a script to clone the gui and parent them to PlayerGui.
But what I realized is that when u respawn u don’t get ur gui’s anymore, so I looked up few tutorials on youtube but didn’t find any, does anyone known anything about this or can help me with it.
The reason I don’t put my gui’s in startergui is because if exploiters copy the map they can steal the ui’s, what I did realize is that most exploiters don’t know where the gui’s are located.
Maybe some experienced developers know where the gui’s are (PlayerGui) and they can steal it, but most exploiters just don’t know about it, so I do it like this to keep my gui’s more secure.
For your first question, you can use a character added event to do what you wanted for running the script after a player respawns.
However, yeah anything client-sided is accessible from the moment you parent the GUI’s to the PlayerGUI or even stored in replicated storage so it feels kinda redundant and unnecessary when you can just use StarterGui. If you do want the Gui to be temporarily more secure you can place them in server storage but the moment it gets parented to the client yeah…they can access it.