Attempt to index nil with 'intermission'

Could you provide the scripts that does these? (The full thing)

Also,

local script(has the error in it)


game script

it’s just me like i am not doing a multiplayer session in anyform

what does “playerModule.respawnAllPlayers()” do? I thought you said you weren’t respawning people?

sry i forgot that part, it just goes through every player in game and respawns them so it can unload a map or something when i fix this bug

Exactly, that respawns all the players, which gives them a new set of the GUIs

Show me exactly how the players are respawned

(also, why did you cover the names of some random variables lol)

yeaaaaaaaaa see thats the problem, loading the character resets the PlayerGui folder to have a new set of GUIs

my brain is not working correctly rn, but try printing the LocalPlayer.PlayerGui:GetChildren() at the top of the script right after you get the LocalPlayer

which script? the regular script, the module script, or the local script(has the error)?

The local script

thats the only script where LocalPlayer exists

like this?

yea like that
aaaaaaaaaaaaaaaaa

here’s the output

could you open up that 2nd table?

also, try with GetDescendents() this time instead

try doing LocalPlayer.PlayerGui.MenuGUI and seeing if its still nil if you access it like that.

the error disappeared but my camera still isn’t going back to normal

But is the menu becoming invisible, and is the intermission thing becoming visible?

Also, turn off “ResetOnSpawn” for the GUI, might work idk

it works, i just need my camera to return to player again