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

PlayerGui not loading, why is this happening?

Basically, im working on a game and a bug (i guess) pops out of nowhere for no apparent reason because it was working just fine earlier where the PlayerGui doesn't load in at all, so now I have errors saying "PlayerGui" is not a valid member of Player. This is weird because I turned CharacterAutoLoads back on, and the PlayerGui doesn't appear still. So basically PlayerGui just stopped loading in the Player for no reason at all. Anyone know why this is happening? It is really frustrating and I have no idea why this is happening.

4 comments

0

Show us your code?

0

I would, but I am not able to identify anything that would prevent PlayerGui from showing up in Player. So I think you wouldn't want to read through all of my code

0

@fireman23332333 I think this is a Roblox bug...

0

maybe wait for PlayerGui? perhaps it's not loading right away

2 answers

Try a for loop (Server Script):

for _,p in pairs(game.Players:GetPlayers()) do
	if p.PlayerGui ~= nil then -- Should block the error you're having
		print("PlayerGui exists")
	end
end

1 comment

0

Doesn't seem to fix anything. I'm thinking it's just a studio bug, they should fix this.

OK SO I FIXED IT. It was the stupidest thing ever. I tried deleting some scripts, and see what would happen and if PlayerGui would appear, and I deleted the script that handled to DataStores, and so I figured out it was that script that was causing the problem. So I did some experimenting with the script, and as it turns out, I RENAMED THE SCRIPT AND IT FIXED THE PROBLEM. WHY DOES THE NAME OF THE SCRIPT HAVE TO HAVE ANYTHING TO DO WITH THIS?!?!? this is so stupid...

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