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

My GUI is not showing up on my screen even though I am cloning it. Any help?

recently, i started making an experience, and i want a gui to pop up when the player joins the experience. Unfortunately, I cannot put this in StarterGui, because this means that it will show up again when the player respawns. I want the gui to appear once every time the user joins the experience. my code (which i placed inside of a Script is here:

game.Players.PlayerAdded:connect(function(plr)
	c = game.ReplicatedStorage.introgui
	c:Clone().Parent = plr.PlayerGui
	end)

The problem is, the gui doesn't get cloned, and I therefore cannot see the GUI. Any help, please?

2 answers

Try this:

game.Players.PlayerAdded:connect(function(plr)
    local c = game.ReplicatedStorage.introgui:Clone()
    c.Parent = plr.PlayerGui
end)

Or you can put it in StarterGui and turn ResetOnSpawn to false on the GUI you are making and it will not show up again when you reset your character.

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