So I’m making a combat game and for some reason I put the gui in screen gui and turned character auto loads and it won’t show?? Is there a way to work around this
Thanks :D
So I’m making a combat game and for some reason I put the gui in screen gui and turned character auto loads and it won’t show?? Is there a way to work around this
Thanks :D
The character needs to be loaded for the game to load stuff from the StarterGui service. What you can do as an alternative is copy stuff from StarterGui to PlayerGui.
Like how would I do that? I tried before but nothing would pop up in player gui :/
Does it instantly copy the StarterGui’s contents? If it does, you need to wait for all the gui to exist so they can properly be copied to the PlayerGui.
That’s literally the same thing. Whatever you put inside StarterGui will be copied to PlayerGui.
Except it won’t load if the character isn’t spawned in. Did you not know that or?
Alright I’ll try that and if it works I will mark as solved
Still the same thing, it doesn’t matter if the auto load is false or true, the GUI will always load.
I just mentioned this already. Did you just not read my post? The game refuses to load if the player service has CharacterAutoLoads set to false. You can research it.
Okay, but your solution still won’t work since you mentioned to put everything in PlayerGui.
Dude, the PlayerGui is loaded, but the StarterGui is NOT copied to the PlayerGui.
No?
Every single GUI parented inside StarterGui will be copied to PlayerGui.
It don’t work the script waits for 0.1 seconds and it don’t work still
I will not be relying to you since you do not pay attention, maybe read my messages.
Okay lol, it’s your problem for not cooperating.
@R41NB0W4C3 Why do you wanna disable character auto load? Couldn’t you just put the character somewhere else?
Waiting for 0.1 seconds won’t give you accurate results all the time, because depending on the computer the StarterGui won’t load in that amount of time.
Cause I’m making a choose a character script and I want it to not load until you press a button
Should I do like repeat until find first child or?
You do realize you can put it somewhere far from the main lobby or game and put the character to the lobby right?
When autoload is turned off, ui elements in StarterGui will not be pushed into PlayerGui. Instead you could push them yourself. A simple LocalScript in StarterPlayerScripts would work just fine:
game.Players.PlayerAdded:Connect(funtion(player)
for _, ui in pairs(game.StarterGui:GetChildren()) do
local u = ui:Clone()
u.Parent = player.PlayerGui
end
end)
**Disclaimer: I do not know if this actually does work, I literally just wrote it now. All you have to do is loop through StarterGui then copy the assets into PlayerGui.