It says PopUps is not a valid member of PlayerGui
Basically I am cloning a frame into everyones playergui except the player the gui is based of off. Its for an in-game chat system, it loads a list of all the players so you can click on them to chat
playervariable1 one of the the players on the server out of all the players
playervariable2 is the player the gui will be based off of and that gui will be cloned to everyone except playervariable2. Sry, this is really hard to explain
Players = game:GetService("Players")
game.Players.PlayerAdded:Connect(function()
for i, playervariable1 in pairs(Players:GetPlayers()) do
print(playervariable1.Name .. " Where the gui goes")
for i, playervariable2 in pairs(Players:GetPlayers()) do
print(playervariable2.Name .. " The player the gui is based of off")
if playervariable1.Name == playervariable2.Name then
else
local Convo = game.ReplicatedStorage.BearChat.Convo:Clone()
Convo.Parent = playervariable1.PlayerGui.PopUps.BearChat.Screen.Chat.Convos
Convo.Name = playervariable2.Name
Convo.PlayerName.Text = (playervariable2.DisplayName)
Convo.Username.Value = playervariable2.Name
local content, isReady = Players:GetUserThumbnailAsync(playervariable2.userId, Enum.ThumbnailType.HeadShot, Enum.ThumbnailSize.Size180x180)
Convo.Profile.Image = content
end
end
end
end)