Infinite yield possible on 'ReplicatedStorage.InLobby:WaitForChild("Instance")

Hey so i currently have 2 errors with my gui queue system and i dont know how to fix them


game.ReplicatedStorage.LeaveEvent.OnServerEvent:Connect(function(Player, Lobby, Isowner)
	if Isowner == false then
		game.ReplicatedStorage.InLobby:WaitForChild(Lobby).Players.Value -= 1

		print(Player.Name.." Left Lobby ID: "..Lobby)

		game.ReplicatedStorage.SoftLeaveEvent:FireAllClients(Player, Lobby, Isowner)

		game.ReplicatedStorage.InLobby:WaitForChild(Lobby).PlayersFrame:WaitForChild(Player.UserId):Destroy()

	else

		game.ReplicatedStorage.SoftLeaveEvent:FireAllClients(Player, Lobby, Isowner)

		game.ReplicatedStorage.InLobby:WaitForChild(Lobby).Players.Value = 0

		game.ReplicatedStorage.LeaveEvent:FireAllClients(Lobby)

		print("Owner Disowned Lobby ID: "..Lobby)

		game.ReplicatedStorage.InLobby:WaitForChild(Lobby):Destroy()

		game.ReplicatedStorage.Lobbies:WaitForChild(Lobby):Destroy()

	end

end)

game.ReplicatedStorage.CreateEvent.OnServerEvent:Connect(function(Owner, Mission, Difficulty, Count)
	
	local Clone = game.ReplicatedStorage.Lobbies.Template:Clone()
	Clone.Name = Owner.UserId
	Clone.Parent = game.ReplicatedStorage.Lobbies
	
	Clone.Mission.Text = Mission
	Clone.Difficulty.Text = Difficulty
	Clone.PlayerCount.Text = Count
	
	Clone.PlayerImage.Image = game.Players:GetUserThumbnailAsync(Owner.UserId, Enum.ThumbnailType.HeadShot, Enum.ThumbnailSize.Size420x420)
	
	Clone.Title.Text = Owner.Name.."'s Lobby"
	
	Clone.Visible = true
	
	local Clone2 = game.ReplicatedStorage.InLobby.Template:Clone()
	Clone2.Name = Owner.UserId
	Clone2.Parent = game.ReplicatedStorage.InLobby
	
	Clone2.Title.Text = Owner.Name.."'s Lobby"
	
	Clone2.PlayersT.Text = Clone2.Players.Value.."/"..Count.." Players"
	
	Clone2.MaxPlayers.Value = Count
	
	game.ReplicatedStorage.CreateEvent:FireAllClients()
	
end)

game.ReplicatedStorage.JojnEvent.OnServerEvent:Connect(function(JojnerPlayer, IsOwner, Lobby)
	
	if IsOwner == true then
		
		
		
	end
	
	local lobbyplayerislooking = game.ReplicatedStorage:FindFirstChild("InLobby"):WaitForChild(Lobby)
	lobbyplayerislooking:FindFirstChild("Players").Value += 1
	
	local Clone = script.Template:Clone()
	Clone.Parent = lobbyplayerislooking:WaitForChild("PlayersFrame")
	
	Clone.Name = JojnerPlayer.UserId
	
	Clone.PlayerName.Text = JojnerPlayer.Name
	
	Clone.Visible = true
	
	Clone.Image = game.Players:GetUserThumbnailAsync(JojnerPlayer.UserId, Enum.ThumbnailType.HeadShot, Enum.ThumbnailSize.Size420x420)
	
	lobbyplayerislooking:Clone().Parent = JojnerPlayer.PlayerGui.MainCutscene.Gui
	
	game.ReplicatedStorage.JojnEvent:FireAllClients(Lobby)
	
end)

Bassicly the error is

Infinite yield possible on 'ReplicatedStorage.InLobby:WaitForChild("Instance")'  -  Studio
  21:29:19.375  Stack Begin  -  Studio
  21:29:19.375  Script 'ServerScriptService.MainQueueSystem', Line 68  -  Studio - MainQueueSystem:68
  21:29:19.375  Stack End  -  Studio

And the second one is unfixable because the clone doesnt clone

This has to be a copy paste, you’re clearly missing Remote Functions and Events inside Replicated Storage, make sure to look through the workframe you got this from thurely.

check if you have 'Instance" in InLobby

i dont know what you mean with copy and paste, but i do have them