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

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

Asked by
fardxD 9
3 years ago

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

Log in to vote
0
Answered by 3 years ago

Maybe these people can help you, they are teaching and helping people with Roblox Lua for free. I personally love it: https://discord.gg/MPnhU2aCSb

Ad
Log in to vote
0
Answered by 3 years ago
Edited 3 years ago

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.

Answer this question