Strange Gui issue

I have a child in StarterGui named IntermissionGui. However, when I try to use it on a LocalScript, it appaears in PlayerGui but the game acts like it does not exist.

Here is the output:
IntermissionGui is not a valid member of PlayerGui

And here is my script:
local player = game.Players.LocalPlayer
local playerGui = player.PlayerGui
local part = game.Workspace:WaitForChild(“GuiPart”)

(I literally have NO CLUE why this isn’t going in the code box. I’m sorry.)

local frame1 = playerGui.IntermissionGui.Frame1
local frame2 = playerGui.IntermissionGui.Frame2
local frame3 = playerGui.IntermissionGui.Frame3
local frame4 = playerGui.IntermissionGui.Frame4
local frame5 = playerGui.IntermissionGui.Frame5
local frame6 = playerGui.IntermissionGui.Frame6
local frame7 = playerGui.IntermissionGui.Frame7
local frame8 = playerGui.IntermissionGui.Frame8

part.ClickDetector.MouseClick:Connect(function()
    frame1:TweenPosition(UDim2.new(0, 0,0, 0), "Out", "Quart", 1, false)
end)

Do you have IntermissionGui located in StarterGui?

Yes, it is located in StarterGui.

Maybe try to wait for GUI to appear inside PlayerGui which you can do it before analyzing the GUI by playerGui:WaitForChild("IntermissionGui")