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

PlayerGui not loading, why is this happening?

Asked by 5 years ago

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.

0
Show us your code? xPolarium 1388 — 5y
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 fireman23332333 0 — 5y
0
@fireman23332333 I think this is a Roblox bug... Leamir 3138 — 5y
0
maybe wait for PlayerGui? perhaps it's not loading right away Nogalo 148 — 5y

2 answers

Log in to vote
0
Answered by 5 years ago

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
0
Doesn't seem to fix anything. I'm thinking it's just a studio bug, they should fix this. fireman23332333 0 — 5y
Ad
Log in to vote
0
Answered by 5 years ago

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

Answer this question