Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How can I use ResetPlayerGuiOnSpawn for a specific GUI?

Asked by 7 years ago

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.

0
I have a method, but it only works with FE :P User#11440 120 — 7y

1 answer

Log in to vote
0
Answered by
k3du53 162
7 years ago

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)
0
Note that the gui shouldn't be in StarterGui when using this script. k3du53 162 — 7y
Ad

Answer this question