Hello fellow devs, So I am working on my game and I am working on lobby system, it works but I need it so characters don’t spawn, I know there’s LoadCharacter variable in Players and I turned it off, but when I do that and play the game, GUI doesn’t appear, how do I fix this?
When a player spawns, GUIs from StarterGui get cloned to the player’s PlayerGui. If the player doesn’t spawn, they won’t so you will have to put them manually. Just make a PlayerAdded
Event in a script in ServerScriptService and clone your desired GUIs into the player.
game.Players.PlayerAdded:Connect(function(p)
local sg = game:GetService("StarterGui")
-- CLONE AND PARENT TO PLAYER
end)
1 Like
Can’t I use for loop to get all GUIs in StarterGui, clone them and then add them in players PlayerGui?
1 Like
Yes you can, I was just showing that how you can do it.
1 Like
Ok thanks! ⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀ ⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
Clone it into the PlayerGui folder of the player instance, not the player instance itself.