So im and referencing stuff for my custom chat and i have these variables
local Chat = script.Parent:WaitForChild("Chat")
local list = Chat:WaitForChild("List")
Everything is named correctly i am sure of it but when i take of wait for child like this
local Chat = script.Parent:WaitForChild("Chat")
local list = Chat.List
The output then says there is nothing called List in the Chat
It works in studio sometimes printing the infinite yield thing but it works most times yet on roblox it never works and outputs an error.

3 comments
But it is there and it stops the script from running idk if there is any way to pcall it but everything is there once again
play the game and look in your explorer if your item your trying to wait for is there
NVM I just started a new project