Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How can I use ResetPlayerGuiOnSpawn for a specific GUI?

I would like to use ResetPlayerGuiOnSpawn for a specific GUI, but don't know how to. I want this so that when the player dies or resets, that the GUI will not show up again.

1 comment

0

I have a method, but it only works with FE :P

1 answer

✓ Accepted answer

I'm unsure if my method is optimal, but this is how I've accomplished it in the past.

(Server Script)

game.Players.PlayerAdded:connect(function(player) --PlayerAdded event
	repeat wait() until player.Character --Wait until player is loaded
	local gui = GUI --The gui that displays on joining
	gui:Clone().Parent = player.PlayerGui --Put it in player gui
end)

1 comment

0

Note that the gui shouldn't be in StarterGui when using this script.

This discussion is preserved as it was. New answers, comments, and votes are closed.