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?
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
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.